ECF 1.5
AlgCuckooSearch.h
1#ifndef CuckooSearch_h
2#define CuckooSearch_h
3#include "Algorithm.h"
4
22class CuckooSearch : public Algorithm
23{
24public:
26 bool advanceGeneration(StateP state, DemeP deme);
27 bool initialize(StateP state);
28 void registerParameters(StateP state);
29protected:
30 double pa;
31 double ubound;
32 double lbound;
33 uint numDimension;
34 SelectionOperatorP selBestOp;
35};
36
37typedef boost::shared_ptr<CuckooSearch> CuckooSearchP;
38
39#endif
Algorithm base class.
Definition: Algorithm.h:20
Cuckoo search (CS) optimization algorithm (see http://en.wikipedia.org/wiki/Cuckoo_search)
double pa
percentage of solutions which will be replaced (similar to mutation probability)
void registerParameters(StateP state)
Register algorithm's parameters (if any).
bool initialize(StateP state)
Initialize the algorithm, read parameters from the system, do a sanity check.
bool advanceGeneration(StateP state, DemeP deme)
Perform a single generation on a single deme.