Genetic Algorithm
Community Forums/Showcase/Genetic Algorithm
| ||
I'm not sure if this forum is meant for this stuff but i wrote a GA today. This is the code to it. It's based around the idea of pigs looking for truffles with them having certain attributes. I had a bit of a problem but now its finally done. They don't seem to evolve that well but there are changes in the generations so thats a bonus. Just see what you think. (It's not all by me - there are a few functions used for sorting etc which i have borrowed) Matt |
| ||
Very interesting stuff, althoug I woul'd like to see the pigs graphically searching for the truffels, or display charts of their attributes together with the success rate. There is a bug in function breed, line: cs1$ = Mid(Genes1,8*a,8) produces a "parameter must be greater than zero" when I press G to run it again. |