pub enum OptimizationError {
Infeasible,
Unbounded,
NumericalInstability {
reason: String,
},
InvalidProblem {
reason: String,
},
SolverError {
reason: String,
},
MaxIterationsReached {
max_iter: usize,
},
Degenerate,
Cycling,
}Expand description
Errors that can occur during optimization solving
Variants§
Infeasible
Unbounded
NumericalInstability
InvalidProblem
SolverError
MaxIterationsReached
Degenerate
Cycling
Trait Implementations§
Source§impl Clone for OptimizationError
impl Clone for OptimizationError
Source§fn clone(&self) -> OptimizationError
fn clone(&self) -> OptimizationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OptimizationError
impl Debug for OptimizationError
Source§impl Display for OptimizationError
impl Display for OptimizationError
Source§impl Error for OptimizationError
impl Error for OptimizationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ProblemError> for OptimizationError
impl From<ProblemError> for OptimizationError
Source§fn from(err: ProblemError) -> Self
fn from(err: ProblemError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OptimizationError
impl PartialEq for OptimizationError
impl StructuralPartialEq for OptimizationError
Auto Trait Implementations§
impl Freeze for OptimizationError
impl RefUnwindSafe for OptimizationError
impl Send for OptimizationError
impl Sync for OptimizationError
impl Unpin for OptimizationError
impl UnwindSafe for OptimizationError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more