Public Member Functions | Protected Attributes

RouletteWheel Class Reference

Generational algorithm with roulette wheel selection operator. More...

#include <AlgRouletteWheel.h>

Inheritance diagram for RouletteWheel:
Algorithm

List of all members.

Public Member Functions

bool advanceGeneration (StateP state, DemeP deme)
bool initialize (StateP state)
void registerParameters (StateP state)

Protected Attributes

double crxRate_
 crossover rate
double selPressure_
 selection pressure
SelFitnessProportionalOpP selFitPropOp
SelRandomOpP selRandomOp
SelBestOpP selBestOp

Detailed Description

Generational algorithm with roulette wheel selection operator.

Definition at line 9 of file AlgRouletteWheel.h.


Member Function Documentation

bool RouletteWheel::advanceGeneration ( StateP  ,
DemeP   
) [virtual]

Perform a single generation on a single deme.

Must be implemented by a specific algorithm class

Implements Algorithm.

Definition at line 41 of file AlgRouletteWheel.cpp.

bool RouletteWheel::initialize ( StateP   )  [virtual]

Initialize the algorithm, read parameters from the system, do a sanity check.

Called by the system before the algorithm starts (Algorithm::advanceGeneration)

Reimplemented from Algorithm.

Definition at line 23 of file AlgRouletteWheel.cpp.

void RouletteWheel::registerParameters ( StateP   )  [virtual]

Register algorithm's parameters (if any).

Called by the system before algorithm initialization (Algorithm::initialize)

Reimplemented from Algorithm.

Definition at line 16 of file AlgRouletteWheel.cpp.


The documentation for this class was generated from the following files: