pub fn minimize<F>(
f: F,
a: f64,
b: f64,
criteria: Criteria,
) -> OgeomResult<Solution>Expand description
Minimize a scalar function on [a, b] without derivatives.
Brent’s method again: golden-section search with parabolic interpolation wherever the parabola is well behaved. Converges for any continuous function and is not fooled by the flat regions near a minimum, where a derivative method has nothing to work with.
§Errors
OgeomError::Construction if the bracket is
malformed.