#include <selection.h>
Inheritance diagram for SelectionPrms:
Public Methods | |
void | useOnlyMethod (int m) |
void | adaptParams (bool mu=true, bool etaPlus=true, bool q=true) |
void | setMu (int m) |
void | setMuPart (double part) |
void | setEtaPlus (double etaplus) |
void | setQ (int q) |
int | muFor (int populsize) const |
Protected Attributes | |
double | mMuPart |
int | mMu |
bool | mAdaptiveMu |
double | mEtaPlus |
bool | mAdaptiveEtaPlus |
int | mQ |
bool | mAdaptiveQ |
bool | mWeightedSelection |
Vector | mSelMethodW |
bool | mAdaptiveWeights |
There is typically exactly one of these objects per population, owned by Population as global selection parameters.
Definition at line 133 of file selection.h.
|
Set the self-adaptation of different selection method parameters.
Definition at line 128 of file selection.cc. References mAdaptiveEtaPlus, mAdaptiveMu, mAdaptiveQ, and mMu. Referenced by SimplePopulation::SimplePopulation(). |
|
Returns mu for specified population size (required since micro may have been given as a percentage).
Definition at line 171 of file selection.cc. Referenced by Selector::muLambdaSelection(), and EAStrategy::print(). |
|
Sets the etaPlus parameter for proportional selection.
Definition at line 148 of file selection.cc. References mEtaPlus. Referenced by SimplePopulation::SimplePopulation(). |
|
Sets the mu-parameter for (mu,+lambda)-Selection.
Definition at line 158 of file selection.cc. References mAdaptiveMu, mMu, and mMuPart. Referenced by SimplePopulation::SimplePopulation(). |
|
Sets the mu-parameter for (mu,+lambda)-Selection as a partial value [0,1] of the population size.
Definition at line 165 of file selection.cc. Referenced by SimplePopulation::SimplePopulation(). |
|
Sets the q parameter for tournament selection.
Definition at line 153 of file selection.cc. References mQ. Referenced by SimplePopulation::SimplePopulation(). |
|
Sets the selection propability of one selection method to 1.0 and others to 0.0.
Definition at line 137 of file selection.cc. References mAdaptiveWeights, and mSelMethodW. |
|
Mode flag: shall we use self-adaptive etaPlus parameter?
Definition at line 191 of file selection.h. Referenced by adaptParams(). |
|
Mode flag: shall we use self-adaptive mu parameter?
Definition at line 185 of file selection.h. Referenced by adaptParams(), and setMu(). |
|
Mode flag: shall we use self-adaptive q parameter?
Definition at line 197 of file selection.h. Referenced by adaptParams(). |
|
Mode flag: are the selection method weights or probabilities self-adaptive?
Definition at line 213 of file selection.h. Referenced by useOnlyMethod(). |
|
Selection parameter for proportional selection.
Definition at line 188 of file selection.h. Referenced by Selector::linearRanking(), Selector::read(), and setEtaPlus(). |
|
mu-parameter for (mu,+lambda)-Selection.
Definition at line 182 of file selection.h. Referenced by adaptParams(), muFor(), setMu(), and setMuPart(). |
|
mu-parameter for (mu,+lambda)-Selection as a portion of the population size. Domain is (0,1). Definition at line 179 of file selection.h. Referenced by muFor(), Selector::read(), setMu(), and setMuPart(). |
|
Selection parameter for tournament selection.
Definition at line 194 of file selection.h. Referenced by Selector::read(), setQ(), and Selector::tournamentSelection(). |
|
Weights OR probabilities of different selection methods.
Definition at line 208 of file selection.h. Referenced by Selector::read(), Selector::select(), and useOnlyMethod(). |
|
Mode flag: Should we weigh between different selection schemes (true) or should we select one method with the propability given by it's weight (false). Default=false (it's faster). Definition at line 204 of file selection.h. |