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