2using System.Xml.Serialization;
16[XmlType(TypeName =
"maximumLotSize")]
25 : base(planningHorizon, defaultValue: 0.0)
31 double defaultMaximumLotSize)
34 defaultMaximumLotSize)
47 double maximumLotSize) =>
54 base.ValidateValue(value, parameterName);
58 throw new ArgumentOutOfRangeException(
61 "A maximum lot size cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
override void ValidateValue(double value, string parameterName)
Validates one value before it is assigned to the parameter.
void SetMaximumLotSize(int period, double maximumLotSize)
MaximumLotSize(int planningHorizon, double defaultMaximumLotSize)
MaximumLotSize(int planningHorizon)
DoubleTimeSeries MaximumLotSizeByPeriod
double GetMaximumLotSize(int 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.