Generation dependent evaluation functions

Markku Laukkanen markku at ailabsolutions.com
Tue Oct 15 11:41:10 EDT 2002


On Tue, 15 Oct 2002, Tony Hirst wrote:

> Hi-
> forgive me for asking what is probably a trivial question (my c++ is a bit
> rusty and i'm trying galib out for the first time at the mo) but:
> 
> what's the most efficient way of getting access to the current generation
> number in a generational GA, so that i can make use of it in the objective
> function?

ga.generation();

So in every member function just call generation();

	PKY


> 
> thanks
> tony
> 
> _______________________________________________
> galib mailing list
> galib at mit.edu
> http://lancet.mit.edu/mailman/listinfo/galib
> 




More information about the galib mailing list