2using System.Xml.Serialization;
15[XmlType(TypeName =
"capacityConstraint")]
58 double defaultMaximumCapacity)
61 defaultMaximumCapacity)
109 string parameterName)
112 base.ValidateValue(value, parameterName);
117 throw new ArgumentOutOfRangeException(
120 "A maximum capacity cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
override void ValidateValue(double value, string parameterName)
Validates a maximum-capacity value.
CapacityConstraint(int planningHorizon, double defaultMaximumCapacity)
Initializes a capacity constraint for the specified planning horizon and initial maximum capacity.
DoubleTimeSeries MaximumCapacity
Gets the complete maximum-capacity time series.
void SetMaximumCapacity(int period, double capacity)
Sets the maximum capacity available during a planning period.
CapacityConstraint()
Initializes an empty capacity constraint.
CapacityConstraint(int planningHorizon)
Initializes a capacity constraint for the specified planning horizon.
double GetMaximumCapacity(int period)
Gets the maximum capacity available during 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.