21 for (
size_t i = 0; i < popsize; ++i)
22 for (
size_t j = 0; j < genesize; ++j)
32 Random = source.Random;
The base class for the population of a genetic algorithm, implements storage and access functions...
tpopulation Population
The population of the current iteration.
A population that is encoded as a simple binary string.
virtual BinaryPopulation & operator=(const BinaryPopulation &source)
BinaryPopulation(const int popsize, const int genesize, GeneralRNG &LocalRandom, const bool init=false)
void init(int *nd, float *ranges)
virtual ~BinaryPopulation()
virtual float GetNumber()=0
virtual GeneralPopulation & operator=(const GeneralPopulation &source)
The base class for all random number generators, defines the basic interface.