MOEA Framework 2.12
API Specification

org.moeaframework.problem.LZ
Class LZ

java.lang.Object
  extended by org.moeaframework.problem.AbstractProblem
      extended by org.moeaframework.problem.LZ.LZ
All Implemented Interfaces:
Problem
Direct Known Subclasses:
LZ1, LZ2, LZ3, LZ4, LZ5, LZ6, LZ7, LZ8, LZ9

public abstract class LZ
extends AbstractProblem

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
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, and dtype code.
 
Method Summary
 void evaluate(Solution solution)
          Evaluates the solution, updating the solution's objectives in place.
 int getDType()
          Returns the dtype code specifying the type of non-negative function.
 int getLType()
          Returns the ltype code specifying the type of Pareto set.
 int getPType()
          Returns the ptype code specifying the type of Pareto front.
 Solution newSolution()
          Returns a new solution for this problem.
 
Methods inherited from class org.moeaframework.problem.AbstractProblem
close, finalize, getName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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, and dtype code.

Parameters:
numberOfVariables - the number of variables
numberOfObjectives - the number of objectives
pType - the ptype code specifying the type of Pareto front
lType - the ltype code specifying the type of Pareto set
dType - the dtype code specifying the type of non-negative function
Method Detail

getPType

public int getPType()
Returns the ptype code specifying the type of Pareto front.

Returns:
the ptype code specifying the type of Pareto front

getLType

public int getLType()
Returns the ltype code specifying the type of Pareto set.

Returns:
the ltype code specifying the type of Pareto set

getDType

public int getDType()
Returns the dtype code specifying the type of non-negative function.

Returns:
the dtype code specifying the type of non-negative function

evaluate

public void evaluate(Solution solution)
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

public Solution 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 may leave the actual value at a default or undefined state.

Returns:
a new solution for this problem

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!