LotSizingDataModel.Instance
2.0.1
Lot-sizing instance representation, descriptors and problem characterization.
Loading...
Searching...
No Matches
WolseyMultiLevelClassification.cs
Go to the documentation of this file.
1
namespace
LotSizingDataModel.Instance.Historical.Wolsey
;
2
3
/// <summary>
4
/// Product-structure symbol used in Wolsey's multi-level extension.
5
/// </summary>
6
public
enum
WolseyMultiLevelStructure
7
{
8
/// <summary>General product structure.</summary>
9
G
,
10
11
/// <summary>Assembly structure.</summary>
12
A
,
13
14
/// <summary>Series / linear structure.</summary>
15
S
16
}
17
18
/// <summary>
19
/// Typed representation of Wolsey's multi-level block {NL=#,[G,A,S]}.
20
/// </summary>
21
public
sealed
class
WolseyMultiLevelClassification
22
{
23
public
WolseyMultiLevelClassification
(
24
int
levelCount,
25
WolseyMultiLevelStructure
structure)
26
{
27
if
(levelCount <= 1)
28
{
29
throw
new
ArgumentOutOfRangeException(
30
nameof(levelCount),
31
levelCount,
32
"The Wolsey multi-level block requires NL > 1."
);
33
}
34
35
LevelCount
= levelCount;
36
Structure
= structure;
37
}
38
39
public
int
LevelCount
{
get
; }
40
public
WolseyMultiLevelStructure
Structure
{
get
; }
41
42
public
string
HistoricalCode
=>
43
$
"{{NL={LevelCount},{Structure}}}"
;
44
45
public
override
string
ToString
() =>
46
HistoricalCode
;
47
}
LotSizingDataModel.Instance.Historical.Wolsey.WolseyMultiLevelClassification.LevelCount
int LevelCount
Definition
WolseyMultiLevelClassification.cs:39
LotSizingDataModel.Instance.Historical.Wolsey.WolseyMultiLevelClassification.Structure
WolseyMultiLevelStructure Structure
Definition
WolseyMultiLevelClassification.cs:40
LotSizingDataModel.Instance.Historical.Wolsey.WolseyMultiLevelClassification.HistoricalCode
string HistoricalCode
Definition
WolseyMultiLevelClassification.cs:42
LotSizingDataModel.Instance.Historical.Wolsey.WolseyMultiLevelClassification.WolseyMultiLevelClassification
WolseyMultiLevelClassification(int levelCount, WolseyMultiLevelStructure structure)
Definition
WolseyMultiLevelClassification.cs:23
LotSizingDataModel.Instance.Historical.Wolsey.WolseyMultiLevelClassification.ToString
override string ToString()
Definition
WolseyMultiLevelClassification.cs:45
LotSizingDataModel.Instance.Historical.Wolsey
Definition
WolseyCapacityRegime.cs:1
LotSizingDataModel.Instance.Historical.Wolsey.WolseyMultiLevelStructure
WolseyMultiLevelStructure
Product-structure symbol used in Wolsey's multi-level extension.
Definition
WolseyMultiLevelClassification.cs:7
LotSizingDataModel.Instance.Historical.Wolsey.WolseyMultiLevelStructure.S
@ S
Series / linear structure.
Definition
WolseyMultiLevelClassification.cs:15
LotSizingDataModel.Instance.Historical.Wolsey.WolseyMultiLevelStructure.A
@ A
Assembly structure.
Definition
WolseyMultiLevelClassification.cs:12
LotSizingDataModel.Instance.Historical.Wolsey.WolseyMultiLevelStructure.G
@ G
General product structure.
Definition
WolseyMultiLevelClassification.cs:9
LotSizingDataModel.Instance
Historical
Wolsey
WolseyMultiLevelClassification.cs
Generated by
1.17.0