3using System.Threading.Tasks;
4using LotSizingDataModel.Core.Relationships;
5using LotSizingDataModel.Instance;
22 "inventorySafetyStockViolationCost";
29 LotSizingInstance instance,
32 ArgumentNullException.ThrowIfNull(instance);
33 ArgumentNullException.ThrowIfNull(options);
36 options.IncludeSafetyStock &&
44 LotSizingInstance instance,
48 CancellationToken cancellationToken)
52 in instance.SupplyChain.Inventories)
54 if (inventory.SafetyStock is
null ||
55 inventory.SafetyStockViolationCost is
null)
62 period <= instance.PlanningHorizon;
65 cancellationToken.ThrowIfCancellationRequested();
70 .InventorySafetyStockViolation)
87 inventory.SafetyStockViolationCost[period]);
91 return ValueTask.CompletedTask;
Provides a fluent builder for linear expressions.
Builds stable business-domain keys for mathematical variables and constraints.
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...
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.