Package Bio :: Package GA :: Module Evolver :: Class GenerationEvolver
[show private | hide private]
[frames | no frames]

Class GenerationEvolver


Evolve a population from generation to generation.

This implements a Generational GA, in which the population moves from generation to generation.
Method Summary
  __init__(self, starting_population, selector)
Initialize the evolver.
  evolve(self, stopping_criteria)
Evolve the population through multiple generations.

Method Details

__init__(self, starting_population, selector)
(Constructor)

Initialize the evolver.

Arguments:

o starting_population -- An initial set of individuals to begin the evolution process from. This should be a list of Organism objects.

o selector -- A Selection object that implements selection, along with mutation and crossover to select a new population from a given population.

evolve(self, stopping_criteria)

Evolve the population through multiple generations.

Arguments:

o stoppping_criteria -- A function which, when passed the current individuals in the population, will determine when to stop the evolution process.

Returns:

o The final evolved population.

Generated by Epydoc 2.1 on Mon Aug 27 16:12:12 2007 http://epydoc.sf.net