Package org.moeaframework.problem.WFG
Class WFG
java.lang.Object
org.moeaframework.problem.AbstractProblem
org.moeaframework.problem.WFG.WFG
- All Implemented Interfaces:
AutoCloseable
,Problem
,AnalyticalProblem
Implements methods shared by all problems in the WFG test suite.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final int
The number of position-related variables defined by this problem.protected final int
The number of distance-related variables defined by this problem.protected final int
The number of objectives defined by this problem.Fields inherited from class org.moeaframework.problem.AbstractProblem
numberOfConstraints, numberOfObjectives, numberOfVariables
-
Constructor Summary
ConstructorDescriptionWFG
(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
Modifier and TypeMethodDescriptiongetName()
Returns the user-friendly name for this problem.Returns a new solution for this problem.Methods inherited from class org.moeaframework.problem.AbstractProblem
close, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables
Methods inherited from class java.lang.Object
clone, equals, finalize, 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, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, isType
-
Field Details
-
k
protected final int kThe number of position-related variables defined by this problem. -
l
protected final int lThe number of distance-related variables defined by this problem. -
M
protected final int MThe number of objectives defined by this problem.
-
-
Constructor Details
-
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 probleml
- the number of distance-related variables defined by this problemM
- the number of objectives defined by this problem
-
-
Method Details
-
getName
Description copied from interface:Problem
Returns the user-friendly name for this problem.- Specified by:
getName
in interfaceProblem
- Overrides:
getName
in classAbstractProblem
- Returns:
- the user-friendly name for this problem
-
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.- Specified by:
newSolution
in interfaceProblem
- Returns:
- a new solution for this problem
-