[Paradiseo-help] Un envoi sur la liste Paradiseo-help à partir de a.m.abdol at uva.nl requiert une approbation

Sebastien Verel verel at lisic.univ-littoral.fr
Jeu 11 Déc 15:03:27 CET 2014


Dear Amir,

I think that the class eoBestIndividualStat<EOT> can make what you
want. Or if you only want the current best individuals (and not the
best so far), you can copy/paste/change this class.

The class can be found in eo/src/utils/eoStat.h

Best regards,
Sébastien




On Thu, Dec 11, 2014 at 2:18 PM,
<paradiseo-help-owner at lists.gforge.inria.fr> wrote:
> As list administrator, your authorization is requested for the
> following mailing list posting:
>
>     List:    Paradiseo-help at lists.gforge.inria.fr
>     From:    a.m.abdol at uva.nl
>     Subject: Printing the best individual in the population in each generation
>     Reason:  Envoi par un non-abonné sur une liste reservée aux abonnés
>
> At your convenience, visit:
>
>     http://lists.gforge.inria.fr/cgi-bin/mailman/admindb/paradiseo-help
>
> to approve or deny the request.
>
>
> ---------- Forwarded message ----------
> From: "Abdol, Amir Masoud" <A.M.Abdol at uva.nl>
> To: "paradiseo-help at lists.gforge.inria.fr" <paradiseo-help at lists.gforge.inria.fr>
> Cc:
> Date: Thu, 11 Dec 2014 13:18:44 +0000
> Subject: Printing the best individual in the population in each generation
>
> Hi,
>
> I’m trying to find a way to print the best individual, not just it’s fitness. I know that I can access it with pop.best_element() and if I wanted to print the parameters of it.
>
> I tried to inherit from eoStat to have access to the population and return the best_element to the monitor but the value has to be using eoStat<EOT, typename EOT::Fitness>::value; which doesn’t allow me to return eoReal. I’ve also tried to use eoState and registering pop.best_element() to it but it’s not possible since eoReal is not eoPrintable.
>
> My last option is to inherit from eoStat and directly write the best pop into a file without returning anything to the Checkpointer but this is not a very clean solution. Is there any other way that I do that?
>
> Cheers,
>
> Amir.
>
>
>
> ---------- Forwarded message ----------
> From: paradiseo-help-request at lists.gforge.inria.fr
> To:
> Cc:
> Date: Thu, 11 Dec 2014 14:18:47 +0100
> Subject: confirm 0c37800a92530fc4ae17c31d7ab5e891a51f0736
> Si vous répondez à ce message, en laissant l'en-tête Objet: intact,
> Mailman supprimera le message en attente. Procédez ainsi s'il s'agit
> d'un spam. Si vous répondez à ce message en y ajoutant un en-tête
> Approuvé: avec le mot de passe de la liste comme valeur, le message
> sera autorisé à aller vers la liste. L'en-tête Approuvé: peut
> également apparaître à la première ligne du corps du message de
> réponse



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