MOEA Framework 2.12
API Specification

org.moeaframework.problem.CDTLZ
Class C1_DTLZ1

java.lang.Object
  extended by org.moeaframework.problem.AbstractProblem
      extended by org.moeaframework.problem.DTLZ.DTLZ
          extended by org.moeaframework.problem.DTLZ.DTLZ1
              extended by org.moeaframework.problem.CDTLZ.C1_DTLZ1
All Implemented Interfaces:
Problem, AnalyticalProblem

public class C1_DTLZ1
extends DTLZ1

The C1-DTLZ1 test problem.


Field Summary
 
Fields inherited from class org.moeaframework.problem.AbstractProblem
numberOfConstraints, numberOfObjectives, numberOfVariables
 
Constructor Summary
C1_DTLZ1(int numberOfObjectives)
          Constructs a C1-DTLZ1 test problem with the specified number of objectives.
C1_DTLZ1(int numberOfVariables, int numberOfObjectives)
          Constructs a C1-DTLZ1 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.
 int getNumberOfConstraints()
          Returns the number of constraints defined by this problem.
 Solution newSolution()
          Returns a new solution for this problem.
 
Methods inherited from class org.moeaframework.problem.DTLZ.DTLZ1
generate
 
Methods inherited from class org.moeaframework.problem.AbstractProblem
close, finalize, getName, 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, getNumberOfObjectives, getNumberOfVariables
 

Constructor Detail

C1_DTLZ1

public C1_DTLZ1(int numberOfVariables,
                int numberOfObjectives)
Constructs a C1-DTLZ1 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

C1_DTLZ1

public C1_DTLZ1(int numberOfObjectives)
Constructs a C1-DTLZ1 test problem with the specified number of objectives. This is equivalent to calling new DTLZ1(numberOfObjectives+4, numberOfObjectives).

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

getNumberOfConstraints

public int getNumberOfConstraints()
Description copied from interface: Problem
Returns the number of constraints defined by this problem.

Specified by:
getNumberOfConstraints in interface Problem
Overrides:
getNumberOfConstraints in class AbstractProblem
Returns:
the number of constraints defined by this problem

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 DTLZ1
Parameters:
solution - the solution to be evaluated

newSolution

public Solution newSolution()
Description copied from interface: Problem
Returns a new solution for this problem. Implementations must initialize the variables so that the valid range of values is defined, but may leave the actual value at a default or undefined state.

Specified by:
newSolution in interface Problem
Overrides:
newSolution in class DTLZ
Returns:
a new solution for 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!