[galib] Tryng to use AnsiString

Leonardo Z. Lopes zanforlin at gmail.com
Wed Mar 9 08:56:36 EST 2005

Hi. I´m trying to use a AnsiString set by the user in my GA. It´s like a target that the GA tries to find. 

how can I use this AnsiString in my objective function?
Can I compare directly like 
for (int i=0; i<genome.length(); i++)
   if (genome.gene(i) == (Ansi.Pos(i)))
   score += 1.0; 

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

More information about the galib mailing list