Class SingleNeighborMigration

java.lang.Object
org.moeaframework.parallel.island.migration.SingleNeighborMigration
All Implemented Interfaces:
Migration

public class SingleNeighborMigration extends Object implements Migration
Migration strategy that sends migrants to exactly one neighboring island each iteration.
  • Constructor Details

    • SingleNeighborMigration

      public SingleNeighborMigration(int size, Selection selection)
      Creates a new one-way migration strategy.
      Parameters:
      size - the number of solutions migrated each iteration
      selection - the process for selecting emigrants
  • Method Details

    • migrate

      public void migrate(Island currentIsland, List<Island> neighbors)
      Description copied from interface: Migration
      Performs a single migration operation between the current island and its neighbors.
      Specified by:
      migrate in interface Migration
      Parameters:
      currentIsland - the current island
      neighbors - the neighboring islands