pub enum TerminationReason {
NotTerminated,
MaxItersReached,
TargetCostReached,
TargetPrecisionReached,
NoChangeInCost,
AcceptedStallIterExceeded,
BestStallIterExceeded,
LineSearchConditionMet,
TargetToleranceReached,
Aborted,
}
Expand description
Indicates why the optimization algorithm stopped
Variants§
NotTerminated
In case it has not terminated yet
MaxItersReached
Maximum number of iterations reached
TargetCostReached
Target cost function value reached
TargetPrecisionReached
Target precision reached
NoChangeInCost
Cost function value did not change
AcceptedStallIterExceeded
Acceped stall iter exceeded
BestStallIterExceeded
Best stall iter exceeded
LineSearchConditionMet
Condition for Line search met
TargetToleranceReached
Target tolerance reached
Aborted
Aborted
Implementations§
Trait Implementations§
Source§impl Clone for TerminationReason
impl Clone for TerminationReason
Source§fn clone(&self) -> TerminationReason
fn clone(&self) -> TerminationReason
Returns a copy 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 TerminationReason
impl Debug for TerminationReason
Source§impl Default for TerminationReason
impl Default for TerminationReason
Source§impl<'de> Deserialize<'de> for TerminationReason
impl<'de> Deserialize<'de> for TerminationReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TerminationReason
impl Display for TerminationReason
Source§impl Hash for TerminationReason
impl Hash for TerminationReason
Source§impl Ord for TerminationReason
impl Ord for TerminationReason
Source§fn cmp(&self, other: &TerminationReason) -> Ordering
fn cmp(&self, other: &TerminationReason) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TerminationReason
impl PartialEq for TerminationReason
Source§impl PartialOrd for TerminationReason
impl PartialOrd for TerminationReason
Source§impl Serialize for TerminationReason
impl Serialize for TerminationReason
impl Copy for TerminationReason
impl Eq for TerminationReason
impl StructuralPartialEq for TerminationReason
Auto Trait Implementations§
impl Freeze for TerminationReason
impl RefUnwindSafe for TerminationReason
impl Send for TerminationReason
impl Sync for TerminationReason
impl Unpin for TerminationReason
impl UnwindSafe for TerminationReason
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