Class AsynchronousMultiThreadedGeneticAlgorithm<S extends Solution<?>>
java.lang.Object
org.uma.jmetal.parallel.asynchronous.multithreaded.Master<ParallelTask<S>,List<S>>
org.uma.jmetal.parallel.asynchronous.algorithm.impl.AsynchronousMultiThreadedGeneticAlgorithm<S>
- All Implemented Interfaces:
AsynchronousParallelAlgorithm<ParallelTask<S>,List<S>>
- Direct Known Subclasses:
AsynchronousMultiThreadedNSGAII
public class AsynchronousMultiThreadedGeneticAlgorithm<S extends Solution<?>>
extends Master<ParallelTask<S>,List<S>>
-
Field Summary
Fields inherited from class org.uma.jmetal.parallel.asynchronous.multithreaded.Master
completedTaskQueue, pendingTaskQueue -
Constructor Summary
ConstructorsConstructorDescriptionAsynchronousMultiThreadedGeneticAlgorithm(int numberOfCores, Problem<S> problem, int populationSize, CrossoverOperator<S> crossover, MutationOperator<S> mutation, SelectionOperator<List<S>, S> selection, Replacement<S> replacement, Termination termination) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprocessComputedTask(ParallelTask<S> task) voidrun()booleanvoidsubmitInitialTasks(List<ParallelTask<S>> initialTaskList) voidsubmitTask(ParallelTask<S> task) voidMethods inherited from class org.uma.jmetal.parallel.asynchronous.multithreaded.Master
getCompletedTaskQueue, getInitialTask, getPendingTaskQueue, thereAreInitialTasksPending, waitForComputedTask
-
Constructor Details
-
AsynchronousMultiThreadedGeneticAlgorithm
public AsynchronousMultiThreadedGeneticAlgorithm(int numberOfCores, Problem<S> problem, int populationSize, CrossoverOperator<S> crossover, MutationOperator<S> mutation, SelectionOperator<List<S>, S> selection, Replacement<S> replacement, Termination termination)
-
-
Method Details
-
initProgress
public void initProgress() -
updateProgress
public void updateProgress() -
createInitialTasks
-
submitInitialTasks
- Specified by:
submitInitialTasksin interfaceAsynchronousParallelAlgorithm<ParallelTask<S extends Solution<?>>,List<S extends Solution<?>>> - Overrides:
submitInitialTasksin classMaster<ParallelTask<S extends Solution<?>>,List<S extends Solution<?>>>
-
processComputedTask
- Specified by:
processComputedTaskin interfaceAsynchronousParallelAlgorithm<ParallelTask<S extends Solution<?>>,List<S extends Solution<?>>> - Specified by:
processComputedTaskin classMaster<ParallelTask<S extends Solution<?>>,List<S extends Solution<?>>>
-
submitTask
- Specified by:
submitTaskin interfaceAsynchronousParallelAlgorithm<ParallelTask<S extends Solution<?>>,List<S extends Solution<?>>> - Overrides:
submitTaskin classMaster<ParallelTask<S extends Solution<?>>,List<S extends Solution<?>>>
-
createNewTask
- Specified by:
createNewTaskin interfaceAsynchronousParallelAlgorithm<ParallelTask<S extends Solution<?>>,List<S extends Solution<?>>> - Specified by:
createNewTaskin classMaster<ParallelTask<S extends Solution<?>>,List<S extends Solution<?>>>
-
stoppingConditionIsNotMet
public boolean stoppingConditionIsNotMet()- Specified by:
stoppingConditionIsNotMetin interfaceAsynchronousParallelAlgorithm<ParallelTask<S extends Solution<?>>,List<S extends Solution<?>>> - Specified by:
stoppingConditionIsNotMetin classMaster<ParallelTask<S extends Solution<?>>,List<S extends Solution<?>>>
-
run
public void run() -
getResult
-
getObservable
-