feat(selection): add random and single-objective tournament selection
`select_random` samples `count` decisions with replacement and clones them out of the population (spec §10.1). `tournament_select_single_objective` runs binary-or-larger tournaments with the spec's tiebreak order: feasible beats infeasible, lower violation among infeasibles, and direction-correct objective comparison among feasibles. Panics if not exactly one objective (spec §10.2). Selection helpers stay under `heuropt::selection` and are not part of the prelude (spec §15).
This commit is contained in:
@@ -6,4 +6,5 @@ pub mod core;
|
||||
pub mod operators;
|
||||
pub mod pareto;
|
||||
pub mod prelude;
|
||||
pub mod selection;
|
||||
pub mod traits;
|
||||
|
||||
Reference in New Issue
Block a user