3using LotSizingDataModel.Core.PhysicalModel;
4using LotSizingDataModel.Solution;
5using LotSizingDataModel.Solution.Decisions;
48 LotSizingSolution solution,
52 ArgumentNullException.ThrowIfNull(
55 ArgumentNullException.ThrowIfNull(
58 ArgumentNullException.ThrowIfNull(
61 ArgumentNullException.ThrowIfNull(
77 new WorkCenterReference
86 WorkCenterCapacityDecision? decision =
87 solution.WorkCenterCapacityDecisions
95 if (solution.PlanningHorizon <= 0)
97 throw new InvalidOperationException(
98 "The target lot-sizing solution must have a " +
99 "strictly positive planning horizon before " +
100 "work-center capacity decisions are mapped.");
104 new WorkCenterCapacityDecision(
106 solution.PlanningHorizon);
108 solution.AddWorkCenterCapacityDecision(
112 decision.SetActivated(
114 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 WorkCenterActivation
Identifies work-center activation decision variables.
Provides a reusable base implementation for mathematical decision mappers handling one domain-key cat...
virtual double ZeroTolerance
Gets the absolute tolerance below which a solver value is considered equal to zero.
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 Plant
Plant identifier segment.
const string WorkCenter
Work-center 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 work-center activation values to work-center capacity decisions in a lot-sizing sol...
override void MapValue(MathematicalSolutionMappingContext context, LotSizingSolution solution, MathematicalDomainKey domainKey, MathematicalVariableValue variableValue)
Maps one non-zero work-center activation value.
override string Category
Gets the mathematical domain-key category handled by this mapper.