Package org.moeaframework.problem.CDTLZ
Class C1_DTLZ1
java.lang.Object
org.moeaframework.problem.AbstractProblem
org.moeaframework.problem.DTLZ.DTLZ
org.moeaframework.problem.DTLZ.DTLZ1
org.moeaframework.problem.CDTLZ.C1_DTLZ1
- All Implemented Interfaces:
AutoCloseable
,Problem
,AnalyticalProblem
The C1-DTLZ1 test problem.
-
Field Summary
Fields inherited from class org.moeaframework.problem.AbstractProblem
numberOfConstraints, numberOfObjectives, numberOfVariables
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Evaluates the solution, updating the solution's objectives in place.int
Returns the number of constraints defined by this problem.Returns a new solution for this problem.Methods inherited from class org.moeaframework.problem.DTLZ.DTLZ
g1, g2, generateAt, getName
Methods inherited from class org.moeaframework.problem.AbstractProblem
close, getNumberOfObjectives, getNumberOfVariables
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.moeaframework.core.Problem
close, getName, getNumberOfObjectives, getNumberOfVariables, isType
-
Constructor Details
-
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 problemnumberOfObjectives
- 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 callingnew DTLZ1(numberOfObjectives+4, numberOfObjectives)
.- Parameters:
numberOfObjectives
- the number of objectives for this problem
-
-
Method Details
-
getNumberOfConstraints
public int getNumberOfConstraints()Description copied from interface:Problem
Returns the number of constraints defined by this problem.- Specified by:
getNumberOfConstraints
in interfaceProblem
- Overrides:
getNumberOfConstraints
in classAbstractProblem
- Returns:
- the number of constraints defined by this problem
-
evaluate
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. -
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 typically leave the actual value at a default or undefined state.- Specified by:
newSolution
in interfaceProblem
- Overrides:
newSolution
in classDTLZ
- Returns:
- a new solution for this problem
-