pub struct NelderMead {
pub ulps: i64,
pub maxiter: Option<usize>,
pub maxfun: Option<usize>,
pub adaptive: bool,
pub xtol: f64,
pub ftol: f64,
}
Expand description
A minimizer for a scalar function of one or more variables using the Nelder-Mead algorithm.
Fields§
§ulps: i64
The required number of floating point representations that separate two numbers to consider them equal. See crate float_cmp for more information.
maxiter: Option<usize>
The maximum number of iterations to optimize. If neither maxiter nor maxfun are given, both default to n*200 where n is the number of parameters to optimize.
maxfun: Option<usize>
The maximum number of function calls used to optimize. If neither maxiter nor maxfun are given, both default to n*200 where n is the number of parameters to optimize.
adaptive: bool
Adapt algorithm parameters to dimensionality of the problem. Useful for high-dimensional minimization.
xtol: f64
Absolute error in function parameters between iterations that is acceptable for convergence.
ftol: f64
Absolute error in function values between iterations that is acceptable for convergence.
Trait Implementations§
Source§impl Debug for NelderMead
impl Debug for NelderMead
Source§impl Minimizer for NelderMead
impl Minimizer for NelderMead
Auto Trait Implementations§
impl Freeze for NelderMead
impl RefUnwindSafe for NelderMead
impl Send for NelderMead
impl Sync for NelderMead
impl Unpin for NelderMead
impl UnwindSafe for NelderMead
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
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>
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>
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