Package org.moeaframework.problem.ZDT
Class ZDT
java.lang.Object
org.moeaframework.problem.AbstractProblem
org.moeaframework.problem.ZDT.ZDT
- All Implemented Interfaces:
AutoCloseable
,Problem
Implements methods shared by all problems in the ZDT test suite.
-
Field Summary
Fields inherited from class org.moeaframework.problem.AbstractProblem
numberOfConstraints, numberOfObjectives, numberOfVariables
-
Constructor Summary
ConstructorDescriptionZDT
(int numberOfVariables) Constructs a ZDT problem instance with the specified number of variables. -
Method Summary
Modifier and TypeMethodDescriptionReturns a new solution for this problem.Methods inherited from class org.moeaframework.problem.AbstractProblem
close, getName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables
-
Constructor Details
-
ZDT
public ZDT(int numberOfVariables) Constructs a ZDT problem instance with the specified number of variables.- Parameters:
numberOfVariables
- the number of decision variables
-
-
Method Details
-
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.- Returns:
- a new solution for this problem
-