public class SPEA2Breeder extends 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 and Description |
---|
SPEA2Breeder() |
Modifier and Type | Method and Description |
---|---|
void |
buildArchive(EvolutionState state,
Individual[] oldInds,
Individual[] newInds,
int archiveSize) |
double[] |
calculateDistancesFromIndividual(Individual ind,
Individual[] inds) |
protected void |
loadElites(EvolutionState state,
Population newpop)
A private helper function for breedPopulation which loads elites into
a subpopulation.
|
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.
|
breedPopChunk, breedPopulation, computeSubpopulationLength, numElites, shouldBreedSubpop, unmarkElitesEvaluated, usingElitism
public void setup(EvolutionState state, Parameter base)
Setup
setup
in interface Setup
setup
in class SimpleBreeder
protected void loadElites(EvolutionState state, Population newpop)
SimpleBreeder
loadElites
in class SimpleBreeder
public double[] calculateDistancesFromIndividual(Individual ind, Individual[] inds)
public void buildArchive(EvolutionState state, Individual[] oldInds, Individual[] newInds, int archiveSize)