Skip to main content

nsga2_optimize

Function nsga2_optimize 

Source
pub fn nsga2_optimize<S: Scalar>(
    objectives: &'_ [&'_ dyn Fn(&[S]) -> S],
    bounds: &[(S, S)],
    opts: &NsgaIIOptions<S>,
) -> Result<OptimResult<S>, OptimError>
Expand description

NSGA-II multi-objective optimization.

Minimizes multiple objectives simultaneously, returning a set of Pareto-optimal solutions.

§Arguments

  • objectives - Slice of objective functions, each taking &[S] and returning S.
  • bounds - Variable bounds as (lower, upper) pairs, one per decision variable.
  • opts - Algorithm options.

§Returns

An OptimResult with:

  • x: the Pareto point with the best (minimum) first objective value.
  • f: that point’s first objective value.
  • pareto: the full Pareto front as Some(ParetoResult).