Click or drag to resize
Accord.NET (logo)

PopulationAddChromosome Method

Add chromosome to the population.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.8.0
Syntax
public void AddChromosome(
	IChromosome chromosome
)
Request Example View Source

Parameters

chromosome
Type: Accord.GeneticIChromosome
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 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