Assembly: AForge.Genetic (in AForge.Genetic.dll) Version: 188.8.131.52 (184.108.40.206)
public void Migrate( Population anotherPopulation, int numberOfMigrants, ISelectionMethod migrantsSelector )
- Type: AForge.Genetic..::.Population
Population to do migration with.
- Type: System..::.Int32
Number of chromosomes from each population to migrate.
- Type: AForge.Genetic..::.ISelectionMethod
Selection algorithm used to select chromosomes to migrate.
The method performs migration between two populations - current and the anotherPopulation. During migration numberOfMigrants of chromosomes is choosen from each population using migrantsSelector and put into another population replacing worst members there.