Module rust_monster::ga::ga_selectors [] [src]

GA Selectors

A selector represents and performs a method of selection.

Selection is the action of choosing solutions (individuals) of the current generation that will create offspring for the next generation.

Selectors represent and perform a different method of selection each. The expectation is that the offspring solutions be fitter than their selected parents. For this reason, many of the selectors tend to choose the fitter most of the time. However, many of them acknowledge the need for selecting less fit solutions, too: A genetic operator (crossover, mutation) used on suboptimal solutions may sometimes produce a solution that is fitter than those that could be produced by optimal ones.

Available selectors:

GARankSelector GAUniformSelector GARouletteWheelSelector GATournamentSelector

Examples

Structs

GARankSelector

Rank selector.

GARawScoreBasedSelection

Selection based on RAW score.

GARouletteWheelSelector

Roulette Wheel selector.

GAScaledScoreBasedSelection

Selection based on SCALED score.

GATournamentSelector

Tournament selector.

GAUniformSelector

Traits

GAScoreTypeBasedSelection

Selection score type basis.

GASelector

Selector trait.