Package org.moeaframework.problem.CDTLZ
Class ConvexC2_DTLZ2
java.lang.Object
org.moeaframework.problem.AbstractProblem
org.moeaframework.problem.DTLZ.DTLZ
org.moeaframework.problem.DTLZ.DTLZ2
org.moeaframework.problem.CDTLZ.ConvexDTLZ2
org.moeaframework.problem.CDTLZ.ConvexC2_DTLZ2
- All Implemented Interfaces:
AutoCloseable,Named,AnalyticalProblem,Problem
The convex C2-DTLZ2 problem.
-
Field Summary
Fields inherited from class org.moeaframework.problem.AbstractProblem
numberOfConstraints, numberOfObjectives, numberOfVariables -
Constructor Summary
ConstructorsConstructorDescriptionConvexC2_DTLZ2(int numberOfObjectives) Constructs a convex C2-DTLZ2 test problem with the specified number of objectives.ConvexC2_DTLZ2(int numberOfVariables, int numberOfObjectives) Constructs a convex C2-DTLZ2 test problem with the specified number of variables and objectives. -
Method Summary
Modifier and TypeMethodDescriptionvoidEvaluates the solution, updating the solution's objectives in place.intReturns the number of constraints defined by this problem.Returns a new solution for this problem.Methods inherited from class org.moeaframework.problem.CDTLZ.ConvexDTLZ2
generateMethods inherited from class org.moeaframework.problem.DTLZ.DTLZ
g1, g2, generateAt, getNameMethods inherited from class org.moeaframework.problem.AbstractProblem
close, getNumberOfObjectives, getNumberOfVariablesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.moeaframework.problem.Problem
close, getName, getNumberOfObjectives, getNumberOfVariables, isType
-
Constructor Details
-
ConvexC2_DTLZ2
public ConvexC2_DTLZ2(int numberOfVariables, int numberOfObjectives) Constructs a convex C2-DTLZ2 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
-
ConvexC2_DTLZ2
public ConvexC2_DTLZ2(int numberOfObjectives) Constructs a convex C2-DTLZ2 test problem with the specified number of objectives. This is equivalent to callingnew DTLZ2(numberOfObjectives+9, numberOfObjectives).- Parameters:
numberOfObjectives- the number of objectives for this problem
-
-
Method Details
-
getNumberOfConstraints
public int getNumberOfConstraints()Description copied from interface:ProblemReturns the number of constraints defined by this problem.- Specified by:
getNumberOfConstraintsin interfaceProblem- Overrides:
getNumberOfConstraintsin classAbstractProblem- Returns:
- the number of constraints defined by this problem
-
newSolution
Description copied from interface:ProblemReturns 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:
newSolutionin interfaceProblem- Overrides:
newSolutionin classDTLZ- Returns:
- a new solution for this problem
-
evaluate
Description copied from interface:ProblemEvaluates 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:
evaluatein interfaceProblem- Overrides:
evaluatein classConvexDTLZ2- Parameters:
solution- the solution to be evaluated
-