MOEA Framework 2.12
API Specification

org.moeaframework.algorithm.jmetal
Class JMetalProblemAdapter

java.lang.Object
  extended by jmetal.core.Problem
      extended by org.moeaframework.algorithm.jmetal.JMetalProblemAdapter
All Implemented Interfaces:
Serializable

public class JMetalProblemAdapter
extends jmetal.core.Problem

Adapter for JMetal problems. This allows MOEA Framework Problems to be used within the JMetal library.

See Also:
Serialized Form

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

JMetalProblemAdapter

public JMetalProblemAdapter(Problem problem)
Constructs a JMetal problem adapter.

Parameters:
problem - the problem
Method Detail

evaluate

public void evaluate(jmetal.core.Solution solution)
              throws jmetal.util.JMException
Specified by:
evaluate in class jmetal.core.Problem
Throws:
jmetal.util.JMException

translate

public Solution translate(jmetal.core.Solution solution)
Translates the specified JMetal solution into a 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.

Parameters:
solution - the JMetal solution to be translated
Returns:
the translated solution

getProblem

public Problem getProblem()
Returns the problem underlying by this adapter.

Returns:
the problem underlying by this adapter

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!