2using System.Xml.Serialization;
37public sealed partial class Inventory
42 private double _initialInventoryDecisionUnitCost;
47 [XmlAttribute(
"initialInventoryDecisionMode")]
50 get => _initialInventoryDecisionMode;
51 set => SetProperty(ref _initialInventoryDecisionMode, value);
61 [XmlAttribute(
"initialInventoryDecisionUnitCost")]
64 get => _initialInventoryDecisionUnitCost;
67 if (!
double.IsFinite(value) || value < 0.0)
69 throw new ArgumentOutOfRangeException(
72 "The initial-inventory decision unit cost must be finite and non-negative.");
75 SetProperty(ref _initialInventoryDecisionUnitCost, value);
bool HasValidInitialInventoryDecisionSemantics
Gets whether the initial-inventory semantics are internally coherent.
double InitialInventory
Gets or sets the initial inventory level.
InitialInventoryDecisionMode InitialInventoryDecisionMode
Gets or sets whether initial inventory is fixed, a decision, or absent/fixed zero.
double InitialInventoryDecisionUnitCost
Gets or sets the unit cost applied to an initial-inventory decision.
InitialInventoryDecisionMode
Specifies how the stock before period 1 is treated by the optimization model.
@ FixedParameter
Inventory.InitialInventory is a fixed input parameter. This preserves the historical LotSizingDataMod...
@ VariableDecision
Initial inventory is an explicit non-negative optimization decision. The fixed Inventory....
@ AbsentFixedZero
No initial-inventory decision exists and the initial stock is fixed to zero.