ec.spatial
Class SpatialBreeder
- java.lang.Object
-
- ec.Breeder
-
- ec.simple.SimpleBreeder
-
- ec.spatial.SpatialBreeder
-
public class SpatialBreeder extends SimpleBreeder
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
-
-
Field Summary
-
Fields inherited from class ec.simple.SimpleBreeder
backupPopulation, clonePipelineAndPopulation, elite, eliteFrac, NOT_SET, P_CLONE_PIPELINE_AND_POPULATION, P_ELITE, P_ELITE_FRAC, P_REEVALUATE_ELITES, P_SEQUENTIAL_BREEDING, pool, reevaluateElites, sequentialBreeding
-
-
Constructor Summary
Constructors Constructor and Description SpatialBreeder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidsetup(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 ec.simple.SimpleBreeder
breedPopulation, computeSubpopulationLength, numElites, shouldBreedSubpop, usingElitism
-
-
-
-
Method Detail
-
setup
public void setup(EvolutionState state, Parameter base)
Description copied from interface:SetupSets 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.- Specified by:
setupin interfaceSetup- Overrides:
setupin classSimpleBreeder
-
-
DMelt 3.0 © DataMelt by jWork.ORG