|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectjmetal.core.Problem
org.moeaframework.algorithm.jmetal.JMetalProblemAdapter
public class JMetalProblemAdapter
Adapter for JMetal problems. This allows MOEA Framework Problems to
be used within the JMetal library.
| Field Summary |
|---|
| Fields inherited from class jmetal.core.Problem |
|---|
length_, lowerLimit_, numberOfConstraints_, numberOfObjectives_, numberOfVariables_, precision_, problemName_, solutionType_, upperLimit_ |
| Constructor Summary | |
|---|---|
JMetalProblemAdapter(Problem problem)
Constructs a JMetal problem adapter. |
|
| Method Summary | |
|---|---|
void |
evaluate(jmetal.core.Solution solution)
|
Problem |
getProblem()
Returns the problem underlying by this adapter. |
Solution |
translate(jmetal.core.Solution solution)
Translates the specified JMetal solution into a Solution. |
| Methods inherited from class jmetal.core.Problem |
|---|
evaluateConstraints, getLength, getLowerLimit, getName, getNumberOfBits, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, getPrecision, getPrecision, getSolutionType, getUpperLimit, setNumberOfVariables, setPrecision, setSolutionType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JMetalProblemAdapter(Problem problem)
problem - the problem| Method Detail |
|---|
public void evaluate(jmetal.core.Solution solution)
throws jmetal.util.JMException
evaluate in class jmetal.core.Problemjmetal.util.JMExceptionpublic Solution translate(jmetal.core.Solution solution)
Solution. Only
works with RealVariable, BinaryVariable and
Permutation decision variables. Since JMetal uses aggregate
constraints, constraint values are only copied if there is a single
constraint.
solution - the JMetal solution to be translated
public Problem getProblem()
|
MOEA Framework 2.5 API Specification |
|||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||