Package org.moeaframework.problem.LZ
Class LZ
java.lang.Object
org.moeaframework.problem.AbstractProblem
org.moeaframework.problem.LZ.LZ
- All Implemented Interfaces:
AutoCloseable
,Problem
Abstract class for implementing problems from the complicated Pareto sets test suite by Hui Li and Qingfu Zhang.
-
Field Summary
Fields inherited from class org.moeaframework.problem.AbstractProblem
numberOfConstraints, numberOfObjectives, numberOfVariables
-
Constructor Summary
ConstructorDescriptionLZ
(int numberOfVariables, int numberOfObjectives, int pType, int lType, int dType) Construcs an LZ problem instance with the specified number of variables, number of objectives,ptype
code,ltype
code, anddtype
code. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Evaluates the solution, updating the solution's objectives in place.int
getDType()
Returns thedtype
code specifying the type of non-negative function.int
getLType()
Returns theltype
code specifying the type of Pareto set.int
getPType()
Returns theptype
code specifying the type of Pareto front.Returns a new solution for this problem.Methods inherited from class org.moeaframework.problem.AbstractProblem
close, getName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables
-
Constructor Details
-
LZ
public LZ(int numberOfVariables, int numberOfObjectives, int pType, int lType, int dType) Construcs an LZ problem instance with the specified number of variables, number of objectives,ptype
code,ltype
code, anddtype
code.- Parameters:
numberOfVariables
- the number of variablesnumberOfObjectives
- the number of objectivespType
- theptype
code specifying the type of Pareto frontlType
- theltype
code specifying the type of Pareto setdType
- thedtype
code specifying the type of non-negative function
-
-
Method Details
-
getPType
public int getPType()Returns theptype
code specifying the type of Pareto front.- Returns:
- the
ptype
code specifying the type of Pareto front
-
getLType
public int getLType()Returns theltype
code specifying the type of Pareto set.- Returns:
- the
ltype
code specifying the type of Pareto set
-
getDType
public int getDType()Returns thedtype
code specifying the type of non-negative function.- Returns:
- the
dtype
code specifying the type of non-negative function
-
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.- Parameters:
solution
- the solution to be evaluated
-
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
-