MOEA Framework 2.12
API Specification

org.moeaframework.problem.CDTLZ
Class ConvexDTLZ2

java.lang.Object
  extended by org.moeaframework.problem.AbstractProblem
      extended by org.moeaframework.problem.DTLZ.DTLZ
          extended by org.moeaframework.problem.DTLZ.DTLZ2
              extended by org.moeaframework.problem.CDTLZ.ConvexDTLZ2
All Implemented Interfaces:
Problem, AnalyticalProblem
Direct Known Subclasses:
ConvexC2_DTLZ2

public class ConvexDTLZ2
extends DTLZ2

The convex DTLZ2 problem.


Field Summary
 
Fields inherited from class org.moeaframework.problem.AbstractProblem
numberOfConstraints, numberOfObjectives, numberOfVariables
 
Constructor Summary
ConvexDTLZ2(int numberOfObjectives)
          Constructs a convex DTLZ2 test problem with the specified number of objectives.
ConvexDTLZ2(int numberOfVariables, int numberOfObjectives)
          Constructs a convex DTLZ2 test problem with the specified number of variables and objectives.
 
Method Summary
 void evaluate(Solution solution)
          Evaluates the solution, updating the solution's objectives in place.
 Solution generate()
          Returns a randomly-generated solution using the analytical solution to this problem.
 
Methods inherited from class org.moeaframework.problem.DTLZ.DTLZ
newSolution
 
Methods inherited from class org.moeaframework.problem.AbstractProblem
close, finalize, getName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.moeaframework.core.Problem
close, getName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables
 

Constructor Detail

ConvexDTLZ2

public ConvexDTLZ2(int numberOfVariables,
                   int numberOfObjectives)
Constructs a convex DTLZ2 test problem with the specified number of variables and objectives.

Parameters:
numberOfVariables - the number of variables for this problem
numberOfObjectives - the number of objectives for this problem

ConvexDTLZ2

public ConvexDTLZ2(int numberOfObjectives)
Constructs a convex DTLZ2 test problem with the specified number of objectives. This is equivalent to calling new DTLZ2(numberOfObjectives+9, numberOfObjectives).

Parameters:
numberOfObjectives - the number of objectives for this problem
Method Detail

evaluate

public void evaluate(Solution solution)
Description copied from interface: Problem
Evaluates the solution, updating the solution's objectives in place. Algorithms must explicitly call this method when appropriate to evaluate new solutions or reevaluate modified solutions.

Specified by:
evaluate in interface Problem
Overrides:
evaluate in class DTLZ2
Parameters:
solution - the solution to be evaluated

generate

public Solution generate()
Description copied from interface: AnalyticalProblem
Returns a randomly-generated solution using the analytical solution to this problem. Note however that discontinuous Pareto surfaces may result in some solutions generated by this method being dominated by other generated solutions. It is therefore recommended using a NondominatedPopulation to removed dominated solutions prior to using the generated reference set.

The generated solutions should be spread uniformly across the entire Pareto frontier; however, this is a suggestion and is not a requirement of this interface.

Specified by:
generate in interface AnalyticalProblem
Overrides:
generate in class DTLZ2
Returns:
a randomly-generated Pareto optimal solution to this problem

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!