2using System.Xml.Serialization;
20[XmlType(TypeName =
"backlogCost")]
63 double defaultUnitBacklogCost)
66 defaultUnitBacklogCost)
114 string parameterName)
117 base.ValidateValue(value, parameterName);
122 throw new ArgumentOutOfRangeException(
125 "A unit backlog cost cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
DoubleTimeSeries UnitBacklogCostByPeriod
Gets the complete unit-backlog-cost time series.
void SetUnitBacklogCost(int period, double cost)
Sets the cost of keeping one item unit in backlog during a planning period.
double GetUnitBacklogCost(int period)
Gets the cost of keeping one item unit in backlog during a planning period.
BacklogCost(int planningHorizon, double defaultUnitBacklogCost)
Initializes a backlog-cost parameter and assigns the same unit cost to every planning period.
override void ValidateValue(double value, string parameterName)
Validates a unit backlog cost.
BacklogCost(int planningHorizon)
Initializes a backlog-cost parameter for the specified planning horizon.
BacklogCost()
Initializes an empty backlog-cost parameter.
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.