2using System.Xml.Serialization;
19[XmlType(TypeName =
"fixedSetupCost")]
61 double defaultFixedSetupCost)
64 defaultFixedSetupCost)
110 string parameterName)
113 base.ValidateValue(value, parameterName);
118 throw new ArgumentOutOfRangeException(
121 "A fixed setup cost cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
FixedSetupCost()
Initializes an empty fixed-setup-cost parameter.
FixedSetupCost(int planningHorizon)
Initializes a fixed-setup-cost parameter for the specified planning horizon.
DoubleTimeSeries FixedSetupCostByPeriod
Gets the complete fixed-setup-cost time series.
FixedSetupCost(int planningHorizon, double defaultFixedSetupCost)
Initializes a fixed-setup-cost parameter and assigns the same cost to every planning period.
double GetFixedSetupCost(int period)
Gets the fixed setup cost for a planning period.
override void ValidateValue(double value, string parameterName)
Validates a fixed setup cost.
void SetFixedSetupCost(int period, double cost)
Sets the fixed setup cost 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.