LotSizingDataModel.Solution 2.0.1
Solution objects for production, setup, inventory and related decisions.
Loading...
Searching...
No Matches
InventoryDecision.InitialInventory.cs
Go to the documentation of this file.
1using System;
2using System.Xml.Serialization;
3
5
6/// <summary>
7/// Adds the explicit period-zero stock decision to an inventory decision.
8/// </summary>
9public sealed partial class InventoryDecision
10{
11 private double _initialInventoryLevel;
12
13 /// <summary>
14 /// Gets or sets the optimized stock available before period 1.
15 /// </summary>
16 [XmlAttribute("initialInventoryLevel")]
18 {
19 get => _initialInventoryLevel;
20 set
21 {
22 if (!double.IsFinite(value) || value < 0.0)
23 {
24 throw new ArgumentOutOfRangeException(
25 nameof(value),
26 value,
27 "The initial inventory level must be finite and non-negative.");
28 }
29
30 SetProperty(ref _initialInventoryLevel, value);
31 }
32 }
33}
Stores the inventory decisions associated with one item and one warehouse over the complete planning ...
double InitialInventoryLevel
Gets or sets the optimized stock available before period 1.