Apply selection to the specified population.

Namespace:  AForge.Genetic
Assembly:  AForge.Genetic (in AForge.Genetic.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public void ApplySelection(
	List<IChromosome> chromosomes,
	int size
)

Parameters

chromosomes
Type: System.Collections.Generic..::.List<(Of <(IChromosome>)>)
Population, which should be filtered.
size
Type: System..::.Int32
The amount of chromosomes to keep.

Implements

ISelectionMethod..::.ApplySelection(List<(Of <(IChromosome>)>), Int32)

Remarks

Filters specified population keeping only specified amount of best chromosomes.

See Also