Exact 2D dominated hypervolume against a fixed reference point. Sorts points by the first minimization-oriented objective ascending, then sweeps and accumulates the dominated rectangle area against the reference. Points that don't strictly dominate the reference are ignored. Panics with a clear message if the objective space does not have exactly two objectives (spec §14.2). Tests cover a known-area front, the no-coverage case, and the panic on non-2D problems.
8 lines
123 B
Rust
8 lines
123 B
Rust
//! Quality metrics for Pareto fronts.
|
|
|
|
pub mod hypervolume;
|
|
pub mod spacing;
|
|
|
|
pub use hypervolume::*;
|
|
pub use spacing::*;
|