Skip to main content

minimize_local

Function minimize_local 

Source
pub fn minimize_local<F: FnMut(&[f64]) -> f64>(
    f: F,
    start: &[f64],
    lower: &[f64],
    upper: &[f64],
    step: f64,
    tolerance: f64,
    max_evaluations: usize,
) -> OgeomResult<Minimum>
Expand description

A local minimum of f near start within the box, by the Nelder-Mead simplex from a first simplex of step along each axis. Points are held to the box.

ยงErrors

OgeomError::Construction if the box is malformed or start does not match it.