jmetal.encodings.solutionType
Class ArrayRealAndBinarySolutionType

java.lang.Object
  extended by jmetal.core.SolutionType
      extended by 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_.


Field Summary
 
Fields inherited from class jmetal.core.SolutionType
problem_
 
Constructor Summary
ArrayRealAndBinarySolutionType(Problem problem, int realVariables, int binaryStringLength)
          Constructor
 
Method Summary
 Variable[] createVariables()
          Creates the variables of the solution
 
Methods inherited from class jmetal.core.SolutionType
copyVariables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayRealAndBinarySolutionType

public ArrayRealAndBinarySolutionType(Problem problem,
                                      int realVariables,
                                      int binaryStringLength)
Constructor

Parameters:
problem - Problem being solved
realVariables - Number of real variables
binaryStringLength - Length of the binary string
Method Detail

createVariables

public Variable[] createVariables()
                           throws java.lang.ClassNotFoundException
Creates the variables of the solution

Specified by:
createVariables in class SolutionType
Throws:
java.lang.ClassNotFoundException