| [ Web Proxy ] |
| Viewing: https://docs.rs/optimization_engine/*/optimization_engine/enum.SolverError.html | [Back] [Original] |
pub enum SolverError {
Cost(&'static str),
NotFiniteComputation(&'static str),
ProjectionFailed(&'static str),
LinearAlgebraFailure(&'static str),
InvalidProblemState(&'static str),
}Expand descriptionExceptions/errors that may arise while solving a problem.
In the Rust API, numerical failures are generally reported through
Result<_, SolverError>:
SolverError::Cost,SolverError::ProjectionFailed,SolverError::NotFiniteComputation, andSolverError::LinearAlgebraFailure or
SolverError::InvalidProblemState.By contrast, blatant API misuse such as inconsistent slice dimensions may still panic in some low-level routines.
If the gradient or cost function cannot be evaluated
Computation failed and NaN/Infinite value was obtained
A projection could not be computed numerically
A linear algebra operation failed
The solver reached an unexpected internal state
source. Read moreuse the Display impl or to_string()
replaced by Error::source, which can support downcasting
error_generic_member_access)==. Read more!=. Read moreclone_to_uninit)Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
| Web Proxy Viewer | New URL | Original Page |