7 Select(LocalSelect), Population(LocalPopulation), Random(LocalRandom)
14 Select(Old.Select), Population(Old.Population), Random(Old.Random)
32 copy(mother.begin() + crosspoint, mother.end(), father.begin()
34 copy(tempstore.begin() + crosspoint, tempstore.end(),
35 mother.begin() + crosspoint);
41 for (
unsigned int i = 0; i < child.size(); ++i)
45 child(i) = !(child(i));
The base class for the population of a genetic algorithm, implements storage and access functions...
GeneralPropagation(GeneralSelect *const LocalSelect, GeneralPopulation *const LocalPopulation, GeneralRNG *const LocalRandom)
GeneralSelect is the abstract base class for any selection mechanism in genetic algorithms.
virtual ~GeneralPropagation()
The base class for genetic algorithm propagation methods.
virtual void Mutation(tpopmember &child)
ublas::vector< bool > tpopmember
virtual float GetNumber()=0
virtual void Crossover(tpopmember &father, tpopmember &mother)
The base class for all random number generators, defines the basic interface.