pub struct NelderMeadOptions {
pub f_tolerance: f64,
pub x_tolerance: f64,
pub max_evaluations: usize,
}Expand description
Stopping rules of nelder_mead. The tolerances are relative, so the
stopping point does not depend on the units of the variables or the values.
Fields§
§f_tolerance: f64Stop when every vertex’s value is within f_tolerance · (1 + |best|)
of the best’s (and the simplex within x_tolerance). Default 1e-10.
x_tolerance: f64Stop when every vertex is within x_tolerance · (1 + |best|) of the
best in every coordinate (and the values within f_tolerance).
Default 1e-8.
max_evaluations: usizeMost objective evaluations. Default 1000 per variable, at least 2000.
Implementations§
Source§impl NelderMeadOptions
impl NelderMeadOptions
Sourcepub fn for_dimension(n: usize) -> Self
pub fn for_dimension(n: usize) -> Self
The defaults for n variables.
Trait Implementations§
Source§impl Clone for NelderMeadOptions
impl Clone for NelderMeadOptions
impl Copy for NelderMeadOptions
Source§impl Debug for NelderMeadOptions
impl Debug for NelderMeadOptions
Source§impl PartialEq for NelderMeadOptions
impl PartialEq for NelderMeadOptions
impl StructuralPartialEq for NelderMeadOptions
Auto Trait Implementations§
impl Freeze for NelderMeadOptions
impl RefUnwindSafe for NelderMeadOptions
impl Send for NelderMeadOptions
impl Sync for NelderMeadOptions
impl Unpin for NelderMeadOptions
impl UnsafeUnpin for NelderMeadOptions
impl UnwindSafe for NelderMeadOptions
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