C# Class Accord.Genetic.RouletteWheelSelection

Roulette wheel selection method.

The algorithm selects chromosomes to the new generation according to their fitness values - the more fitness value chromosome has, the more chances it has to become member of new generation. Each chromosome can be selected several times to the new generation.

The "roulette's wheel" is divided into sectors, which size is proportional to the fitness values of chromosomes - the size of the wheel is the sum of all fitness values, size of each sector equals to fitness value of chromosome.

Inheritance: ISelectionMethod
Afficher le fichier Open project: accord-net/framework

Méthodes publiques

Méthode Description
ApplySelection ( List chromosomes, int size ) : void

Apply selection to the specified population.

Filters specified population keeping only those chromosomes, which won "roulette" game.

RouletteWheelSelection ( ) : System

Initializes a new instance of the RouletteWheelSelection class.

Method Details

ApplySelection() public méthode

Apply selection to the specified population.
Filters specified population keeping only those chromosomes, which won "roulette" game.
public ApplySelection ( List chromosomes, int size ) : void
chromosomes List Population, which should be filtered.
size int The amount of chromosomes to keep.
Résultat void

RouletteWheelSelection() public méthode

Initializes a new instance of the RouletteWheelSelection class.
public RouletteWheelSelection ( ) : System
Résultat System