8 private readonly IReadOnlyDictionary<int, double> _variableValues;
9 private readonly
string[] _diagnostics;
16 IReadOnlyDictionary<int, double>? variableValues,
18 TimeSpan solveDuration,
20 IEnumerable<string>? diagnostics =
null,
21 string artifactDirectory =
"")
28 variableValues is
null
29 ?
new Dictionary<int, double>()
30 :
new Dictionary<int, double>(variableValues);
35 diagnostics?.ToArray() ??
Independent solver-agnostic validation of a returned variable assignment.
SolverExecutionInfo? Solver
Gets selected-solver provenance, when a solver was selected.
LinearModelSolveResult(string modelName, LinearModelSolveStatus status, SolverExecutionInfo? solver, IReadOnlyDictionary< int, double >? variableValues, LinearModelSolutionValidation? validation, TimeSpan solveDuration, string nativeStatus, IEnumerable< string >? diagnostics=null, string artifactDirectory="")
Initializes an execution result.
LinearModelSolutionValidation? Validation
Gets the independent validation result, when a solution exists.
bool HasFeasibleSolution
Gets whether the result contains an independently valid solution.
TimeSpan SolveDuration
Gets elapsed solver execution time.
string NativeStatus
Gets the provider-native status/log summary.
string ArtifactDirectory
Gets the retained temporary artifact directory when KeepTemporaryFiles was enabled.
IReadOnlyList< string > Diagnostics
Gets execution and validation diagnostics.
IReadOnlyDictionary< int, double > VariableValues
Gets variable values keyed by portable variable id.
LinearModelSolveStatus SolverReportedStatus
Gets the status reported by the optimization engine before independent portable-model validation can ...
string ModelName
Gets the submitted model name.
LinearModelSolveStatus Status
Gets the normalized solve status after independent validation.
double? ObjectiveValue
Gets the independently recomputed objective value.
Serializable-style immutable snapshot of the solver selected for one solver-backed ULS execution.
LinearModelSolveStatus
Describes the termination state of a solver-backed portable linear model.
@ Optimal
The model was solved to proven optimality.