Allowing a first eval. of the pop. to be performed by the E.A.

This commit is contained in:
cahon 2002-09-17 07:08:51 +00:00
commit fa675dd55e

View file

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