Indicators¶
Guide: Multi-objective benchmarks.
Quality indicators for sets of objective vectors (all objectives minimized).
points is an approximation set with shape (n, m), for example the front of a run, and
front is a sample of the true Pareto front (see ypea.benchmarks.multi.pareto_front).
Distances are Euclidean. An empty approximation set gives inf for the distance indicators
and 0 for the hypervolume.
Formulas, with d(a, Z) = min over z in Z of ||a - z||:
- GD (generational distance) = mean over a in points of d(a, front). Van Veldhuizen and Lamont (1998) defined sqrt(sum d^2) / n. The mean (the GD_p of Schuetze et al. 2012 with p = 1) does not shrink as n grows, and it is what pymoo computes.
- IGD (inverted generational distance) = mean over z in front of d(z, points). Coello Coello and Reyes Sierra (2004).
- GD+ and IGD+ use d+(a, z) = ||max(a - z, 0)||, the distance in the dominated direction only, so they are weakly Pareto compliant. Ishibuchi, Masuda, Tanigaki and Nojima (2015), "Modified distance calculation in generational distance and inverted generational distance", EMO 2015.
- Hypervolume = the volume of the region dominated by the points and bounded by the reference point. Zitzler and Thiele (1998). Exact for up to 3 objectives (a sort for 2, slices along the third objective for 3, as in the HSO of While, Hingston, Barone and Huband 2006). Monte Carlo estimate above 3 objectives.
- Spacing = sqrt(sum (mean(d) - d_i)^2 / (n - 1)) with d_i the smallest L1 distance from point i to another point. Schott (1995), MSc thesis, MIT. 0 means evenly spaced.
gd ¶
gd(points, front)
Generational distance: the mean distance from each point to the nearest front point.
igd ¶
igd(points, front)
Inverted generational distance: the mean distance from each front point to the set.
gd_plus ¶
gd_plus(points, front)
GD+: like GD with the distance counted only where a point is worse than the front.
igd_plus ¶
igd_plus(points, front)
IGD+: like IGD with the distance counted only where the set is worse than the front.
hypervolume ¶
hypervolume(points, ref, n_samples=1000000, seed=0)
Volume dominated by points and bounded by the reference point ref.
Points that do not strictly dominate ref add nothing and are ignored, and so do
dominated and repeated points. The value is exact for 1 to 3 objectives. For 4 and
more it is a Monte Carlo estimate from n_samples uniform samples in the box between
the best point coordinates and ref, drawn from numpy.random.default_rng(seed),
so the same seed gives the same value. The standard error is about
V sqrt(q (1 - q) / n_samples) for a box volume V and a dominated share q.
spacing ¶
spacing(points)
Schott's spacing: the spread of nearest neighbor L1 distances (0 is evenly spaced).
Needs at least two points: fewer give NaN.