pub enum OptimError {
Show 13 variants
LineSearchFailed {
iteration: usize,
reason: String,
},
NotDescentDirection {
directional_derivative: f64,
},
InvalidFunctionValue {
value: f64,
},
SingularMatrix,
DimensionMismatch {
expected: usize,
actual: usize,
},
NoObjective,
NoInitialPoint,
Infeasible {
violation: f64,
},
Unbounded,
LPInfeasible,
QPNotPositiveSemiDefinite,
MILPInfeasible,
Other(String),
}Expand description
Errors that can occur during optimization.
Variants§
LineSearchFailed
NotDescentDirection
InvalidFunctionValue
SingularMatrix
DimensionMismatch
NoObjective
NoInitialPoint
Infeasible
Unbounded
LPInfeasible
QPNotPositiveSemiDefinite
MILPInfeasible
Other(String)
Trait Implementations§
Source§impl Debug for OptimError
impl Debug for OptimError
Source§impl Display for OptimError
impl Display for OptimError
Source§impl Error for OptimError
impl Error for OptimError
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<&str> for OptimError
impl From<&str> for OptimError
Source§impl From<LinalgError> for OptimError
impl From<LinalgError> for OptimError
Source§fn from(e: LinalgError) -> Self
fn from(e: LinalgError) -> Self
Converts to this type from the input type.
Source§impl From<LineSearchError> for OptimError
impl From<LineSearchError> for OptimError
Source§fn from(e: LineSearchError) -> Self
fn from(e: LineSearchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OptimError
impl RefUnwindSafe for OptimError
impl Send for OptimError
impl Sync for OptimError
impl Unpin for OptimError
impl UnsafeUnpin for OptimError
impl UnwindSafe for OptimError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more