3using System.Threading.Tasks;
4using LotSizingDataModel.Instance;
20 "warehouseAdditionalCapacityCost";
26 LotSizingInstance instance,
29 ArgumentNullException.ThrowIfNull(instance);
30 ArgumentNullException.ThrowIfNull(options);
39 LotSizingInstance instance,
43 CancellationToken cancellationToken)
49 instance.SupplyChain))
51 if (entry.Warehouse.AdditionalCapacity is
null)
58 period <= instance.PlanningHorizon;
61 cancellationToken.ThrowIfCancellationRequested();
64 entry.Warehouse.AdditionalCapacity[period];
66 if (options.RemoveStructurallyZeroVariables &&
67 double.IsFinite(upperBound) &&
68 upperBound <= options.StructuralZeroTolerance)
76 .WarehouseAdditionalCapacity);
90 entry.Warehouse.AdditionalCapacityCost?[period] ??
95 return ValueTask.CompletedTask;
Provides a fluent builder for linear expressions.
Builds stable business-domain keys for mathematical variables and constraints.
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...
Provides the canonical mathematical domain-key segment names used by lot-sizing variables and constra...
const string Period
Period index segment.