public class GETruncationPipeline extends BreedingPipeline
GETruncationPipeline removes the unused genes from the end of the vector. The number of used chromosomes are tracked by GESpecies' comsumed(...) function. Note: truncaton only occurs if the number of comsumed genes is greater than 1.
Default Base
ge.truncation
| Modifier and Type | Field and Description |
|---|---|
static int |
NUM_SOURCES |
static String |
P_TRUNCATION |
DYNAMIC_SOURCES, likelihood, mybase, P_LIKELIHOOD, P_NUMSOURCES, P_SOURCE, sources, V_SAMENO_PROBABILITY, P_PROB, probability| Constructor and Description |
|---|
GETruncationPipeline() |
| Modifier and Type | Method and Description |
|---|---|
Parameter |
defaultBase()
Returns the default base for this prototype.
|
int |
numSources()
Returns the number of sources to this pipeline.
|
int |
produce(int min,
int max,
int start,
int subpopulation,
Individual[] inds,
EvolutionState state,
int thread)
Produces n individuals from the given subpopulation
and puts them into inds[start...start+n-1],
where n = Min(Max(q,min),max), where q is the "typical" number of
individuals the BreedingSource produces in one shot, and returns
n.
|
clone, finishProducing, individualReplaced, maxChildProduction, minChildProduction, preparePipeline, prepareToProduce, produces, reproduce, setup, sourcesAreProperForm, typicalIndsProducedgetProbability, pickRandom, setProbability, setupProbabilitiespublic static final String P_TRUNCATION
public static final int NUM_SOURCES
public int numSources()
BreedingPipelinenumSources in class BreedingPipelinepublic Parameter defaultBase()
Prototypepublic int produce(int min,
int max,
int start,
int subpopulation,
Individual[] inds,
EvolutionState state,
int thread)
BreedingSourceproduce in class BreedingSourceCopyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.