LotSizingDataModel.Solver 2.0.1
Solver-independent modeling, execution, monitoring and adapter infrastructure.
Loading...
Searching...
No Matches
InitialInventoryDecisionDomainKeyFactory.cs
Go to the documentation of this file.
1using LotSizingDataModel.Core.Relationships;
4
6
8{
9 public static string Create(Inventory inventory)
10 {
11 ArgumentNullException.ThrowIfNull(inventory);
12
13 var builder =
16 .Add(
18 inventory.ItemId);
19
21 builder,
22 inventory.Warehouse);
23
24 return builder.Build();
25 }
26}
Builds stable business-domain keys for mathematical variables and constraints.
MathematicalDomainKeyBuilder Add(string name, string value)
Adds a text segment.
Creates canonical domain-key fragments shared by standard formulation builders and provides warehouse...
static MathematicalDomainKeyBuilder AddWarehouse(MathematicalDomainKeyBuilder builder, WarehouseReference warehouse)
Adds a warehouse reference using the generic warehouse or plant segment.
Provides the canonical mathematical domain-key categories used to identify lot-sizing decision famili...
Provides the canonical mathematical domain-key segment names used by lot-sizing variables and constra...