pub struct Minimum {
pub x: Vec<f64>,
pub value: f64,
pub iterations: usize,
pub converged: bool,
}Expand description
The result of nelder_mead: the best point found, its value, the
number of simplex moves made and whether the tolerance was met.
use prospicio_math::optimize::{nelder_mead, NelderMead};
let m = nelder_mead(|x| (x[0] - 3.0).powi(2), &[0.0], &NelderMead::default());
assert!(m.converged && (m.x[0] - 3.0).abs() < 1e-8 && m.value < 1e-16);Fields§
§x: Vec<f64>The best point found.
value: f64f(x), or +inf if no feasible point was found.
iterations: usizeSimplex moves made.
converged: boolWhether the last pass met the tolerance within max_iterations.
Trait Implementations§
impl StructuralPartialEq for Minimum
Auto Trait Implementations§
impl Freeze for Minimum
impl RefUnwindSafe for Minimum
impl Send for Minimum
impl Sync for Minimum
impl Unpin for Minimum
impl UnsafeUnpin for Minimum
impl UnwindSafe for Minimum
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