3using LotSizingDataModel.Solution;
4using LotSizingDataModel.Solution.Decisions;
49 LotSizingSolution solution,
53 ArgumentNullException.ThrowIfNull(
56 ArgumentNullException.ThrowIfNull(
59 ArgumentNullException.ThrowIfNull(
62 ArgumentNullException.ThrowIfNull(
65 int transportResourceId =
73 TransportResourceCapacityDecision? decision =
74 solution.TransportResourceCapacityDecisions
78 transportResourceId));
82 if (solution.PlanningHorizon <= 0)
84 throw new InvalidOperationException(
85 "The target lot-sizing solution must have a " +
86 "strictly positive planning horizon before " +
87 "transport-resource capacity decisions are " +
92 new TransportResourceCapacityDecision(
94 solution.PlanningHorizon);
96 solution.AddTransportResourceCapacityDecision(
100 decision.SetAdditionalCapacityUsed(
102 variableValue.
Value);
Stores the value returned by a solver for one mathematical decision variable.
double Value
Gets or sets the value returned by the solver.
Provides the canonical mathematical domain-key categories used to identify lot-sizing decision famili...
const string TransportResourceAdditionalCapacity
Identifies additional transport-resource-capacity decision variables.
Provides a reusable base implementation for mathematical decision mappers handling one domain-key cat...
Represents a parsed mathematical-model business-domain key.
int GetRequiredInt32(string name)
Gets a required integer segment.
Provides the canonical mathematical domain-key segment names used by lot-sizing variables and constra...
const string TransportResource
Transport-resource identifier segment.
const string Period
Period index segment.
Provides the shared state and lookup services required while mapping a mathematical solver result bac...
Maps mathematical additional transport-resource capacity values to transport-resource capacity decisi...
override string Category
Gets the mathematical domain-key category handled by this mapper.
override void MapValue(MathematicalSolutionMappingContext context, LotSizingSolution solution, MathematicalDomainKey domainKey, MathematicalVariableValue variableValue)
Maps one non-zero additional transport-resource capacity value.