[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...
More information about the galib