Enum Termination
pub enum Termination {
Gtol,
Ftol,
Xtol,
ResidualsZero,
MaxEval,
NoImprovement,
NumericalError,
}Expand description
Why the solve stopped.
Variants§
Gtol
‖Jᵀr‖_∞ ≤ gtol — first-order optimality.
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§
§impl Termination
impl Termination
pub 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§
§impl Clone for Termination
impl Clone for Termination
§fn clone(&self) -> Termination
fn clone(&self) -> Termination
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Termination
§impl Debug for Termination
impl Debug for Termination
impl Eq for Termination
§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