pub struct NelderMeadConfig {
pub xatol: f64,
pub fatol: f64,
pub max_iter: usize,
pub initial_step_frac: f64,
pub initial_step_abs: f64,
}Expand description
Nelder-Mead configuration.
Fields§
§xatol: f64Absolute tolerance on vertex displacement.
fatol: f64Absolute tolerance on objective range across the simplex.
max_iter: usizeMaximum number of simplex iterations (each iteration = at most a constant number of objective evaluations).
initial_step_frac: f64Initial simplex edge length, used as a signed multiplier on each
coordinate: step_i = initial_step_frac * x0_i (so 0.05 gives a
5 % perturbation in the direction of the coordinate’s sign).
When |x0_i| < 1e-8 the fallback initial_step_abs is used
instead. Note: this is NOT initial_step_frac * max(|x0|, 1)
— for |x0| < 1 the perturbation is therefore smaller than
initial_step_frac itself.
initial_step_abs: f64Small absolute initial step for parameters whose |x_0| < 1e-8.
Trait Implementations§
Source§impl Clone for NelderMeadConfig
impl Clone for NelderMeadConfig
Source§fn clone(&self) -> NelderMeadConfig
fn clone(&self) -> NelderMeadConfig
Returns a duplicate 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 NelderMeadConfig
impl Debug for NelderMeadConfig
Auto Trait Implementations§
impl Freeze for NelderMeadConfig
impl RefUnwindSafe for NelderMeadConfig
impl Send for NelderMeadConfig
impl Sync for NelderMeadConfig
impl Unpin for NelderMeadConfig
impl UnsafeUnpin for NelderMeadConfig
impl UnwindSafe for NelderMeadConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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