ULSAlgorithms 1.1.0-g3e5595996d
High-performance exact and heuristic algorithms for uncapacitated lot sizing
Loading...
Searching...
No Matches
AdaptiveExactUlsSolveResult.cs
Go to the documentation of this file.
2
3/// <summary>
4/// Solve result returned by the adaptive exact strategy.
5/// </summary>
6/// <remarks>
7/// In addition to the common <see cref="UlsSolveResult"/> contract, this result
8/// records the stable public strategy identifier of the exact algorithm
9/// actually selected by the adaptive dispatcher.
10/// </remarks>
11public sealed class AdaptiveExactUlsSolveResult :
13{
14 /// <summary>
15 /// Initializes an adaptive exact solve result.
16 /// </summary>
17 /// <param name="solverName">Human-readable adaptive solver name.</param>
18 /// <param name="status">Mathematical solve status.</param>
19 /// <param name="selectedAlgorithmId">
20 /// Stable public identifier of the algorithm actually executed.
21 /// </param>
22 /// <param name="selectedSolverName">
23 /// Human-readable name reported by the selected solver.
24 /// </param>
25 /// <param name="solution">Optional feasible solution.</param>
26 /// <param name="message">Optional diagnostic message.</param>
28 string solverName,
29 UlsSolveStatus status,
30 string selectedAlgorithmId,
31 string selectedSolverName,
32 UlsSolution? solution = null,
33 string? message = null)
34 : base(
35 solverName,
36 status,
37 solution,
38 message)
39 {
40 ArgumentException.ThrowIfNullOrWhiteSpace(
41 selectedAlgorithmId);
42
43 ArgumentException.ThrowIfNullOrWhiteSpace(
44 selectedSolverName);
45
47 selectedAlgorithmId;
48
50 selectedSolverName;
51 }
52
53 /// <summary>
54 /// Gets the stable catalog identifier of the exact strategy actually used.
55 /// </summary>
56 public string SelectedAlgorithmId { get; }
57
58 /// <summary>
59 /// Gets the human-readable solver name returned by the selected strategy.
60 /// </summary>
61 public string SelectedSolverName { get; }
62}
string SelectedSolverName
Gets the human-readable solver name returned by the selected strategy.
AdaptiveExactUlsSolveResult(string solverName, UlsSolveStatus status, string selectedAlgorithmId, string selectedSolverName, UlsSolution? solution=null, string? message=null)
Initializes an adaptive exact solve result.
string SelectedAlgorithmId
Gets the stable catalog identifier of the exact strategy actually used.
Represents a feasible production plan for a ULS problem.
Definition UlsSolution.cs:7
UlsSolveResult(string solverName, UlsSolveStatus status, UlsSolution? solution=null, string? message=null)
Initializes a solve result.
UlsSolveStatus
Describes the mathematical status of a ULS solve.