4using System.Threading.Tasks;
5using LotSizingDataModel.Core.Relationships;
6using LotSizingDataModel.Instance;
31 LotSizingInstance instance,
34 ArgumentNullException.ThrowIfNull(
37 ArgumentNullException.ThrowIfNull(
41 options.IncludeAdditionalCapacity &&
42 instance.SupplyChain.Inventories.Any(
44 inventory.AdditionalCapacity is not
null);
52 LotSizingInstance instance,
55 CancellationToken cancellationToken)
59 in instance.SupplyChain.Inventories)
61 if (inventory.AdditionalCapacity is
null)
68 period <= instance.PlanningHorizon;
71 cancellationToken.ThrowIfCancellationRequested();
74 inventory.AdditionalCapacity[period];
86 .InventoryAdditionalCapacity)
104 $
"OI_i{inventory.ItemId}_w" +
105 $
"{inventory.Warehouse.ReferenceId}_t{period}",
108 $
"Additional inventory capacity for item " +
109 $
"{inventory.ItemId} at warehouse " +
110 $
"{inventory.Warehouse.ReferenceId}, " +
111 $
"period {period}.");
115 return ValueTask.CompletedTask;
Builds stable business-domain keys for mathematical variables and constraints.
string Build()
Builds the immutable domain-key text.
MathematicalDomainKeyBuilder Add(string name, string value)
Adds a text segment.
Provides the shared state required while constructing a solver-independent mathematical model.
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...
const string InventoryAdditionalCapacity
Identifies additional inventory-capacity decision variables.
Provides the canonical mathematical domain-key segment names used by lot-sizing variables and constra...
const string Item
Item or product identifier segment.
const string Period
Period index segment.