pub struct RobustConvergenceState { /* private fields */ }Expand description
State for robust convergence detection
Implementations§
Source§impl RobustConvergenceState
impl RobustConvergenceState
Sourcepub fn new(options: RobustConvergenceOptions, problem_dim: usize) -> Self
pub fn new(options: RobustConvergenceOptions, problem_dim: usize) -> Self
Create new robust convergence state
Sourcepub fn start_timing(&mut self)
pub fn start_timing(&mut self)
Start timing for time-based convergence
Sourcepub fn update_and_check_convergence(
&mut self,
function_value: f64,
gradient_norm: f64,
step_norm: f64,
iteration: usize,
x: Option<&ArrayView1<'_, f64>>,
) -> Result<RobustConvergenceResult, OptimizeError>
pub fn update_and_check_convergence( &mut self, function_value: f64, gradient_norm: f64, step_norm: f64, iteration: usize, x: Option<&ArrayView1<'_, f64>>, ) -> Result<RobustConvergenceResult, OptimizeError>
Update state and check all convergence criteria
Sourcepub fn get_adaptive_state(&self) -> &AdaptiveToleranceState
pub fn get_adaptive_state(&self) -> &AdaptiveToleranceState
Get current adaptive state for compatibility
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RobustConvergenceState
impl RefUnwindSafe for RobustConvergenceState
impl Send for RobustConvergenceState
impl Sync for RobustConvergenceState
impl Unpin for RobustConvergenceState
impl UnwindSafe for RobustConvergenceState
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.