LotSizingDataModel.Solution 2.1.0
Solution objects for production, setup, inventory and related decisions.
Loading...
Searching...
No Matches
LotSizingSolution.PhysicalFleet.cs
Go to the documentation of this file.
1using System.Xml.Serialization;
2
4
5public sealed partial class LotSizingSolution
6{
7 /// <summary>Vehicle counts for fleet departures and closing stocks.</summary>
8 [XmlArray("physicalFleetDecisions"), XmlArrayItem("decision")]
9 public List<PhysicalFleetDecision> PhysicalFleetDecisions { get; set; } = new();
10
11 /// <summary>Omits fleet decisions from older solutions with no physical fleet.</summary>
12 public bool ShouldSerializePhysicalFleetDecisions() => PhysicalFleetDecisions.Count > 0;
13}
14
15/// <summary>Vehicle count at a stable mathematical coordinate.</summary>
16[Serializable]
17public sealed class PhysicalFleetDecision
18{
19 [XmlAttribute("domainKey")]
20 public string DomainKey { get; set; } = "";
21
22 [XmlAttribute("vehicleCount")]
23 public int VehicleCount { get; set; }
24}
Represents one candidate solution for a lot-sizing supply-chain instance.
List< PhysicalFleetDecision > PhysicalFleetDecisions
Vehicle counts for fleet departures and closing stocks.
bool ShouldSerializePhysicalFleetDecisions()
Omits fleet decisions from older solutions with no physical fleet.
Vehicle count at a stable mathematical coordinate.