[Paradiseo-help] Predefined initial population

Johann Dréo johann at dreo.fr
Mer 5 Sep 13:41:35 CEST 2012

On Wed, Sep 5, 2012 at 11:39 AM, Jaluvka David <djaluvka at sckcen.be> wrote:
> I was wondering what is the most effective way to fully or partially populate the initial generation by a given set of known solutions (best guesses). Is there any elegant way foreseen for such situation?

If you have one or two existing solutions, you can directly push them
back to the population before calling the algorithm.
If you want to generate several solutions, it would be more elegant to
code an initializator.

You can, of course, combine the two approaches:

eoInit<S>* guess = new MyInit; // MyInit should inherit from eoInit
eoPop<S> pop( *guess ); // a pop can be built with an eoInit
S best = whatever();
pop.push_back( best );


Plus d'informations sur la liste de diffusion Paradiseo-help