Expand description
Parent selection over a slice of costs (smaller is better): tournament, truncation, fitness-proportional, linear ranking, stochastic universal sampling and uniform.
Structs§
- Linear
Ranking - Linear ranking selection (Baker 1985) with selective pressure
s ∈ [1, 2]: the best ofnindividuals is expected to be chosenstimes pernpicks, the worst2 - stimes. The Evolutionary Programmer’s scores 1.2 (best) to 0.8 (worst) ares = 1.2. - Proportional
- Fitness-proportional selection on minimised costs: the weight of individual
iisworst - 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: drawsizecontestants uniformly with replacement, keep the cheapest (the earliest drawn among equals). - Truncation
- Truncation selection: uniform among the best
fractionof 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.