public abstract class BinaryChromosome extends AbstractListChromosome<Integer>
| Constructor and Description |
|---|
BinaryChromosome(Integer[] representation)
Constructor.
|
BinaryChromosome(List<Integer> representation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static List<Integer> |
randomBinaryRepresentation(int length)
Returns a representation of a random binary array of length
length. |
getLength, newFixedLengthChromosome, toStringcompareTo, getFitness, searchForFitnessUpdatepublic BinaryChromosome(List<Integer> representation)
representation - list of {0,1} values representing the chromosomeInvalidRepresentationException - iff the representation can not represent
a valid chromosomepublic BinaryChromosome(Integer[] representation)
representation - array of {0,1} values representing the chromosomeInvalidRepresentationException - iff the representation can not represent
a valid chromosomejHepWork 3.5 ©