Random search algorithmThe algorithm flow: More...
#include <AlgRandomSearch.h>
Public Member Functions | |
bool | advanceGeneration (StateP state, DemeP deme) |
Perform a single generation on a single deme. | |
bool | initialize (StateP state) |
Initialize the algorithm, read parameters from the system, do a sanity check. | |
void | registerParameters (StateP state) |
Register algorithm's parameters (if any). |
Random search algorithm
The algorithm flow:
single generation { reinitialize all individuals; evaluate all individuals; }
Definition at line 19 of file AlgRandomSearch.h.
bool RandomSearch::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 23 of file AlgRandomSearch.cpp.
bool RandomSearch::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 17 of file AlgRandomSearch.cpp.
void RandomSearch::registerParameters | ( | StateP | ) | [virtual] |
Register algorithm's parameters (if any).
Called by the system before algorithm initialization (Algorithm::initialize)
Reimplemented from Algorithm.
Definition at line 12 of file AlgRandomSearch.cpp.