Allowing a first eval. of the pop. to be performed by the E.A.
This commit is contained in:
parent
4d786ef3ce
commit
fa675dd55e
1 changed files with 2 additions and 1 deletions
|
|
@ -172,7 +172,8 @@ template<class EOT> class eoEasyEA: public eoAlgo<EOT>
|
||||||
/// Apply a few generation of evolution to the population.
|
/// Apply a few generation of evolution to the population.
|
||||||
virtual void operator()(eoPop<EOT>& _pop)
|
virtual void operator()(eoPop<EOT>& _pop)
|
||||||
{
|
{
|
||||||
eoPop<EOT> offspring;
|
eoPop<EOT> offspring, empty_pop;
|
||||||
|
popEval(empty_pop, _pop); // A first eval of pop.
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
||||||
Reference in a new issue