pub enum SolverError {
Infeasible,
Unbounded,
NumericalDifficulty {
message: String,
},
TimeLimitExceeded {
elapsed_seconds: f64,
},
IterationLimit {
iterations: u64,
},
InternalError {
message: String,
error_code: Option<i32>,
},
}Expand description
Terminal LP solve error returned after all retry attempts are exhausted.
The calling algorithm uses the variant to determine its response:
hard stop (Infeasible, Unbounded, InternalError) or terminate
with a diagnostic error (NumericalDifficulty, TimeLimitExceeded,
IterationLimit).
The six variants correspond to the error categories defined in Solver Abstraction SS6. Solver-internal errors (e.g., factorization failures) are resolved by retry logic before reaching this level.
Variants§
Infeasible
The LP has no feasible solution.
Indicates a data error (inconsistent bounds or constraints) or a modeling error. The calling algorithm should perform a hard stop.
Unbounded
The LP objective is unbounded below.
Indicates a modeling error (missing bounds, incorrect objective sign). The calling algorithm should perform a hard stop.
NumericalDifficulty
Solver encountered numerical difficulties that persisted through all retry attempts.
The calling algorithm should log the error and perform a hard stop.
TimeLimitExceeded
Per-solve wall-clock time budget exhausted.
IterationLimit
Solver simplex iteration limit reached.
InternalError
Unrecoverable solver-internal failure.
Covers FFI panics, memory allocation failures within the solver, corrupted internal state, or any error not classifiable into the above categories. The calling algorithm should log the error and perform a hard stop.
Trait Implementations§
Source§impl Debug for SolverError
impl Debug for SolverError
Source§impl Display for SolverError
impl Display for SolverError
Source§impl Error for SolverError
impl Error for SolverError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()