[galib] Best Genomes

Christian Samuel Perone christian_perone at yahoo.com.br
Fri Nov 4 07:44:14 EST 2005


Hello Rui, try calling something like this:

when you call bestIndividual with no parameter,
the default parameter assumes 0, that is the
best, so you can call with parameter "1" to get
the second best genome.

ga.statistics().bestIndividual(1)

Hope this help you.

- Christian S. Perone

--- Rui Tavares <rmt at uninova.pt> escreveu:

> Hi,
> 
> I'm having difficulties keeping/accessing the two
> best genomes. I'ld 
> like to access the present best and the previous
> best genomes.
> I've looked into GAStatistics, but only gives me the
> (one) best genome.
> 
> Thanks in advance,
> 
>     R. Santos Tavares
> 
> _______________________________________________
> galib mailing list
> galib at mit.edu
> http://mailman.mit.edu/mailman/listinfo/galib
> 


--------------------------------------------------------
Christian S. Perone - christian_perone at yahoo.com.br
"Time is the substance from which I am made. Time is a
river which carries me along, but I am the river; it
is a tiger that devours me, but I am the tiger; it is
a fire that consumes me, but I am the fire."
- Jorge Luis Borges


	



	
		
_______________________________________________________ 
Yahoo! Acesso Grátis: Internet rápida e grátis. 
Instale o discador agora!
http://br.acesso.yahoo.com/



More information about the galib mailing list