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.
1using LotSizingDataModel.Instance;
2using LotSizingDataModel.Solution;
4
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>
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,
48}
Stores the solver result for a solver-independent mathematical model.
Represents a solver-independent mathematical optimization model.
Defines a component that converts a generic mathematical solver result into a normalized lot-sizing s...
LotSizingSolution Map(LotSizingInstance instance, MathematicalModel model, Execution.MathematicalModelSolveResult solveResult)
Maps a mathematical-model solve result to a normalized lot-sizing solution.