Click or drag to resize
Accord.NET (logo)

PopulationMigrate Method

Perform migration between two populations.

Namespace:  Accord.Genetic
Assembly:  Accord.Genetic (in Accord.Genetic.dll) Version: 3.8.0
Syntax
public void Migrate(
	Population anotherPopulation,
	int numberOfMigrants,
	ISelectionMethod migrantsSelector
)
Request Example View Source

Parameters

anotherPopulation
Type: Accord.GeneticPopulation
Population to do migration with.
numberOfMigrants
Type: SystemInt32
Number of chromosomes from each population to migrate.
migrantsSelector
Type: Accord.GeneticISelectionMethod
Selection algorithm used to select chromosomes to migrate.
Remarks

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.

See Also