LotSizingDataModel.Solver
2.0.1
Solver-independent modeling, execution, monitoring and adapter infrastructure.
Loading...
Searching...
No Matches
IMathematicalSolutionMapper.cs
Go to the documentation of this file.
1
using
LotSizingDataModel.Instance;
2
using
LotSizingDataModel.Solution;
3
using
LotSizingDataModel.Solver.Modeling
;
4
5
namespace
LotSizingDataModel.Solver.Mapping
;
6
7
/// <summary>
8
/// Defines a component that converts a generic mathematical
9
/// solver result into a normalized lot-sizing solution.
10
/// </summary>
11
/// <remarks>
12
/// Implementations use mathematical-variable domain keys to map
13
/// solver values back to business decision objects. They must not
14
/// depend on any native solver API.
15
/// </remarks>
16
public
interface
IMathematicalSolutionMapper
17
{
18
/// <summary>
19
/// Maps a mathematical-model solve result to a normalized
20
/// lot-sizing solution.
21
/// </summary>
22
/// <param name="instance">
23
/// Source lot-sizing instance.
24
/// </param>
25
/// <param name="model">
26
/// Solver-independent mathematical model that was solved.
27
/// </param>
28
/// <param name="solveResult">
29
/// Generic mathematical-model solve result.
30
/// </param>
31
/// <returns>
32
/// Normalized lot-sizing solution.
33
/// </returns>
34
/// <exception cref="System.ArgumentNullException">
35
/// Thrown when <paramref name="instance"/>,
36
/// <paramref name="model"/>, or
37
/// <paramref name="solveResult"/> is
38
/// <see langword="null"/>.
39
/// </exception>
40
/// <exception cref="System.InvalidOperationException">
41
/// Thrown when solver values cannot be mapped consistently
42
/// to the lot-sizing domain model.
43
/// </exception>
44
LotSizingSolution
Map
(
45
LotSizingInstance instance,
46
MathematicalModel
model,
47
Execution
.
MathematicalModelSolveResult
solveResult);
48
}
LotSizingDataModel.Solver.Execution.MathematicalModelSolveResult
Stores the solver result for a solver-independent mathematical model.
Definition
MathematicalModelSolveResult.cs:16
LotSizingDataModel.Solver.Modeling.MathematicalModel
Represents a solver-independent mathematical optimization model.
Definition
MathematicalModel.cs:20
LotSizingDataModel.Solver.Mapping.IMathematicalSolutionMapper
Defines a component that converts a generic mathematical solver result into a normalized lot-sizing s...
Definition
IMathematicalSolutionMapper.cs:17
LotSizingDataModel.Solver.Mapping.IMathematicalSolutionMapper.Map
LotSizingSolution Map(LotSizingInstance instance, MathematicalModel model, Execution.MathematicalModelSolveResult solveResult)
Maps a mathematical-model solve result to a normalized lot-sizing solution.
LotSizingDataModel.Solver.Execution
Definition
ExecutableObjectiveCriterion.cs:4
LotSizingDataModel.Solver.Mapping
Definition
AuxiliaryLotSizeMultiplierDecisionMapper.cs:5
LotSizingDataModel.Solver.Modeling
Definition
LinearConstraint.cs:4
LotSizingDataModel.Solver
Mapping
IMathematicalSolutionMapper.cs
Generated by
1.17.0