LotSizingDataModel.Solver 2.0.1
Solver-independent modeling, execution, monitoring and adapter infrastructure.
Loading...
Searching...
No Matches
MathematicalObjectiveRecalculationResult.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3
5
6/// <summary>
7/// Stores the result of objective-value post-processing.
8/// </summary>
10{
11 private readonly List<string> _diagnostics = new();
12
13 /// <summary>Gets or sets the verification status.</summary>
15
16 /// <summary>
17 /// Gets or sets the objective value reported by the solver.
18 /// </summary>
19 public double? SolverObjectiveValue { get; set; }
20
21 /// <summary>
22 /// Gets or sets the objective value recomputed from normalized
23 /// mathematical-variable values.
24 /// </summary>
25 public double? RecomputedObjectiveValue { get; set; }
26
27 /// <summary>
28 /// Gets or sets the absolute difference between the two
29 /// objective values.
30 /// </summary>
31 public double? AbsoluteDifference { get; set; }
32
33 /// <summary>
34 /// Gets or sets the effective comparison tolerance.
35 /// </summary>
36 public double? ComparisonTolerance { get; set; }
37
38 /// <summary>
39 /// Gets the diagnostics produced during post-processing.
40 /// </summary>
41 public List<string> Diagnostics => _diagnostics;
42
43 /// <summary>
44 /// Gets whether the recalculation completed successfully.
45 /// </summary>
46 public bool IsSuccessful =>
47 Status is
49 ObjectiveVerificationStatus.Inconsistent;
50}
List< string > Diagnostics
Gets the diagnostics produced during post-processing.
double? AbsoluteDifference
Gets or sets the absolute difference between the two objective values.
double? RecomputedObjectiveValue
Gets or sets the objective value recomputed from normalized mathematical-variable values.
ObjectiveVerificationStatus
Indicates whether a solver-reported objective value is consistent with an objective value independent...
@ Consistent
The solver-reported and recomputed objective values agree within the configured tolerance.