|
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.core.Solution
org.moeaframework.util.distributed.FutureSolution
public class FutureSolution
Represents a Solution evaluated asynchronously. Calls to
Future through the setFuture(Future)
method prior to submitting this solution for evaluation.
| Method Summary | |
|---|---|
FutureSolution |
copy()
Returns an independent copy of this solution. |
double |
getConstraint(int index)
Returns the constraint at the specified index. |
double[] |
getConstraints()
Returns an array containing the constraints of this solution. |
double |
getObjective(int index)
Returns the objective at the specified index. |
double[] |
getObjectives()
Returns an array containing the objectives of this solution. |
| Methods inherited from class org.moeaframework.core.Solution |
|---|
addAttributes, clearAttributes, getAttribute, getAttributes, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, getVariable, hasAttribute, removeAttribute, setAttribute, setConstraint, setConstraints, setObjective, setObjectives, setVariable, violatesConstraints |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public FutureSolution copy()
Solutionx.copy() is completely independent from x . This means
any method invoked on x.copy() in no way alters the state of
x and vice versa. It is typically the case that
x.copy().getClass() == x.getClass() and
x.copy().equals(x)
Note that a solution's attributes are not copied, as the attributes are generally specific to each instance.
copy in class Solutionpublic double[] getObjectives()
Solution
getObjectives in class Solutionpublic double getConstraint(int index)
Solution
getConstraint in class Solutionindex - index of the variable to be returned
public double[] getConstraints()
Solution
getConstraints in class Solutionpublic double getObjective(int index)
Solution
getObjective in class Solutionindex - index of the objective to return
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||