Added pyeo. Some changes needed to be made for include files and the like

in some files (and some bugs were fixed as well [Marc: eoOneToOneBreeder was a mess])

eoFunctor.h now contains static functor_category members, this shouldn't hurt anyone.
This commit is contained in:
maartenkeijzer 2003-01-05 16:31:50 +00:00
commit 131e0e033d
40 changed files with 2300 additions and 18 deletions

View file

@ -56,8 +56,8 @@ bool minimizing_fitness()
likely not working with scalar fitness values. In that case we're sorry
but you cannot use lottery or roulette_wheel selection...
*/
eo1.fitness(0.0); // tried to cast it to an EOT::Fitness, but for some reason GNU barfs on this
eo2.fitness(1.0);
eo1.fitness( typename EOT::Fitness(0.0) ); // tried to cast it to an EOT::Fitness, but for some reason GNU barfs on this
eo2.fitness( typename EOT::Fitness(1.0) );
return eo2 < eo1; // check whether we have a minimizing fitness
};
@ -194,7 +194,7 @@ It deterministic_tournament(It _begin, It _end, unsigned _t_size, eoRng& _gen =
It competitor = _begin + _gen.random(_end - _begin);
if (*best < *competitor)
{
{
best = competitor;
}
}