LotSizingDataModel.Solver 2.0.1
Solver-independent modeling, execution, monitoring and adapter infrastructure.
Loading...
Searching...
No Matches
ClosedLoopDecisionSnapshot.cs
Go to the documentation of this file.
2
3public sealed class ClosedLoopDecisionSnapshot
4{
6 int returnStreamId,
7 int period,
8 double recoveryInput,
9 double disposalQuantity,
10 double recoveredOutput)
11 {
13 returnStreamId;
14
15 Period =
16 period;
17
19 recoveryInput;
20
22 disposalQuantity;
23
25 recoveredOutput;
26
27 if (ReturnStreamId <= 0 ||
28 Period <= 0 ||
29 !double.IsFinite(RecoveryInput) ||
30 !double.IsFinite(DisposalQuantity) ||
31 !double.IsFinite(RecoveredOutput) ||
32 RecoveryInput < 0.0 ||
33 DisposalQuantity < 0.0 ||
34 RecoveredOutput < 0.0)
35 {
36 throw new InvalidOperationException(
37 "Closed-loop decision snapshot is invalid.");
38 }
39 }
40
41 public int ReturnStreamId
42 {
43 get;
44 }
45
46 public int Period
47 {
48 get;
49 }
50
51 public double RecoveryInput
52 {
53 get;
54 }
55
56 public double DisposalQuantity
57 {
58 get;
59 }
60
61 public double RecoveredOutput
62 {
63 get;
64 }
65}
ClosedLoopDecisionSnapshot(int returnStreamId, int period, double recoveryInput, double disposalQuantity, double recoveredOutput)