Module rsgenetic::sim::select [] [src]

The selection module provides a trait that can be implemented to implement new selection algorithms. This module also provides a couple of useful selection algorithms.

Each of the selection algorithms provided has a parameter count, which indicates the number of selected parents.

Structs

MaximizeSelector

Selects best performing phenotypes from the population.

RouletteSelector

Selects phenotypes with a probability based on their fitness value.

StochasticSelector

Selects phenotypes at random, starting from a random index and taking equidistant jumps.

TournamentSelector

Runs several tournaments, and selects best performing phenotypes from each tournament.

Traits

Selector

A Selector can select Parents for a new iteration of a Simulation.

Type Definitions

Parents

Parents come in a Vec of two T's.