|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.moeaframework.util.distributed.DistributedProblem
public class DistributedProblem
Distributes the evaluate(Solution) method across multiple threads,
cores or compute nodes using the provided ExecutorService. The
ExecutorService defines the type and method of distribution. The
problem must be Serializable if executing on remote nodes.
| Constructor Summary | |
|---|---|
DistributedProblem(Problem problem,
ExecutorService executor)
Decorates a problem for distributing the evaluation of the problem across multiple threads, cores or compute nodes as defined by the specified ExecutorService. |
|
| Method Summary | |
|---|---|
void |
close()
Closes any underlying resources used by this problem. |
void |
evaluate(Solution solution)
Evaluates the solution, updating the solution's objectives in place. |
String |
getName()
Returns the user-friendly name for this problem. |
int |
getNumberOfConstraints()
Returns the number of constraints defined by this problem. |
int |
getNumberOfObjectives()
Returns the number of objectives defined by this problem. |
int |
getNumberOfVariables()
Returns the number of decision variables defined by this problem. |
Solution |
newSolution()
Returns a new solution for this problem. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DistributedProblem(Problem problem,
ExecutorService executor)
ExecutorService.
problem - the problem being distributedexecutor - the ExecutorService for distributing jobs across
multiple threads, cores or compute nodes| Method Detail |
|---|
public void evaluate(Solution solution)
Problem
evaluate in interface Problemsolution - the solution to be evaluatedpublic String getName()
Problem
getName in interface Problempublic int getNumberOfConstraints()
Problem
getNumberOfConstraints in interface Problempublic int getNumberOfObjectives()
Problem
getNumberOfObjectives in interface Problempublic int getNumberOfVariables()
Problem
getNumberOfVariables in interface Problempublic Solution newSolution()
Problem
newSolution in interface Problempublic void close()
Problem
close in interface Problem
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||