Interface GASolution<S extends GASolution<S>>

All Known Implementing Classes:
PolygonChromosome

public interface GASolution<S extends GASolution<S>>
Interface for solutions used in genetic algorithms. GA solutions must support copying for elitism and best-tracking.
  • Method Summary

    Modifier and Type
    Method
    Description
    Create an independent copy of this solution.
    int
    Return the number of encoded elements in this solution.
  • Method Details

    • copy

      S copy()
      Create an independent copy of this solution.
      Returns:
      a deep copy whose runtime type matches this solution
    • length

      int length()
      Return the number of encoded elements in this solution.
      Returns:
      solution length