MOEA Framework 2.1
API Specification

org.moeaframework.problem.WFG
Class WFG

java.lang.Object
  extended by org.moeaframework.problem.AbstractProblem
      extended by org.moeaframework.problem.WFG.WFG
All Implemented Interfaces:
Problem, AnalyticalProblem
Direct Known Subclasses:
WFG1, WFG2, WFG3, WFG4, WFG5, WFG6, WFG7, WFG8, WFG9

public abstract class WFG
extends AbstractProblem
implements AnalyticalProblem

Implements methods shared by all problems in the WFG test suite.


Field Summary
protected  int k
          The number of position-related variables defined by this problem.
protected  int l
          The number of distance-related variables defined by this problem.
protected  int M
          The number of objectives defined by this problem.
 
Fields inherited from class org.moeaframework.problem.AbstractProblem
numberOfConstraints, numberOfObjectives, numberOfVariables
 
Constructor Summary
WFG(int k, int l, int M)
          Constructs a WFG problem instance with the specified number of position-related and distance-related variables and the specified number of objectives.
 
Method Summary
 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.problem.AnalyticalProblem
generate
 
Methods inherited from interface org.moeaframework.core.Problem
close, evaluate, getName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables
 

Field Detail

k

protected final int k
The number of position-related variables defined by this problem.


l

protected final int l
The number of distance-related variables defined by this problem.


M

protected final int M
The number of objectives defined by this problem.

Constructor Detail

WFG

public WFG(int k,
           int l,
           int M)
Constructs a WFG problem instance with the specified number of position-related and distance-related variables and the specified number of objectives.

Parameters:
k - the number of position-related variables defined by this problem
l - the number of distance-related variables defined by this problem
M - the number of objectives defined by this problem
Method Detail

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.

Specified by:
newSolution in interface Problem
Returns:
a new solution for this problem

MOEA Framework 2.1
API Specification

Copyright 2009-2014 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Hosted by Get MOEA Framework at SourceForge.net. Fast, secure and Free Open Source software downloads