ec.spatial
Class SpatialBreeder
java.lang.Object
ec.Breeder
ec.spatial.SpatialBreeder
- All Implemented Interfaces:
- java.io.Serializable, Setup, Singleton
- 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.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpatialBreeder
public SpatialBreeder()
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)
throws java.lang.CloneNotSupportedException
- 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
- Throws:
java.lang.CloneNotSupportedException