2using System.Xml.Serialization;
19[XmlType(TypeName =
"safetyStock")]
62 double defaultSafetyStockLevel)
65 defaultSafetyStockLevel)
111 string parameterName)
114 base.ValidateValue(value, parameterName);
119 throw new ArgumentOutOfRangeException(
122 "A safety-stock level cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
DoubleTimeSeries RequiredLevels
Gets the complete safety-stock time series.
void SetRequiredLevel(int period, double level)
Sets the required safety-stock level for a planning period.
SafetyStock()
Initializes an empty safety-stock constraint.
override void ValidateValue(double value, string parameterName)
Validates a safety-stock level.
SafetyStock(int planningHorizon)
Initializes a safety-stock constraint for the specified planning horizon.
SafetyStock(int planningHorizon, double defaultSafetyStockLevel)
Initializes a safety-stock constraint and assigns the same required level to every planning period.
double GetRequiredLevel(int period)
Gets the required safety-stock level for a planning period.
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.