jmetal.encodings.solutionType
Class ArrayRealAndBinarySolutionType
java.lang.Object
jmetal.core.SolutionType
jmetal.encodings.solutionType.ArrayRealAndBinarySolutionType
public class ArrayRealAndBinarySolutionType
- extends SolutionType
Class representing the solution type of solutions composed of array of reals
and a binary string.
ASSUMPTIONs:
- The numberOfVariables_ field in class Problem must contain the number
of real variables. This field is used to apply real operators (e.g.,
mutation probability)
- The upperLimit_ and lowerLimit_ arrays must have the length indicated
by numberOfVariables_.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ArrayRealAndBinarySolutionType
public ArrayRealAndBinarySolutionType(Problem problem,
int realVariables,
int binaryStringLength)
- Constructor
- Parameters:
problem
- Problem being solvedrealVariables
- Number of real variablesbinaryStringLength
- Length of the binary string
createVariables
public Variable[] createVariables()
throws java.lang.ClassNotFoundException
- Creates the variables of the solution
- Specified by:
createVariables
in class SolutionType
- Throws:
java.lang.ClassNotFoundException