Class BasicIslandExecutor

java.lang.Object
org.moeaframework.parallel.island.executor.BasicIslandExecutor
All Implemented Interfaces:
Closeable, AutoCloseable, IslandExecutor
Direct Known Subclasses:
ThreadedIslandExecutor

public class BasicIslandExecutor extends Object implements IslandExecutor
Executes an island model using an .
  • Constructor Details

    • BasicIslandExecutor

      public BasicIslandExecutor(IslandModel model, ExecutorService executorService)
      Constructs an island model executor using an ExecutorService.
      Parameters:
      model - the island model
      executorService - the executor service that drives each island
  • Method Details

    • run

      public NondominatedPopulation run(int maxEvaluations)
      Description copied from interface: IslandExecutor
      Executes this island model for the given number of function evaluations.
      Specified by:
      run in interface IslandExecutor
      Parameters:
      maxEvaluations - the maximum number of evaluations across all islands
      Returns:
      the resulting non-dominated population aggregated across all islands
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException