2using System.Xml.Serialization;
16[XmlType(TypeName =
"additionalCapacityCost")]
60 double defaultUnitCost)
111 string parameterName)
114 base.ValidateValue(value, parameterName);
119 throw new ArgumentOutOfRangeException(
122 "An additional-capacity unit cost cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
AdditionalCapacityCost(int planningHorizon, double defaultUnitCost)
Initializes an additional-capacity-cost parameter and assigns the same unit cost to every planning pe...
AdditionalCapacityCost(int planningHorizon)
Initializes an additional-capacity-cost parameter for the specified planning horizon.
AdditionalCapacityCost()
Initializes an empty additional-capacity-cost parameter.
void SetUnitCost(int period, double unitCost)
Sets the cost of using one unit of additional capacity during a planning period.
double GetUnitCost(int period)
Gets the cost of using one unit of additional capacity during a planning period.
DoubleTimeSeries UnitCostByPeriod
Gets the complete additional-capacity unit-cost series.
override void ValidateValue(double value, string parameterName)
Validates an additional-capacity unit cost.
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.