* eoEasyEA: pop reserve at each call to algo

This commit is contained in:
Caner Candan 2011-03-30 15:50:19 +02:00
commit d8bbe055ca

View file

@ -210,6 +210,8 @@ template<class EOT> class eoEasyEA: public eoAlgo<EOT>
/// Apply a few generation of evolution to the population.
virtual void operator()(eoPop<EOT>& _pop)
{
_pop.reserve(offspring.capacity());
eoPop<EOT> empty_pop;
popEval(empty_pop, _pop); // A first eval of pop.