pub fn hypervolume<C: ExactArith<Exact = BigUint>, const N: usize>(
points: &[[C; N]],
reference: [C; N],
) -> BigUintExpand description
The hypervolume of points: the volume of the region they dominate
below reference, exactly (Zitzler and Thiele; the convergence-
diversity indicator Domínguez-Ríos et al. use to compare anytime
fronts). Points not strictly below reference in every objective add
nothing.
Computed by slicing along the last objective, which is exponential in the number of objectives but exact; meant for evaluation, not for the inner loop of a search.
§Examples
use multiobjective_search::hypervolume;
use search_core::BigUint;
// Two points below (10, 10): [2,10)×[8,10) and [6,10)×[3,10) overlap in [6,10)×[8,10).
let hv = hypervolume(&[[2_u32, 8], [6, 3]], [10, 10]);
assert_eq!(hv, BigUint::from(16 + 28 - 8));