LotSizingDataModel.Solver 2.1.0
Solver-independent modeling, execution, monitoring and adapter infrastructure.
Loading...
Searching...
No Matches
PhysicalFleetDecisionMapper.cs
Go to the documentation of this file.
1using LotSizingDataModel.Solution;
3
5
7{
9
10 protected override void MapValue(MathematicalSolutionMappingContext context, LotSizingSolution solution,
11 MathematicalDomainKey domainKey, MathematicalVariableValue variableValue)
12 {
13 solution.PhysicalFleetDecisions.Add(new()
14 {
15 DomainKey = domainKey.ToString(),
16 VehicleCount = checked((int)Math.Round(variableValue.Value))
17 });
18 }
19}
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 PhysicalFleet
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.
override string ToString()
Returns the canonical textual representation.
Provides the shared state and lookup services required while mapping a mathematical solver result bac...
override void MapValue(MathematicalSolutionMappingContext context, LotSizingSolution solution, MathematicalDomainKey domainKey, MathematicalVariableValue variableValue)
override string Category
Gets the mathematical domain-key category handled by this mapper.