LotSizingDataModel.Solver
2.0.1
Solver-independent modeling, execution, monitoring and adapter infrastructure.
Loading...
Searching...
No Matches
IMathematicalDecisionMapper.cs
Go to the documentation of this file.
1
using
LotSizingDataModel.Solution;
2
3
namespace
LotSizingDataModel.Solver.Mapping
;
4
5
/// <summary>
6
/// Defines a mapper responsible for one family of lot-sizing
7
/// decisions identified by a mathematical domain-key category.
8
/// </summary>
9
/// <remarks>
10
/// Implementations translate mathematical-variable values into
11
/// the corresponding decision objects of a
12
/// <see cref="LotSizingSolution"/>. This contract allows each
13
/// decision family to be mapped independently while sharing the
14
/// same solver-independent mapping context.
15
/// </remarks>
16
public
interface
IMathematicalDecisionMapper
17
{
18
/// <summary>
19
/// Gets the mathematical domain-key category handled by this
20
/// mapper.
21
/// </summary>
22
string
Category
23
{
24
get
;
25
}
26
27
/// <summary>
28
/// Maps the decision values handled by this mapper into a
29
/// lot-sizing solution.
30
/// </summary>
31
/// <param name="context">
32
/// Mathematical-solution mapping context.
33
/// </param>
34
/// <param name="solution">
35
/// Target lot-sizing solution.
36
/// </param>
37
/// <exception cref="System.ArgumentNullException">
38
/// Thrown when <paramref name="context"/> or
39
/// <paramref name="solution"/> is
40
/// <see langword="null"/>.
41
/// </exception>
42
/// <exception cref="System.InvalidOperationException">
43
/// Thrown when one or more mathematical values cannot be
44
/// mapped consistently to the target decision family.
45
/// </exception>
46
void
Map
(
47
MathematicalSolutionMappingContext
context,
48
LotSizingSolution solution);
49
}
LotSizingDataModel.Solver.Mapping.MathematicalSolutionMappingContext
Provides the shared state and lookup services required while mapping a mathematical solver result bac...
Definition
MathematicalSolutionMappingContext.cs:16
LotSizingDataModel.Solver.Mapping.IMathematicalDecisionMapper
Defines a mapper responsible for one family of lot-sizing decisions identified by a mathematical doma...
Definition
IMathematicalDecisionMapper.cs:17
LotSizingDataModel.Solver.Mapping.IMathematicalDecisionMapper.Category
string Category
Gets the mathematical domain-key category handled by this mapper.
Definition
IMathematicalDecisionMapper.cs:23
LotSizingDataModel.Solver.Mapping.IMathematicalDecisionMapper.Map
void Map(MathematicalSolutionMappingContext context, LotSizingSolution solution)
Maps the decision values handled by this mapper into a lot-sizing solution.
LotSizingDataModel.Solver.Mapping
Definition
AuxiliaryLotSizeMultiplierDecisionMapper.cs:5
LotSizingDataModel.Solver
Mapping
IMathematicalDecisionMapper.cs
Generated by
1.17.0