Add chromosome to the population.

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

Syntax

C#
public void AddChromosome(
	IChromosome chromosome
)

Parameters

chromosome
Type: AForge.Genetic..::.IChromosome
Chromosome to add to the population.

Remarks

The method adds specified chromosome to the current population. Manual adding of chromosome maybe useful, when it is required to add some initialized chromosomes instead of random.

Note:Adding chromosome manually should be done very carefully, since it may break the population. The manually added chromosome must have the same type and initialization parameters as the ancestor passed to constructor.

See Also