LotSizingDataModel.Solver.Cplex 2.0.1
IBM ILOG CPLEX adapter and installation discovery integration.
Loading...
Searching...
No Matches
CplexNativeSmokeTestResult.cs
Go to the documentation of this file.
1using System;
2
4
5/// <summary>
6/// Represents the result of a minimal native CPLEX smoke test.
7/// </summary>
8public sealed class CplexNativeSmokeTestResult
9{
10 /// <summary>
11 /// Initializes a native CPLEX smoke-test result.
12 /// </summary>
13 /// <param name="isSuccessful">
14 /// Indicates whether the native test succeeded.
15 /// </param>
16 /// <param name="solverVersion">
17 /// Native CPLEX version.
18 /// </param>
19 /// <param name="status">
20 /// Native CPLEX status text.
21 /// </param>
22 /// <param name="objectiveValue">
23 /// Objective value, when available.
24 /// </param>
25 /// <param name="variableValue">
26 /// Test-variable value, when available.
27 /// </param>
28 /// <param name="diagnostic">
29 /// Human-readable diagnostic.
30 /// </param>
32 bool isSuccessful,
33 string solverVersion,
34 string status,
35 double? objectiveValue,
36 double? variableValue,
37 string diagnostic)
38 {
39 IsSuccessful = isSuccessful;
40 SolverVersion = solverVersion ?? string.Empty;
41 Status = status ?? string.Empty;
42 ObjectiveValue = objectiveValue;
43 VariableValue = variableValue;
44 Diagnostic = diagnostic ?? string.Empty;
45 }
46
47 /// <summary>
48 /// Gets a value indicating whether CPLEX loaded, solved, and
49 /// returned the expected solution.
50 /// </summary>
51 public bool IsSuccessful { get; }
52
53 /// <summary>
54 /// Gets the native CPLEX version.
55 /// </summary>
56 public string SolverVersion { get; }
57
58 /// <summary>
59 /// Gets the native solve status.
60 /// </summary>
61 public string Status { get; }
62
63 /// <summary>
64 /// Gets the objective value, when available.
65 /// </summary>
66 public double? ObjectiveValue { get; }
67
68 /// <summary>
69 /// Gets the test-variable value, when available.
70 /// </summary>
71 public double? VariableValue { get; }
72
73 /// <summary>
74 /// Gets the diagnostic message.
75 /// </summary>
76 public string Diagnostic { get; }
77}
CplexNativeSmokeTestResult(bool isSuccessful, string solverVersion, string status, double? objectiveValue, double? variableValue, string diagnostic)
Initializes a native CPLEX smoke-test result.
double? VariableValue
Gets the test-variable value, when available.
bool IsSuccessful
Gets a value indicating whether CPLEX loaded, solved, and returned the expected solution.
double? ObjectiveValue
Gets the objective value, when available.