Class IslandModel

java.lang.Object
org.moeaframework.parallel.island.IslandModel

public class IslandModel extends Object
Describes the design of an island model parallelization strategy conceptually, including the islands, their topology, the migration schedule, etc.
  • Constructor Details

    • IslandModel

      public IslandModel(int migrationFrequency, Migration migration, Topology topology)
      Constructs a new island model.
      Parameters:
      migrationFrequency - the migration frequency, in function evaluations
      migration - the migration strategy
      topology - the island topology
  • Method Details

    • getMigrationFrequency

      public int getMigrationFrequency()
      Returns the migration frequency, in function evaluations, used by this island model.
      Returns:
      the migration frequency
    • getMigration

      public Migration getMigration()
      Returns the migration strategy used by this island model.
      Returns:
      the migration strategy
    • getTopology

      public Topology getTopology()
      Returns the island topology, describing neighboring islands for the purpose of migrations.
      Returns:
      the island topology
    • addIsland

      public void addIsland(Island island)
      Adds a new island to this island model.
      Parameters:
      island - the island to add
    • getIslands

      public List<Island> getIslands()
      Returns all islands contained within this island model.
      Returns:
      the list of islands