Class BasicIslandExecutor
java.lang.Object
org.moeaframework.parallel.island.executor.BasicIslandExecutor
- All Implemented Interfaces:
Closeable,AutoCloseable,IslandExecutor
- Direct Known Subclasses:
ThreadedIslandExecutor
Executes an island model using an .
-
Constructor Summary
ConstructorsConstructorDescriptionBasicIslandExecutor(IslandModel model, ExecutorService executorService) Constructs an island model executor using anExecutorService. -
Method Summary
-
Constructor Details
-
BasicIslandExecutor
Constructs an island model executor using anExecutorService.- Parameters:
model- the island modelexecutorService- the executor service that drives each island
-
-
Method Details
-
run
Description copied from interface:IslandExecutorExecutes this island model for the given number of function evaluations.- Specified by:
runin interfaceIslandExecutor- Parameters:
maxEvaluations- the maximum number of evaluations across all islands- Returns:
- the resulting non-dominated population aggregated across all islands
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-