LotSizingDataModel.Solver
2.0.1
Solver-independent modeling, execution, monitoring and adapter infrastructure.
Loading...
Searching...
No Matches
UlsAlgorithmsHeuristicBatchRunner.cs
Go to the documentation of this file.
1
namespace
LotSizingDataModel.Solver.Algorithms.Uls
;
2
3
/// <summary>
4
/// Runs every pinned v1.1.0 heuristic in canonical catalog order.
5
/// </summary>
6
public
sealed
class
UlsAlgorithmsHeuristicBatchRunner
7
{
8
private
readonly
UlsAlgorithmsHeuristicBridge
9
_bridge =
10
new
();
11
12
public
IReadOnlyList<UlsAlgorithmsHeuristicBridgeResult>
13
SolveAll
(
14
UlsAlgorithmsExactProblemData
problemData,
15
CancellationToken cancellationToken =
default
)
16
{
17
ArgumentNullException.ThrowIfNull(
18
problemData);
19
20
var results =
21
new
List<UlsAlgorithmsHeuristicBridgeResult>();
22
23
foreach
(
string
solverId
24
in
UlsAlgorithmsHeuristicCatalog
.
SolverIds
)
25
{
26
cancellationToken.ThrowIfCancellationRequested();
27
28
results.Add(
29
_bridge.Solve(
30
problemData,
31
solverId,
32
cancellationToken));
33
}
34
35
return
results;
36
}
37
}
LotSizingDataModel.Solver.Algorithms.Uls.UlsAlgorithmsExactProblemData
Normalized deterministic uncapacitated single-item problem passed to ULSAlgorithms.
Definition
UlsAlgorithmsExactProblemData.cs:8
LotSizingDataModel.Solver.Algorithms.Uls.UlsAlgorithmsHeuristicBatchRunner
Runs every pinned v1.1.0 heuristic in canonical catalog order.
Definition
UlsAlgorithmsHeuristicBatchRunner.cs:7
LotSizingDataModel.Solver.Algorithms.Uls.UlsAlgorithmsHeuristicBatchRunner.SolveAll
IReadOnlyList< UlsAlgorithmsHeuristicBridgeResult > SolveAll(UlsAlgorithmsExactProblemData problemData, CancellationToken cancellationToken=default)
Definition
UlsAlgorithmsHeuristicBatchRunner.cs:13
LotSizingDataModel.Solver.Algorithms.Uls.UlsAlgorithmsHeuristicBridge
Executes exactly one pinned public ULSAlgorithms heuristic.
Definition
UlsAlgorithmsHeuristicBridge.cs:15
LotSizingDataModel.Solver.Algorithms.Uls.UlsAlgorithmsHeuristicCatalog
Pinned public ULSAlgorithms v1.1.0 heuristic inventory.
Definition
UlsAlgorithmsHeuristicCatalog.cs:10
LotSizingDataModel.Solver.Algorithms.Uls.UlsAlgorithmsHeuristicCatalog.SolverIds
static IReadOnlyList< string > SolverIds
Definition
UlsAlgorithmsHeuristicCatalog.cs:34
LotSizingDataModel.Solver.Algorithms.Uls
Definition
UlsAlgorithmsExactAdapterResult.cs:4
LotSizingDataModel.Solver
Algorithms
Uls
UlsAlgorithmsHeuristicBatchRunner.cs
Generated by
1.17.0