pub enum BfgsError {
InvalidBounds {
message: String,
},
InternalInvariant {
message: String,
},
LineSearchFailed {
last_solution: Box<BfgsSolution>,
max_attempts: usize,
},
MaxIterationsReached {
last_solution: Box<BfgsSolution>,
},
GradientIsNaN,
StepSizeTooSmall,
}Expand description
An error type for clear diagnostics.
Variants§
InvalidBounds
InternalInvariant
LineSearchFailed
Fields
§
last_solution: Box<BfgsSolution>The best solution found before the line search failed.
MaxIterationsReached
Fields
§
last_solution: Box<BfgsSolution>The best solution found before the iteration limit was reached.
GradientIsNaN
StepSizeTooSmall
Trait Implementations§
Source§impl Error for BfgsError
impl Error for BfgsError
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()
Auto Trait Implementations§
impl Freeze for BfgsError
impl RefUnwindSafe for BfgsError
impl Send for BfgsError
impl Sync for BfgsError
impl Unpin for BfgsError
impl UnwindSafe for BfgsError
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