Migration Operators

mig_ring(populations, mig_count, selection, replacement=None, mig_indices=None)

Performs a ring migration between the populations. The migration first selects mig_count emigrants from each population using the specified selection operator and then switches the selected individuals between the populations.

Parameters
  • populations (list) – A list of populations on which to operate migration.

  • mig_count (int) – The number of individuals to migrate.

  • selection (Callable) – The function to select emigrants from each population.

  • replacement (Optional[Callable]) – The function to select which individuals will be switched.

  • mig_indices (Optional[list]) – A list of indices indicating where the individuals from a particular position in the list goes. Default is a ring migration.

Returns

Nothing.

Return type

None