Add chromosome to the population.Namespace: AForge.Genetic
Assembly: AForge.Genetic (in AForge.Genetic.dll) Version: 18.104.22.168 (22.214.171.124)
public void AddChromosome( IChromosome chromosome )
- Type: AForge.Genetic..::.IChromosome
Chromosome to add to the population.
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.