2using System.Xml.Serialization;
19[XmlType(TypeName =
"unitCapacityConsumption")]
63 double defaultConsumption)
114 string parameterName)
117 base.ValidateValue(value, parameterName);
122 throw new ArgumentOutOfRangeException(
125 "A unit-capacity consumption cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
DoubleTimeSeries ConsumptionPerUnit
Gets the complete unit-capacity-consumption time series.
UnitCapacityConsumption(int planningHorizon)
Initializes the parameter for the specified planning horizon.
void SetConsumption(int period, double consumption)
Sets the capacity consumed by one unit of the item during a planning period.
UnitCapacityConsumption()
Initializes an empty unit-capacity-consumption parameter.
double GetConsumption(int period)
Gets the capacity consumed by one unit of the item during a planning period.
UnitCapacityConsumption(int planningHorizon, double defaultConsumption)
Initializes the parameter for the specified planning horizon and assigns the same unit-capacity consu...
override void ValidateValue(double value, string parameterName)
Validates a unit-capacity-consumption value.
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.