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.
2
3/// <summary>
4/// Runs every pinned v1.1.0 heuristic in canonical catalog order.
5/// </summary>
7{
8 private readonly UlsAlgorithmsHeuristicBridge
9 _bridge =
10 new();
11
12 public IReadOnlyList<UlsAlgorithmsHeuristicBridgeResult>
15 CancellationToken cancellationToken = default)
16 {
17 ArgumentNullException.ThrowIfNull(
18 problemData);
19
20 var results =
21 new List<UlsAlgorithmsHeuristicBridgeResult>();
22
23 foreach (string solverId
25 {
26 cancellationToken.ThrowIfCancellationRequested();
27
28 results.Add(
29 _bridge.Solve(
30 problemData,
31 solverId,
32 cancellationToken));
33 }
34
35 return results;
36 }
37}
Normalized deterministic uncapacitated single-item problem passed to ULSAlgorithms.
IReadOnlyList< UlsAlgorithmsHeuristicBridgeResult > SolveAll(UlsAlgorithmsExactProblemData problemData, CancellationToken cancellationToken=default)
Executes exactly one pinned public ULSAlgorithms heuristic.