[galib] put bestIndividual into a variable

Alin Ionascu alin1x at live.com
Wed Aug 1 05:47:28 EDT 2012


Hello Patrik,

Tank you for the tip, but unfortunately it doesn't work this way.
I get the following error:
control0406.cpp:535: error: invalid cast from type ~const GAGenome" to 
type ~double"


Thanks,
Alin

On 07/31/2012 04:31 PM, Patrick Coquillard wrote:
> Le 31/07/2012 00:38, Alin Ionascu a écrit :
>> double test = ga.statistics().bestIndividual();
> Hello, try this :
> double test = (double) ga.statistics().bestIndividual();
>
> Patrick
>
> -- 
> Le Savoir n'est pas une marchandise
> L'Université n'est pas une entreprise
> --
>
> Dr. Patrick Coquillard
> Institut Biologie et santé des Végétaux
> 400, route des Chappes
> 06 903, Sophia Antipolis
>
> Tél/fax : 04 92 38 64 30
> http://www.unice.fr/coquillard
>
> Virus free certfied by AVG
> Analyse effectuée par AVG - www.avg.fr <http://www.avg.fr>
> Version: 2012.0.2197 / Base de données virale: 2437/5166 - Date: 
> 30/07/2012
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20120801/f32b0363/attachment.htm


More information about the galib mailing list