Package ec.simple

Class SimpleEvolutionState

java.lang.Object
ec.EvolutionState
ec.simple.SimpleEvolutionState
All Implemented Interfaces:
Setup, Singleton, Serializable

public class SimpleEvolutionState extends EvolutionState
A SimpleEvolutionState is an EvolutionState which implements a simple form of generational evolution.

First, all the individuals in the population are created. (A)Then all individuals in the population are evaluated. Then the population is replaced in its entirety with a new population of individuals bred from the old population. Goto (A).

Evolution stops when an ideal individual is found (if quitOnRunComplete is set to true), or when the number of generations (loops of (A)) exceeds the parameter value numGenerations. Each generation the system will perform garbage collection and checkpointing, if the appropriate parameters were set.

This approach can be readily used for most applications of Genetic Algorithms and Genetic Programming.

See Also:
  • Constructor Details

    • SimpleEvolutionState

      public SimpleEvolutionState()
  • Method Details