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