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
ConstructorDescriptionBasicIslandExecutor
(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:IslandExecutor
Executes this island model for the given number of function evaluations.- Specified by:
run
in interfaceIslandExecutor
- Parameters:
maxEvaluations
- the maximum number of evaluations across all islands- Returns:
- the resulting non-dominated population aggregated across all islands
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-