2using System.Xml.Serialization;
22[XmlType(TypeName =
"sellingPrice")]
65 double defaultUnitSellingPrice)
68 defaultUnitSellingPrice)
114 string parameterName)
117 base.ValidateValue(value, parameterName);
122 throw new ArgumentOutOfRangeException(
125 "A unit selling price cannot be negative.");
Represents a sequence of finite double values indexed by planning period.
DoubleTimeSeries UnitSellingPriceByPeriod
Gets the complete unit-selling-price time series.
double GetUnitSellingPrice(int period)
Gets the unit selling price for a planning period.
SellingPrice(int planningHorizon)
Initializes a selling-price parameter for the specified planning horizon.
SellingPrice()
Initializes an empty selling-price parameter.
SellingPrice(int planningHorizon, double defaultUnitSellingPrice)
Initializes a selling-price parameter and assigns the same unit price to every planning period.
void SetUnitSellingPrice(int period, double price)
Sets the unit selling price for a planning period.
override void ValidateValue(double value, string parameterName)
Validates a unit selling price.
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.