public class FitProportionateSelection extends SelectionMethod
Note: Fitnesses must be non-negative. 0 is assumed to be the worst fitness.
Typical Number of Individuals Produced Per produce(...) call
Always 1.
Default Base
select.fitness-proportionate
| Modifier and Type | Field and Description |
|---|---|
double[] |
fitnesses
Normalized, totalized fitnesses for the population
|
static String |
P_FITNESSPROPORTIONATE
Default base
|
INDS_PRODUCEDNO_PROBABILITY, P_PROB, probability| Constructor and Description |
|---|
FitProportionateSelection() |
| Modifier and Type | Method and Description |
|---|---|
Parameter |
defaultBase()
Returns the default base for this prototype.
|
void |
finishProducing(EvolutionState s,
int subpopulation,
int thread)
A default version of finishProducing, which does nothing.
|
void |
prepareToProduce(EvolutionState s,
int subpopulation,
int thread)
A default version of prepareToProduce which does nothing.
|
int |
produce(int subpopulation,
EvolutionState state,
int thread)
An alternative form of "produce" special to Selection Methods;
selects an individual from the given subpopulation and
returns its position in that subpopulation.
|
produce, produces, typicalIndsProducedclone, getProbability, pickRandom, preparePipeline, setProbability, setup, setupProbabilitiespublic static final String P_FITNESSPROPORTIONATE
public double[] fitnesses
public Parameter defaultBase()
Prototypepublic void prepareToProduce(EvolutionState s, int subpopulation, int thread)
SelectionMethodprepareToProduce in class SelectionMethodpublic int produce(int subpopulation,
EvolutionState state,
int thread)
SelectionMethodproduce in class SelectionMethodpublic void finishProducing(EvolutionState s, int subpopulation, int thread)
SelectionMethodfinishProducing in class SelectionMethodCopyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.