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
+1 -1
View File
@@ -11,4 +11,4 @@ pub use crate::core::{
pub use crate::traits::{Initializer, Optimizer, Variation};
pub use crate::pareto::{Dominance, pareto_compare};
pub use crate::pareto::{Dominance, best_candidate, pareto_compare, pareto_front};