24 string? message =
null)
26 if (
string.IsNullOrWhiteSpace(solverName))
28 throw new ArgumentException(
29 "A solve result must identify its solver.",
33 ValidateStatusAndSolution(
61 private static void ValidateStatusAndSolution(
69 throw new ArgumentException(
70 $
"Status '{status}' requires a feasible solution.",
79 throw new ArgumentException(
80 $
"Status '{status}' cannot contain a feasible solution.",
Represents a feasible production plan for a ULS problem.
string? Message
Gets an optional diagnostic message.
double? ObjectiveValue
Gets the objective value when a solution is available.
UlsSolveStatus Status
Gets the mathematical solve status.
UlsSolution? Solution
Gets the feasible solution, when one is available.
bool HasSolution
Gets whether the result contains a feasible solution.
UlsSolveResult(string solverName, UlsSolveStatus status, UlsSolution? solution=null, string? message=null)
Initializes a solve result.
string SolverName
Gets the solver that produced the result.
UlsSolveStatus
Describes the mathematical status of a ULS solve.