Class IslandModel
java.lang.Object
org.moeaframework.parallel.island.IslandModel
Describes the design of an island model parallelization strategy conceptually, including the islands, their
topology, the migration schedule, etc.
-
Constructor Summary
ConstructorDescriptionIslandModel
(int migrationFrequency, Migration migration, Topology topology) Constructs a new island model. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a new island to this island model.Returns all islands contained within this island model.Returns the migration strategy used by this island model.int
Returns the migration frequency, in function evaluations, used by this island model.Returns the island topology, describing neighboring islands for the purpose of migrations.
-
Constructor Details
-
IslandModel
Constructs a new island model.- Parameters:
migrationFrequency
- the migration frequency, in function evaluationsmigration
- the migration strategytopology
- 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
Returns the migration strategy used by this island model.- Returns:
- the migration strategy
-
getTopology
Returns the island topology, describing neighboring islands for the purpose of migrations.- Returns:
- the island topology
-
addIsland
Adds a new island to this island model.- Parameters:
island
- the island to add
-
getIslands
Returns all islands contained within this island model.- Returns:
- the list of islands
-