LotSizingDataModel.Solver 2.0.1
Solver-independent modeling, execution, monitoring and adapter infrastructure.
Loading...
Searching...
No Matches
StandardLotSizingSolverBootstrapResult.cs
Go to the documentation of this file.
1using System;
3
5
6/// <summary>
7/// Represents the complete initialization result for the
8/// standard lot-sizing solver infrastructure.
9/// </summary>
11{
12 /// <summary>
13 /// Initializes a standard solver-bootstrap result.
14 /// </summary>
15 /// <param name="formulationRegistry">
16 /// Standard formulation registry created for the runtime.
17 /// </param>
18 /// <param name="bootstrapResult">
19 /// Underlying solver-runtime bootstrap result.
20 /// </param>
21 /// <exception cref="ArgumentNullException">
22 /// Thrown when an argument is <see langword="null"/>.
23 /// </exception>
25 MathematicalModelFormulationRegistry formulationRegistry,
26 LotSizingSolverBootstrapResult bootstrapResult)
27 {
28 ArgumentNullException.ThrowIfNull(
29 formulationRegistry);
30
31 ArgumentNullException.ThrowIfNull(
32 bootstrapResult);
33
35 formulationRegistry;
36
38 bootstrapResult;
39 }
40
41 /// <summary>
42 /// Gets the formulation registry created for this runtime.
43 /// </summary>
48
49 /// <summary>
50 /// Gets the underlying solver bootstrap result.
51 /// </summary>
56
57 /// <summary>
58 /// Gets the initialized high-level solver service, or
59 /// <see langword="null"/> when initialization did not
60 /// produce a service.
61 /// </summary>
63 BootstrapResult.SolverService;
64
65 /// <summary>
66 /// Gets a value indicating whether a high-level solver
67 /// service was initialized.
68 /// </summary>
69 public bool IsSuccessful =>
70 BootstrapResult.IsSuccessful;
71
72 /// <summary>
73 /// Gets a value indicating whether at least one discovered
74 /// solver can currently solve mathematical models.
75 /// </summary>
76 public bool CanSolve =>
77 BootstrapResult.CanSolve;
78}
Represents the result of initializing the complete lot-sizing solver infrastructure.
Orchestrates the complete solution of a lot-sizing instance, from formulation selection to normalized...
LotSizingSolverBootstrapResult BootstrapResult
Gets the underlying solver bootstrap result.
StandardLotSizingSolverBootstrapResult(MathematicalModelFormulationRegistry formulationRegistry, LotSizingSolverBootstrapResult bootstrapResult)
Initializes a standard solver-bootstrap result.
MathematicalModelFormulationRegistry FormulationRegistry
Gets the formulation registry created for this runtime.
bool CanSolve
Gets a value indicating whether at least one discovered solver can currently solve mathematical model...
bool IsSuccessful
Gets a value indicating whether a high-level solver service was initialized.
LotSizingSolverService? SolverService
Gets the initialized high-level solver service, or null when initialization did not produce a service...