14 ArgumentNullException.ThrowIfNull(
17 ArgumentNullException.ThrowIfNull(
22 throw new InvalidOperationException(
23 "Only a feasible metaheuristic incumbent can be projected.");
33 if (variables.Length !=
36 throw new InvalidOperationException(
37 "Metaheuristic incumbent dimension does not match the mathematical model.");
44 runName ??
string.Empty,
47 "metaheuristics-platform",
53 $
"MetaheuristicsPlatform/{bridgeResult.AlgorithmId}",
84 index < variables.Length;
90 result.AddVariableValue(
99 $
"MetaheuristicsPlatform algorithm={bridgeResult.AlgorithmId}; feasible={bridgeResult.IsFeasible}; optimalityClaim=false; seed={bridgeResult.Seed}.");
101 result.EnsureValid();
Stores the solver result for a solver-independent mathematical model.
void AddDiagnostic(string diagnostic)
Adds a non-empty diagnostic message.
Stores the value returned by a solver for one mathematical decision variable.
Represents a solver-independent mathematical optimization model.
Represents one decision variable in a mathematical optimization model.
string DomainKey
Gets or sets an optional domain key used to map the mathematical variable back to a lot-sizing decisi...
int Id
Gets or sets the unique variable identifier within the mathematical model.
string Name
Gets or sets the variable name.
SolverTerminationReason
Describes why a solver execution terminated.
SolverKind
Identifies a supported mathematical optimization solver.