Class Island
java.lang.Object
org.moeaframework.parallel.island.Island
Represents an island in an island model for parallelization. Each island is essentially a separate instance of an
optimization algorithm. Migration events can periodically copy or move solutions between islands.
-
Constructor Summary
ConstructorDescriptionIsland
(Algorithm algorithm, Population population) Creates a new island with the given algorithm and population. -
Method Summary
Modifier and TypeMethodDescriptionReturns the current optimization algorithm used by this island.Returns the immigration queue for this island.Returns the current population of this island.
-
Constructor Details
-
Island
Creates a new island with the given algorithm and population.- Parameters:
algorithm
- the algorithm assigned to this islandpopulation
- the initial population for this island
-
-
Method Details
-
getAlgorithm
Returns the current optimization algorithm used by this island.- Returns:
- the algorithm
-
getPopulation
Returns the current population of this island.- Returns:
- the population
-
getImmigrationQueue
Returns the immigration queue for this island. Neighboring islands should add solutions into the immigration queue, which will then get injected into the population at an opportune time.- Returns:
- the immigration queue
-