Skip to main content

de_minimize

Function de_minimize 

Source
pub fn de_minimize<S: Scalar, F>(
    f: F,
    bounds: &[(S, S)],
    opts: &DEOptions<S>,
) -> Result<OptimResult<S>, OptimError>
where F: Fn(&[S]) -> S,
Expand description

Minimize f over the box defined by bounds using Differential Evolution (DE/rand/1/bin strategy).

This is a derivative-free global optimizer suitable for non-convex, noisy, or multimodal objective functions.

§Arguments

  • f - Objective function mapping &[S] to S.
  • bounds - Slice of (lower, upper) pairs, one per dimension.
  • opts - Algorithm options (see DEOptions).

§Returns

An OptimResult with the best solution found.