ec.cgp
Class Breeder

java.lang.Object
  extended by ec.Breeder
      extended by ec.simple.SimpleBreeder
          extended by ec.cgp.Breeder
All Implemented Interfaces:
ec.Setup, ec.Singleton, java.io.Serializable

public class Breeder
extends ec.simple.SimpleBreeder

The CGP implementation requires this slightly modified SimpleBreeder. Its sole purpose is to reset string representations of the expressions represented by all genomes in the population. Resetting forces re-computation of each expression during evaluation of CGP nodes, but only for the first such evaluation.

Author:
David Oranchak, doranchak@gmail.com, http://oranchak.com
See Also:
Serialized Form

Field Summary
 
Fields inherited from class ec.simple.SimpleBreeder
elite, P_ELITE
 
Constructor Summary
Breeder()
           
 
Method Summary
 ec.Population breedPopulation(ec.EvolutionState state)
          Reset the expressions that were computed and stored in the previous generation.
 
Methods inherited from class ec.simple.SimpleBreeder
breedPopChunk, computeSubpopulationLength, loadElites, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Breeder

public Breeder()
Method Detail

breedPopulation

public ec.Population breedPopulation(ec.EvolutionState state)
Reset the expressions that were computed and stored in the previous generation.

Overrides:
breedPopulation in class ec.simple.SimpleBreeder