LotSizingDataModel.Instance
2.0.1
Lot-sizing instance representation, descriptors and problem characterization.
Loading...
Searching...
No Matches
DirectedSupplyNetworkDescriptor.cs
Go to the documentation of this file.
1
namespace
LotSizingDataModel.Instance.Descriptors.Network
;
2
3
/// <summary>
4
/// Immutable analysis result for one directed physical supply network.
5
/// </summary>
6
public
sealed
class
DirectedSupplyNetworkDescriptor
7
{
8
public
IReadOnlyList<SupplyNetworkNodeDescriptor>
Nodes
{
get
; init; } =
9
Array.Empty<
SupplyNetworkNodeDescriptor
>();
10
11
public
IReadOnlyList<SupplyNetworkArcDescriptor>
Arcs
{
get
; init; } =
12
Array.Empty<
SupplyNetworkArcDescriptor
>();
13
14
public
SupplyNetworkTopologyType
Topology
{
get
; init; } =
15
SupplyNetworkTopologyType
.Unknown;
16
17
public
bool
HasCycles
{
get
; init; }
18
19
/// <summary>
20
/// Gets the number of facility echelons when the graph is acyclic.
21
/// Null means that a longest-path echelon count is not defined because
22
/// the physical graph contains a directed cycle.
23
/// </summary>
24
public
int
?
EchelonCount
{
get
; init; }
25
26
public
int
NodeCount
=>
Nodes
.Count;
27
public
int
ArcCount
=>
Arcs
.Count;
28
public
int
SourceCount
=>
Nodes
.Count(node => node.IsSource);
29
public
int
SinkCount
=>
Nodes
.Count(node => node.IsSink);
30
31
public
IReadOnlyList<string>
SourceKeys
=>
32
Nodes
.Where(node => node.IsSource).Select(node => node.Key).ToArray();
33
34
public
IReadOnlyList<string>
SinkKeys
=>
35
Nodes
.Where(node => node.IsSink).Select(node => node.Key).ToArray();
36
}
LotSizingDataModel.Instance.Descriptors.Network.DirectedSupplyNetworkDescriptor
Immutable analysis result for one directed physical supply network.
Definition
DirectedSupplyNetworkDescriptor.cs:7
LotSizingDataModel.Instance.Descriptors.Network.DirectedSupplyNetworkDescriptor.SourceCount
int SourceCount
Definition
DirectedSupplyNetworkDescriptor.cs:28
LotSizingDataModel.Instance.Descriptors.Network.DirectedSupplyNetworkDescriptor.Arcs
IReadOnlyList< SupplyNetworkArcDescriptor > Arcs
Definition
DirectedSupplyNetworkDescriptor.cs:11
LotSizingDataModel.Instance.Descriptors.Network.DirectedSupplyNetworkDescriptor.SinkCount
int SinkCount
Definition
DirectedSupplyNetworkDescriptor.cs:29
LotSizingDataModel.Instance.Descriptors.Network.DirectedSupplyNetworkDescriptor.SourceKeys
IReadOnlyList< string > SourceKeys
Definition
DirectedSupplyNetworkDescriptor.cs:31
LotSizingDataModel.Instance.Descriptors.Network.DirectedSupplyNetworkDescriptor.HasCycles
bool HasCycles
Definition
DirectedSupplyNetworkDescriptor.cs:17
LotSizingDataModel.Instance.Descriptors.Network.DirectedSupplyNetworkDescriptor.EchelonCount
int? EchelonCount
Gets the number of facility echelons when the graph is acyclic. Null means that a longest-path echelo...
Definition
DirectedSupplyNetworkDescriptor.cs:24
LotSizingDataModel.Instance.Descriptors.Network.DirectedSupplyNetworkDescriptor.Nodes
IReadOnlyList< SupplyNetworkNodeDescriptor > Nodes
Definition
DirectedSupplyNetworkDescriptor.cs:8
LotSizingDataModel.Instance.Descriptors.Network.DirectedSupplyNetworkDescriptor.Topology
SupplyNetworkTopologyType Topology
Definition
DirectedSupplyNetworkDescriptor.cs:14
LotSizingDataModel.Instance.Descriptors.Network.DirectedSupplyNetworkDescriptor.SinkKeys
IReadOnlyList< string > SinkKeys
Definition
DirectedSupplyNetworkDescriptor.cs:34
LotSizingDataModel.Instance.Descriptors.Network.DirectedSupplyNetworkDescriptor.NodeCount
int NodeCount
Definition
DirectedSupplyNetworkDescriptor.cs:26
LotSizingDataModel.Instance.Descriptors.Network.DirectedSupplyNetworkDescriptor.ArcCount
int ArcCount
Definition
DirectedSupplyNetworkDescriptor.cs:27
LotSizingDataModel.Instance.Descriptors.Network.SupplyNetworkArcDescriptor
Describes one aggregated physical forward-flow relationship.
Definition
SupplyNetworkArcDescriptor.cs:7
LotSizingDataModel.Instance.Descriptors.Network.SupplyNetworkNodeDescriptor
Describes one node of the physical supply-flow graph.
Definition
SupplyNetworkNodeDescriptor.cs:7
LotSizingDataModel.Instance.Descriptors.Network
Definition
DirectedSupplyNetworkDescriptor.cs:1
LotSizingDataModel.Instance.Descriptors.Network.SupplyNetworkTopologyType
SupplyNetworkTopologyType
Classifies the directed physical topology of a supply-flow network.
Definition
SupplyNetworkTopologyType.cs:11
LotSizingDataModel.Instance
Descriptors
Network
DirectedSupplyNetworkDescriptor.cs
Generated by
1.17.0