Add chromosome to the population.Namespace: AForge.Genetic
Assembly: AForge.Genetic (in AForge.Genetic.dll) Version: 188.8.131.52 (184.108.40.206)
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.