[galib] Hybrid Algorithm

Geraldo Dalmonico geraldodj at yahoo.com.br
Mon Sep 24 21:07:42 EDT 2007


Hi, 

I am trying to write an hybrid GA and 3-OPT algorithm to solve the TSP problem. Ok, I could write the 3-OPT function... it's working, I guess :). The big problem is that, I can't replace genomes... I can optimize them using 3-OPT, but I can't replace, so it has no use...

I tried replacing it using the replace member function of the GAPopulation class.. when I do it, the genome's score is 0. If I remove and add the new one, it happens also. So, I'm lost. I thought it was just the statistics that wasn't being updated, but it is not! because I called some funtions supposed to update it.

So, that's it, if someone has had the same problem... I would aprecciate any help!

bye!




       Flickr agora em português. Você clica, todo mundo vê. Saiba mais.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/galib/attachments/20070924/575a21c8/attachment.htm


More information about the galib mailing list