[galib] Re: Obtain "bestIndividual()" value in other genome types

gio sarto teofilo68 at yahoo.co.uk
Thu Nov 11 15:12:29 EST 2004

I never used the GABinaryStringGenome but it seems it
also has a
GABinaryStringGenome::gene(i) method that returns the
i-th bit, or equally

Furthermore, since it is derived from
GABinaryString , you can also use the

To convert the whole binary string to the
non-binary value I guess you need a GABinaryDecode
method. Have a look at the header files:



 --- Mert Tas <mert_tas at yahoo.com> wrote: 
> Hi,
> Well your solution seems to work fine in
> GARealGenome case. But I suppose you can not use the
> same approach on other genome types. I am using
> GABinaryStringGenome
> and you cannot assign the bestIndividual() value
> that easily since it has no  gene() operator. What I
> did here is, as stated before, I used the file
> stream operators to get its value. Anyone has a
> better idea? 
> Greetings,
> Mert
> galib-request at mit.edu wrote:
> Send galib mailing list submissions to
> galib at mit.edu
> To subscribe or unsubscribe via the World Wide Web,
> visit
> http://mailman.mit.edu/mailman/listinfo/galib
> or, via email, send a message with subject or body
> 'help' to
> galib-request at mit.edu
> You can reach the person managing the list at
> galib-owner at mit.edu

ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com

More information about the galib mailing list