2using System.Xml.Serialization;
23[XmlType(TypeName =
"startUpCost")]
31 : base(planningHorizon, defaultValue: 0.0)
37 double defaultStartUpCost)
38 : base(planningHorizon, defaultStartUpCost)
58 base.ValidateValue(value, parameterName);
62 throw new ArgumentOutOfRangeException(
65 "A start-up cost cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
StartUpCost(int planningHorizon, double defaultStartUpCost)
DoubleTimeSeries StartUpCostByPeriod
double GetStartUpCost(int period)
override void ValidateValue(double value, string parameterName)
Validates one value before it is assigned to the parameter.
void SetStartUpCost(int period, double cost)
StartUpCost(int planningHorizon)
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.