public class OurSelection extends SelectionMethod
| Modifier and Type | Field and Description |
|---|---|
double |
middleProbability |
static String |
P_MIDDLEPROBABILITY |
static String |
P_OURSELECTION |
INDS_PRODUCEDNO_PROBABILITY, P_PROB, probability| Constructor and Description |
|---|
OurSelection() |
| Modifier and Type | Method and Description |
|---|---|
Parameter |
defaultBase()
Returns the default base for this prototype.
|
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.
|
void |
setup(EvolutionState state,
Parameter base)
Sets up the BreedingPipeline.
|
finishProducing, prepareToProduce, produce, produces, typicalIndsProducedclone, getProbability, pickRandom, preparePipeline, setProbability, setupProbabilitiespublic static final String P_OURSELECTION
public static final String P_MIDDLEPROBABILITY
public double middleProbability
public Parameter defaultBase()
Prototypepublic 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 int produce(int subpopulation,
EvolutionState state,
int thread)
SelectionMethodproduce in class SelectionMethodCopyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.