ec.spatial
Class SpatialBreeder

java.lang.Object
  extended by ec.Breeder
      extended by ec.spatial.SpatialBreeder
All Implemented Interfaces:
Setup, Singleton, java.io.Serializable

public class SpatialBreeder
extends Breeder

A slight modification of the simple breeder for spatially-embedded EAs. Breeds each subpopulation separately, with no inter-population exchange, and using a generational approach. A SpatialBreeder may have multiple threads; it divvys up a subpopulation into chunks and hands one chunk to each thread to populate. One array of BreedingPipelines is obtained from a population's Species for each operating breeding thread.

Version:
1.0
Author:
Liviu Panait
See Also:
Serialized Form

Constructor Summary
SpatialBreeder()
           
 
Method Summary
 Population breedPopulation(EvolutionState state)
          Breeds state.population, returning a new population.
 void setup(EvolutionState state, Parameter base)
          Sets up the object by reading it from the parameters stored in state, built off of the parameter base base.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpatialBreeder

public SpatialBreeder()
Method Detail

setup

public void setup(EvolutionState state,
                  Parameter base)
Description copied from interface: Setup
Sets up the object by reading it from the parameters stored in state, built off of the parameter base base. If an ancestor implements this method, be sure to call super.setup(state,base); before you do anything else.


breedPopulation

public Population breedPopulation(EvolutionState state)
Description copied from class: Breeder
Breeds state.population, returning a new population. In general, state.population should not be modified.

Specified by:
breedPopulation in class Breeder