Skip to main content

hypervolume

Function hypervolume 

Source
pub fn hypervolume(pareto_front: &[Vec<f64>], reference_point: &[f64]) -> f64
Expand description

Compute the hypervolume indicator.

  • Exact for 1-D and 2-D fronts (O(n log n)).
  • Monte Carlo approximation (100 000 samples) for dimensions ≥ 3.

§Examples

use scirs2_optimize::multi_objective::advanced::hypervolume;
let front = vec![vec![1.0, 2.0], vec![2.0, 1.0]];
let ref_pt = vec![3.0, 3.0];
let hv = hypervolume(&front, &ref_pt);
assert!((hv - 3.0).abs() < 1e-6);