public class SigmaScalingSelection extends FitProportionateSelection
Like FitProportionateSelection this is not appropriate for steady-state evolution. If you're not familiar with the relative advantages of selection methods and just want a good one, use TournamentSelection instead. Not appropriate for multiobjective fitnesses.
Note: Fitnesses must be non-negative. 0 is assumed to be the worst fitness.
Typical Number of Individuals Produced Per produce(...) call
Always 1.
Parameters
| base.scaled-fitness-floor double = some small number (defaults to 0.1) |
(The sigma scaling formula sometimes returns negative values. This is unacceptable for fitness proportionate style selection so we must substitute the fitnessFloor (some value >= 0) for the sigma scaled fitness when that sigma scaled fitness <= fitnessFloor.) |
Default Base
select.sigma-scaling
| Modifier and Type | Field and Description |
|---|---|
(package private) double |
fitnessFloor
Floor for sigma scaled fitnesses
|
static String |
P_SCALED_FITNESS_FLOOR
Scaled fitness floor
|
static String |
P_SIGMA_SCALING
Default base
|
fitnesses, P_FITNESSPROPORTIONATEINDS_PRODUCEDNO_PROBABILITY, P_PROB, probability| Constructor and Description |
|---|
SigmaScalingSelection() |
| Modifier and Type | Method and Description |
|---|---|
Parameter |
defaultBase()
Returns the default base for this prototype.
|
void |
prepareToProduce(EvolutionState s,
int subpopulation,
int thread)
A default version of prepareToProduce which does nothing.
|
void |
setup(EvolutionState state,
Parameter base)
Sets up the BreedingPipeline.
|
private double |
sigmaScaledValue(double fitness,
double meanFitness,
double sigma,
EvolutionState s) |
finishProducing, produceproduce, produces, typicalIndsProducedclone, getProbability, pickRandom, preparePipeline, setProbability, setupProbabilitiespublic static final String P_SIGMA_SCALING
public static final String P_SCALED_FITNESS_FLOOR
double fitnessFloor
public Parameter defaultBase()
PrototypedefaultBase in interface PrototypedefaultBase in class FitProportionateSelectionpublic void setup(EvolutionState state, Parameter base)
BreedingSourceThe most common modification is to normalize it with some other set of probabilities, then set all of them up in increasing summation; this allows the use of the fast static BreedingSource-picking utility method, BreedingSource.pickRandom(...). In order to use this method, for example, if four breeding source probabilities are {0.3, 0.2, 0.1, 0.4}, then they should get normalized and summed by the outside owners as: {0.3, 0.5, 0.6, 1.0}.
setup in interface Prototypesetup in interface Setupsetup in class BreedingSourcePrototype.setup(EvolutionState,Parameter)public void prepareToProduce(EvolutionState s, int subpopulation, int thread)
SelectionMethodprepareToProduce in class FitProportionateSelectionprivate double sigmaScaledValue(double fitness,
double meanFitness,
double sigma,
EvolutionState s)
Copyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.