Class RingMigration
- java.lang.Object
-
- org.uncommons.watchmaker.framework.islands.RingMigration
-
- All Implemented Interfaces:
Migration
public class RingMigration extends Object implements Migration
Migrates a fixed number of individuals from each island to the adjacent island. Operates as if the islands are arranged in a ring with migration occurring in a clockwise direction. The individuals to be migrated are chosen completely at random.
-
-
Constructor Summary
Constructors Constructor Description RingMigration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> void
migrate(List<List<EvaluatedCandidate<T>>> islandPopulations, int migrantCount, Random rng)
Migrates a fixed number of individuals from each island to the adjacent island.
-
-
-
Method Detail
-
migrate
public <T> void migrate(List<List<EvaluatedCandidate<T>>> islandPopulations, int migrantCount, Random rng)
Migrates a fixed number of individuals from each island to the adjacent island. Operates as if the islands are arranged in a ring with migration occurring in a clockwise direction. The individuals to be migrated are chosen completely at random.
-
-