public class ZDT5 extends AbstractBinaryProblem
| Constructor and Description |
|---|
ZDT5()
Creates a default instance of problem ZDT5 (11 decision variables)
|
ZDT5(Integer numberOfVariables)
Creates a instance of problem ZDT5
|
| Modifier and Type | Method and Description |
|---|---|
double |
evalG(BinarySolution solution)
Returns the value of the ZDT5 function G.
|
double |
evalH(double f,
double g)
Returns the value of the ZDT5 function H.
|
void |
evaluate(BinarySolution solution)
Evaluate() method
|
double |
evalV(double value)
Returns the value of the ZDT5 function V.
|
protected int |
getBitsPerVariable(int index) |
createSolution, getNumberOfBits, getTotalNumberOfBitsgetName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariables, setName, setNumberOfConstraints, setNumberOfObjectives, setNumberOfVariablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getNumberOfConstraints, getNumberOfObjectives, getNumberOfVariablespublic ZDT5()
public ZDT5(Integer numberOfVariables)
numberOfVariables - Number of variables.protected int getBitsPerVariable(int index)
getBitsPerVariable in class AbstractBinaryProblempublic void evaluate(BinarySolution solution)
public double evalG(BinarySolution solution)
solution - The solution.public double evalV(double value)
value - The parameter of V function.public double evalH(double f,
double g)
f - First argument of the function H.g - Second argument of the function H.Copyright © 2018. All rights reserved.