Skip to main content

Module selection

Module selection 

Source
Expand description

Parent selection over a slice of costs (smaller is better): tournament, truncation, fitness-proportional, linear ranking, stochastic universal sampling and uniform.

Structs§

LinearRanking
Linear ranking selection (Baker 1985) with selective pressure s ∈ [1, 2]: the best of n individuals is expected to be chosen s times per n picks, the worst 2 - s times. The Evolutionary Programmer’s scores 1.2 (best) to 0.8 (worst) are s = 1.2.
Proportional
Fitness-proportional selection on minimised costs: the weight of individual i is worst - cost_i, so the worst individual is never chosen unless all are equal (then the choice is uniform). Infinite costs get weight zero.
Tournament
Deterministic k-tournament: draw size contestants uniformly with replacement, keep the cheapest (the earliest drawn among equals).
Truncation
Truncation selection: uniform among the best fraction of the population (at least one).
Uniform
Uniform selection, ignoring costs.

Enums§

Sampling
How a selection scheme turns weights into indices.

Traits§

Selection
Picks parent indices from a population, given the population’s costs.