
MOEA Framework 2.12 API Specification 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object org.moeaframework.problem.AbstractProblem org.moeaframework.problem.misc.Schaffer2
public class Schaffer2
The Schaffer (2) problem. The Schaffer (2) problem is univariate, with the
optimum defined by 1 <= x <= 2
and 4 <= x <= 5
.
Properties:
References:
Field Summary 

Fields inherited from class org.moeaframework.problem.AbstractProblem 

numberOfConstraints, numberOfObjectives, numberOfVariables 
Constructor Summary  

Schaffer2()
Constructs the Schaffer (2) problem. 
Method Summary  

void 
evaluate(Solution solution)
Evaluates the solution, updating the solution's objectives in place. 
Solution 
generate()
Returns a randomlygenerated solution using the analytical solution to this problem. 
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 
Methods inherited from interface org.moeaframework.core.Problem 

close, getName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables 
Constructor Detail 

public Schaffer2()
Method Detail 

public void evaluate(Solution solution)
Problem
evaluate
in interface Problem
solution
 the solution to be evaluatedpublic Solution newSolution()
Problem
newSolution
in interface Problem
public Solution generate()
AnalyticalProblem
NondominatedPopulation
to removed dominated solutions prior to
using the generated reference set.
The generated solutions should be spread uniformly across the entire Pareto frontier; however, this is a suggestion and is not a requirement of this interface.
generate
in interface AnalyticalProblem

MOEA Framework 2.12 API Specification 

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 