2using System.Xml.Serialization;
19[XmlType(TypeName =
"safetyStockViolationCost")]
62 double defaultUnitViolationCost)
65 defaultUnitViolationCost)
113 string parameterName)
116 base.ValidateValue(value, parameterName);
121 throw new ArgumentOutOfRangeException(
124 "A safety-stock-violation cost cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
double GetUnitViolationCost(int period)
Gets the cost incurred for one unit missing from the safety stock during a planning period.
DoubleTimeSeries UnitViolationCostByPeriod
Gets the complete safety-stock-violation-cost time series.
void SetUnitViolationCost(int period, double cost)
Sets the cost incurred for one unit missing from the safety stock during a planning period.
SafetyStockViolationCost(int planningHorizon, double defaultUnitViolationCost)
Initializes a safety-stock-violation-cost parameter and assigns the same unit cost to every planning ...
override void ValidateValue(double value, string parameterName)
Validates a safety-stock-violation unit cost.
SafetyStockViolationCost()
Initializes an empty safety-stock-violation-cost parameter.
SafetyStockViolationCost(int planningHorizon)
Initializes a safety-stock-violation-cost parameter for the specified planning horizon.
DoubleTimeSeriesParameter()
Initializes an empty period-dependent parameter.
double GetValue(int period)
Gets the parameter value for a planning period.
DoubleTimeSeries Values
Gets or sets the values of the parameter for all planning periods.
void SetValue(int period, double value)
Sets the parameter value for a planning period.