[galib] put bestIndividual into a variable

Alin Ionascu alin1x at live.com
Wed Aug 1 06:13:02 EDT 2012


Dear GALib malinglist users thanks for the help. I have solved the problem.

My solution:

GARealGenome genome(1, alleles, Objective);
double test;
genome = ga.statistics().bestIndividual();
test = genome.gene();

This gives me the value I was looking for.

Best Regards,
Alin


More information about the galib mailing list