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.
1
namespace
LotSizingDataModel.Solver.Mapping
;
2
3
public
sealed
class
ClosedLoopDecisionSnapshot
4
{
5
public
ClosedLoopDecisionSnapshot
(
6
int
returnStreamId,
7
int
period,
8
double
recoveryInput,
9
double
disposalQuantity,
10
double
recoveredOutput)
11
{
12
ReturnStreamId
=
13
returnStreamId;
14
15
Period
=
16
period;
17
18
RecoveryInput
=
19
recoveryInput;
20
21
DisposalQuantity
=
22
disposalQuantity;
23
24
RecoveredOutput
=
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
}
LotSizingDataModel.Solver.Mapping.ClosedLoopDecisionSnapshot.DisposalQuantity
double DisposalQuantity
Definition
ClosedLoopDecisionSnapshot.cs:57
LotSizingDataModel.Solver.Mapping.ClosedLoopDecisionSnapshot.ReturnStreamId
int ReturnStreamId
Definition
ClosedLoopDecisionSnapshot.cs:42
LotSizingDataModel.Solver.Mapping.ClosedLoopDecisionSnapshot.ClosedLoopDecisionSnapshot
ClosedLoopDecisionSnapshot(int returnStreamId, int period, double recoveryInput, double disposalQuantity, double recoveredOutput)
Definition
ClosedLoopDecisionSnapshot.cs:5
LotSizingDataModel.Solver.Mapping.ClosedLoopDecisionSnapshot.RecoveredOutput
double RecoveredOutput
Definition
ClosedLoopDecisionSnapshot.cs:62
LotSizingDataModel.Solver.Mapping.ClosedLoopDecisionSnapshot.RecoveryInput
double RecoveryInput
Definition
ClosedLoopDecisionSnapshot.cs:52
LotSizingDataModel.Solver.Mapping.ClosedLoopDecisionSnapshot.Period
int Period
Definition
ClosedLoopDecisionSnapshot.cs:47
LotSizingDataModel.Solver.Mapping
Definition
AuxiliaryLotSizeMultiplierDecisionMapper.cs:5
LotSizingDataModel.Solver
Mapping
ClosedLoopDecisionSnapshot.cs
Generated by
1.17.0