2using System.Xml.Serialization;
20[XmlType(TypeName =
"fixedUsageCost")]
63 double defaultFixedUsageCost)
66 defaultFixedUsageCost)
112 string parameterName)
115 base.ValidateValue(value, parameterName);
120 throw new ArgumentOutOfRangeException(
123 "A fixed usage cost cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
DoubleTimeSeries FixedCostByPeriod
Gets the complete fixed-usage-cost time series.
FixedUsageCost(int planningHorizon, double defaultFixedUsageCost)
Initializes a fixed-usage-cost parameter and assigns the same cost to every planning period.
void SetFixedUsageCost(int period, double cost)
Sets the fixed usage cost for a planning period.
FixedUsageCost()
Initializes an empty fixed-usage-cost parameter.
override void ValidateValue(double value, string parameterName)
Validates a fixed usage cost.
double GetFixedUsageCost(int period)
Gets the fixed usage cost for a planning period.
FixedUsageCost(int planningHorizon)
Initializes a fixed-usage-cost parameter for the specified planning horizon.
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.