LotSizingDataModel.Solver 2.0.1
Solver-independent modeling, execution, monitoring and adapter infrastructure.
Loading...
Searching...
No Matches
StandardLotSizingIntegrationCheckResult.cs
Go to the documentation of this file.
1using System;
3
5
6/// <summary>
7/// Represents the result of a complete standard lot-sizing
8/// integration check.
9/// </summary>
11{
12 /// <summary>
13 /// Initializes an integration-check result.
14 /// </summary>
15 /// <param name="bootstrapResult">
16 /// Standard solver bootstrap result.
17 /// </param>
18 /// <param name="runResult">
19 /// Solver run result, or <see langword="null"/> when solving
20 /// could not be started.
21 /// </param>
24 SolverRunResult? runResult)
25 {
26 ArgumentNullException.ThrowIfNull(bootstrapResult);
27
28 BootstrapResult = bootstrapResult;
29 RunResult = runResult;
30 }
31
32 /// <summary>
33 /// Gets the bootstrap result.
34 /// </summary>
39
40 /// <summary>
41 /// Gets the solver run result, when solving was started.
42 /// </summary>
44 {
45 get;
46 }
47
48 /// <summary>
49 /// Gets a value indicating whether solver initialization was
50 /// successful.
51 /// </summary>
52 public bool BootstrapSucceeded =>
53 BootstrapResult.IsSuccessful;
54
55 /// <summary>
56 /// Gets a value indicating whether at least one usable solver
57 /// was available.
58 /// </summary>
59 public bool CanSolve =>
60 BootstrapResult.CanSolve;
61
62 /// <summary>
63 /// Gets a value indicating whether a feasible lot-sizing
64 /// solution was produced.
65 /// </summary>
66 public bool HasFeasibleSolution =>
67 RunResult?.Solution is not null;
68
69 /// <summary>
70 /// Gets the normalized termination reason, or
71 /// <see cref="SolverTerminationReason.Unknown"/> when no run
72 /// was started.
73 /// </summary>
75 RunResult?.TerminationReason ??
77}
Represents the normalized result of a solver execution.
bool BootstrapSucceeded
Gets a value indicating whether solver initialization was successful.
bool HasFeasibleSolution
Gets a value indicating whether a feasible lot-sizing solution was produced.
SolverRunResult? RunResult
Gets the solver run result, when solving was started.
bool CanSolve
Gets a value indicating whether at least one usable solver was available.
StandardLotSizingSolverBootstrapResult BootstrapResult
Gets the bootstrap result.
StandardLotSizingIntegrationCheckResult(StandardLotSizingSolverBootstrapResult bootstrapResult, SolverRunResult? runResult)
Initializes an integration-check result.
SolverTerminationReason TerminationReason
Gets the normalized termination reason, or SolverTerminationReason.Unknown when no run was started.
Represents the complete initialization result for the standard lot-sizing solver infrastructure.
SolverTerminationReason
Describes why a solver execution terminated.