1 #ifndef CSIMPLESELECT_H 
    2 #define CSIMPLESELECT_H 
    6 #include <boost/function.hpp> 
   29       virtual void DoInit();
 
   30       virtual size_t DoGetOne();
 
   42 #endif // CSIMPLESELECT_H 
boost::function< const tprobabilityv &()> tProbabilityFunction
 
SimpleSelect(GeneralRNG &LocalRandom, tProbabilityFunction myPF)
The constructor needs a random number generator and a function that returns probabilities. 
 
GeneralSelect is the abstract base class for any selection mechanism in genetic algorithms. 
 
std::vector< int > tindexv
 
The base class for all random number generators, defines the basic interface. 
 
This is a relatively simple selection scheme for the genetic algorithms.