2using System.Xml.Serialization;
19[XmlType(TypeName =
"backlogConstraint")]
62 double defaultMaximumBacklog)
65 defaultMaximumBacklog)
101 double maximumBacklog)
111 string parameterName)
114 base.ValidateValue(value, parameterName);
119 throw new ArgumentOutOfRangeException(
122 "A maximum backlog level cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
BacklogConstraint(int planningHorizon, double defaultMaximumBacklog)
Initializes a backlog constraint and assigns the same maximum backlog level to every planning period.
BacklogConstraint(int planningHorizon)
Initializes a backlog constraint for the specified planning horizon.
DoubleTimeSeries MaximumBacklogByPeriod
Gets the complete maximum-backlog time series.
override void ValidateValue(double value, string parameterName)
Validates a maximum-backlog value.
double GetMaximumBacklog(int period)
Gets the maximum backlog allowed during a planning period.
void SetMaximumBacklog(int period, double maximumBacklog)
Sets the maximum backlog allowed during a planning period.
BacklogConstraint()
Initializes an empty backlog constraint.
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.