Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SelectionPrms Class Reference

A container object that contains selection parameters for different selection methods. More...

#include <selection.h>

Inheritance diagram for SelectionPrms:

Selector List of all members.

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

Detailed Description

A container object that contains selection parameters for different selection methods.

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.


Member Function Documentation

void adaptParams bool    mu = true,
bool    etaPlus = true,
bool    q = true
 

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().

int muFor int    populsize const
 

Returns mu for specified population size (required since micro may have been given as a percentage).

Definition at line 171 of file selection.cc.

References mMu, and mMuPart.

Referenced by Selector::muLambdaSelection(), and EAStrategy::print().

void setEtaPlus double    etaplus
 

Sets the etaPlus parameter for proportional selection.

Definition at line 148 of file selection.cc.

References mEtaPlus.

Referenced by SimplePopulation::SimplePopulation().

void setMu int    m
 

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().

void setMuPart double    part
 

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.

References mMu, and mMuPart.

Referenced by SimplePopulation::SimplePopulation().

void setQ int    q
 

Sets the q parameter for tournament selection.

Definition at line 153 of file selection.cc.

References mQ.

Referenced by SimplePopulation::SimplePopulation().

void useOnlyMethod int    m
 

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.


Member Data Documentation

bool mAdaptiveEtaPlus [protected]
 

Mode flag: shall we use self-adaptive etaPlus parameter?

Definition at line 191 of file selection.h.

Referenced by adaptParams().

bool mAdaptiveMu [protected]
 

Mode flag: shall we use self-adaptive mu parameter?

Definition at line 185 of file selection.h.

Referenced by adaptParams(), and setMu().

bool mAdaptiveQ [protected]
 

Mode flag: shall we use self-adaptive q parameter?

Definition at line 197 of file selection.h.

Referenced by adaptParams().

bool mAdaptiveWeights [protected]
 

Mode flag: are the selection method weights or probabilities self-adaptive?

Definition at line 213 of file selection.h.

Referenced by useOnlyMethod().

double mEtaPlus [protected]
 

Selection parameter for proportional selection.

Definition at line 188 of file selection.h.

Referenced by Selector::linearRanking(), Selector::read(), and setEtaPlus().

int mMu [protected]
 

mu-parameter for (mu,+lambda)-Selection.

Definition at line 182 of file selection.h.

Referenced by adaptParams(), muFor(), setMu(), and setMuPart().

double mMuPart [protected]
 

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().

int mQ [protected]
 

Selection parameter for tournament selection.

Definition at line 194 of file selection.h.

Referenced by Selector::read(), setQ(), and Selector::tournamentSelection().

Vector mSelMethodW [protected]
 

Weights OR probabilities of different selection methods.

Definition at line 208 of file selection.h.

Referenced by Selector::read(), Selector::select(), and useOnlyMethod().

bool mWeightedSelection [protected]
 

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.


The documentation for this class was generated from the following files:
Generated on Thu Feb 10 20:12:01 2005 for NeHeP by doxygen1.2.18