pub enum Termination {
Gtol,
Ftol,
Xtol,
ResidualsZero,
MaxEval,
NoImprovement,
NumericalError,
}Expand description
Why the solve stopped.
Variants§
Gtol
‖Jᵀr‖_∞ ≤ gtol — first-order optimality. For a bounded problem the
LM driver also reports it when the projected gradient vanishes: every
component is held at a bound with an outward gradient, or the
active-set projected step is fully clamped by the box (a step that
merely rounds away against the parameters does not count).
Ftol
Relative cost decrease ≤ ftol.
Xtol
Relative step size ≤ xtol.
ResidualsZero
Residuals are (numerically) zero.
MaxEval
Exhausted the residual-evaluation budget.
NoImprovement
The trust-region control diverged without an accepted step.
NumericalError
A residual/Jacobian evaluation failed.
Implementations§
Source§impl Termination
impl Termination
Sourcepub fn was_successful(&self) -> bool
pub fn was_successful(&self) -> bool
Whether the run reached a convergence criterion (vs. a budget/error stop).
Trait Implementations§
Source§impl Clone for Termination
impl Clone for Termination
impl Copy for Termination
Source§impl Debug for Termination
impl Debug for Termination
impl Eq for Termination
Source§impl PartialEq for Termination
impl PartialEq for Termination
impl StructuralPartialEq for Termination
Auto Trait Implementations§
impl Freeze for Termination
impl RefUnwindSafe for Termination
impl Send for Termination
impl Sync for Termination
impl Unpin for Termination
impl UnsafeUnpin for Termination
impl UnwindSafe for Termination
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
impl<T, U> Imply<T> for U
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