LotSizingDataModel.Solution 2.0.1
Solution objects for production, setup, inventory and related decisions.
Loading...
Searching...
No Matches
LotSizingSolution.ClosedLoop.cs
Go to the documentation of this file.
1using System.Linq;
2using System.Xml.Serialization;
4
6
7public sealed partial class LotSizingSolution
8{
9 [XmlArray("closedLoopDecisions")]
10 [XmlArrayItem("closedLoopDecision")]
11 public List<ClosedLoopDecision> ClosedLoopDecisions
12 {
13 get;
14 } = new();
15
16 [XmlIgnore]
19
20 [XmlIgnore]
23 decision =>
24 decision is not null &&
25 decision.IsInternallyValid &&
26 decision.PlanningHorizon ==
29 .Select(
30 decision =>
31 decision.ReturnStreamId)
32 .Distinct()
33 .Count() ==
35
37 int returnStreamId)
38 {
39 return ClosedLoopDecisions.FirstOrDefault(
40 decision =>
41 decision.ReturnStreamId ==
42 returnStreamId);
43 }
44
46 {
47 foreach (ClosedLoopDecision decision
49 {
50 decision.ResizeTimeSeries(
52 }
53 }
54}
ClosedLoopDecision? FindClosedLoopDecision(int returnStreamId)
LotSizingSolution()
Initializes an empty lot-sizing solution.
int PlanningHorizon
Gets or sets the number of planning periods represented by the solution.