Class SimpleGeneticAlgorithm

  • All Implemented Interfaces:
    Changeable, GeneticAlgorithm

    public final class SimpleGeneticAlgorithm
    extends AbstractGeneticAlgorithm
    A simple implementation of the GeneticAlgorithm interface it is not intended that this class be overidden, hence it is final. It is much better to overide AbstractGeneticAlgorithm.
    Since:
    1.5
    Version:
    1.1
    Author:
    Mark Schreiber, Susanne Merz, Andreas Dräger
    • Method Detail

      • getGeneration

        public int getGeneration()
        The current generation
        Returns:
        an int giving the generation number
      • getCrossResults

        public java.util.List getCrossResults()
        Get a List containing details of all the cross over events during the run. If run(GAStoppingCriteria stoppingCriteria) has not yet been called the list will be empty. This implementation only stores a buffer of the last 100 crosses for memory reasons.
        Returns:
        a List of GACrossResult objects.