feat(pareto): add pareto_front and best_candidate

`pareto_front` returns all candidates not dominated by any other in
input order (O(N²·M), acceptable for v1 per spec §9.3).

`best_candidate` is the single-objective "best" finder: returns None
unless there is exactly one objective; ignores infeasibles; returns None
if every candidate is infeasible (spec §9.4).

Both re-exported from the prelude.
This commit is contained in:
2026-05-04 19:19:13 -06:00
parent 95e797647b
commit da9baf0325
3 changed files with 155 additions and 1 deletions
+2
View File
@@ -1,5 +1,7 @@
//! Pareto utilities: dominance, fronts, sorting, crowding, and an archive.
pub mod dominance;
pub mod front;
pub use dominance::*;
pub use front::*;