2using System.Xml.Serialization;
16[XmlType(TypeName =
"minimumLotSize")]
60 double defaultMinimumLotSize)
63 defaultMinimumLotSize)
99 double minimumLotSize)
109 string parameterName)
112 base.ValidateValue(value, parameterName);
117 throw new ArgumentOutOfRangeException(
120 "A minimum lot size cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
double GetMinimumLotSize(int period)
Gets the minimum lot size for a planning period.
MinimumLotSize(int planningHorizon, double defaultMinimumLotSize)
Initializes a minimum-lot-size constraint for the specified planning horizon and assigns the same val...
MinimumLotSize(int planningHorizon)
Initializes a minimum-lot-size constraint for the specified planning horizon.
DoubleTimeSeries MinimumLotSizeByPeriod
Gets the complete minimum-lot-size time series.
void SetMinimumLotSize(int period, double minimumLotSize)
Sets the minimum lot size for a planning period.
override void ValidateValue(double value, string parameterName)
Validates a minimum-lot-size value.
MinimumLotSize()
Initializes an empty minimum-lot-size constraint.
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.