pub struct StopTols {
pub ftol_rel: f64,
pub ftol_abs: f64,
pub xtol_rel: f64,
pub xtol_abs: Vec<f64>,
}
Expand description
Tolerances used as termination criteria. For all, condition is disabled if value is not strictly positive.
let stop_tol = StopTols {
ftol_rel: 1e-4,
xtol_abs: vec![1e-3; 3], // size should be equal to x dim
..StopTols::default() // default stop conditions are disabled
};
Fields§
§ftol_rel: f64
Relative tolerance on function value, algorithm stops when func(x)
changes by less than ftol_rel * func(x)
ftol_abs: f64
Absolute tolerance on function value, algorithm stops when func(x)
change is less than ftol_rel
xtol_rel: f64
Relative tolerance on optimization parameters, algorithm stops when all x[i]
changes by less than xtol_rel * x[i]
xtol_abs: Vec<f64>
Relative tolerance on optimization parameters, algorithm stops when x[i]
changes by less than xtol_abs[i]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StopTols
impl RefUnwindSafe for StopTols
impl Send for StopTols
impl Sync for StopTols
impl Unpin for StopTols
impl UnwindSafe for StopTols
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