2using System.Xml.Serialization;
19[XmlType(TypeName =
"startUpTime")]
27 : base(planningHorizon, defaultValue: 0.0)
33 double defaultStartUpTime)
34 : base(planningHorizon, defaultStartUpTime)
47 double startUpTime) =>
54 base.ValidateValue(value, parameterName);
58 throw new ArgumentOutOfRangeException(
61 "A start-up time cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
override void ValidateValue(double value, string parameterName)
Validates one value before it is assigned to the parameter.
double GetStartUpTime(int period)
void SetStartUpTime(int period, double startUpTime)
DoubleTimeSeries StartUpTimeByPeriod
StartUpTime(int planningHorizon, double defaultStartUpTime)
StartUpTime(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.