Package org.moeaframework.problem.LZ
Class LZ
java.lang.Object
org.moeaframework.problem.AbstractProblem
org.moeaframework.problem.LZ.LZ
- All Implemented Interfaces:
AutoCloseable,Named,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
ConstructorsConstructorDescriptionLZ(int numberOfVariables, int numberOfObjectives, int pType, int lType, int dType) Construcs an LZ problem instance with the specified number of variables, number of objectives,ptypecode,ltypecode, anddtypecode. -
Method Summary
Modifier and TypeMethodDescriptionvoidEvaluates the solution, updating the solution's objectives in place.intgetDType()Returns thedtypecode specifying the type of non-negative function.intgetLType()Returns theltypecode specifying the type of Pareto set.intgetPType()Returns theptypecode specifying the type of Pareto front.Returns a new solution for this problem.Methods inherited from class org.moeaframework.problem.AbstractProblem
close, 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,ptypecode,ltypecode, anddtypecode.- Parameters:
numberOfVariables- the number of variablesnumberOfObjectives- the number of objectivespType- theptypecode specifying the type of Pareto frontlType- theltypecode specifying the type of Pareto setdType- thedtypecode specifying the type of non-negative function
-
-
Method Details
-
getPType
public int getPType()Returns theptypecode specifying the type of Pareto front.- Returns:
- the
ptypecode specifying the type of Pareto front
-
getLType
public int getLType()Returns theltypecode specifying the type of Pareto set.- Returns:
- the
ltypecode specifying the type of Pareto set
-
getDType
public int getDType()Returns thedtypecode specifying the type of non-negative function.- Returns:
- the
dtypecode specifying the type of non-negative function
-
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.- Parameters:
solution- the solution to be evaluated
-
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.- Returns:
- a new solution for this problem
-