2using System.Xml.Serialization;
19[XmlType(TypeName =
"groupingConstraint")]
63 int defaultGroupingPeriodCount)
66 defaultGroupingPeriodCount)
105 int groupingPeriodCount)
107 SetValue(period, groupingPeriodCount);
124 string parameterName)
127 base.ValidateValue(value, parameterName);
132 throw new ArgumentOutOfRangeException(
135 "A grouping-period count must be strictly positive.");
Represents a sequence of integer values indexed by planning period.
override int DefaultValueForNewPeriods
Gets the value assigned to periods created when the planning horizon grows.
IntegerTimeSeries GroupingPeriodCountByPeriod
Gets the complete grouping-window time series.
int GetGroupingPeriodCount(int period)
Gets the grouping-window length for a planning period.
GroupingConstraint(int planningHorizon, int defaultGroupingPeriodCount)
Initializes a grouping constraint and assigns the same grouping-window length to every planning perio...
GroupingConstraint(int planningHorizon)
Initializes a grouping constraint for the specified planning horizon.
void SetGroupingPeriodCount(int period, int groupingPeriodCount)
Sets the grouping-window length for a planning period.
override void ValidateValue(int value, string parameterName)
Validates a grouping-window length.
GroupingConstraint()
Initializes an empty grouping constraint.
int GetValue(int period)
Gets the parameter value for a planning period.
IntegerTimeSeriesParameter()
Initializes an empty period-dependent integer parameter.
void SetValue(int period, int value)
Sets the parameter value for a planning period.
IntegerTimeSeries Values
Gets or sets the parameter values for all planning periods.