public abstract class WFG extends AbstractDoubleProblem
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
a |
protected int |
d |
protected int |
k |
protected int |
l |
protected int |
m |
protected Random |
random |
protected int[] |
s |
| Constructor and Description |
|---|
WFG(Integer k,
Integer l,
Integer M)
Constructor
Creates a wfg problem
|
| Modifier and Type | Method and Description |
|---|---|
float[] |
calculateX(float[] t)
Gets the x vector
|
float |
correctTo01(float a) |
DoubleSolution |
createSolution() |
abstract float[] |
evaluate(float[] variables)
Evaluates a solution
|
float[] |
normalise(float[] z)
Normalizes a vector (consulte wfg toolkit reference)
|
float[] |
subVector(float[] z,
int head,
int tail)
Gets a subvector of a given vector
(Head inclusive and tail inclusive)
|
getLowerBound, getUpperBound, setLowerLimit, setUpperLimitgetName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, setName, setNumberOfConstraints, setNumberOfObjectives, setNumberOfVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluate, getName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariablesprotected int k
protected int m
protected int l
protected int[] a
protected int[] s
protected int d
protected Random random
public DoubleSolution createSolution()
createSolution in interface Problem<DoubleSolution>createSolution in class AbstractDoubleProblempublic float[] calculateX(float[] t)
public float[] normalise(float[] z)
public float correctTo01(float a)
public float[] subVector(float[] z,
int head,
int tail)
z - the vectorpublic abstract float[] evaluate(float[] variables)
variables - The solution to evaluateCopyright © 2018. All rights reserved.