Assembly: AForge.Genetic (in AForge.Genetic.dll) Version: 22.214.171.124 (126.96.36.199)
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.