Interface Genotype

All Known Subinterfaces:
ListGenotype<E>
All Known Implementing Classes:
BooleanGenotype, BooleanMapGenotype, CompositeGenotype, DoubleGenotype, DoubleMapGenotype, IntegerGenotype, IntegerMapGenotype, PermutationGenotype, SelectGenotype, SelectMapGenotype

public interface Genotype
The Genotype represents a marker interface. A Genotype represents the genetic encoding of a solution of the optimization problem. Thus, a Genotype can be decoded to a Phenotype with an appropriate Decoder.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    <G extends Genotype>
    G
    Constructs a new (empty) instance of this Genotype.
    int
    The number of atomic elements of the Genotype.
  • Method Details

    • size

      int size()
      The number of atomic elements of the Genotype.
      Returns:
      number of atomic elements of the genotype
    • newInstance

      <G extends Genotype> G newInstance()
      Constructs a new (empty) instance of this Genotype.
      Type Parameters:
      G - the type of genotype for an implicit cast
      Returns:
      new instance of the genotype