genetic algorithms in lingo 2004-03-31 - By Danny Kodicek
Back
> > Hi ! is there anybody working with genetic algorithms or self mutating > > code in lingo? > > Is there any tutorial or .dir examples of this? which book u recommend? > > Genetic algorithms is such a specialized field, that you'd be better of > learning about genetic algorithms themselves, and then implement your > knowledge of them in lingo. I think there are very few people that work > with both director and genetic algorithms. look up 'genetic algorithms > tutorial' or something on google, and you should come along way. Sites > like director-online.com and many others have a lot of information on > how to program in director.
I've done one (a few in fact). I used it to calculate an 8th-generation precursor to a particular state in a 64x64 game of life, which as you can imagine is a fairly intractable problem with 2^4096 possibilities to choose from! I was running it off and on for nigh on 9 months! But it got pretty close to an answer.
I made up the code based on a description of the algorithm, and I played with it rather a lot to try to get it to have the right degree of mutation. If you're interested, I can try to dig up the code. The main thing I'd say from a Lingo point of view is: make sure you don't try running it in a tight loop. Run one generation each frame, and set up a script that saves improved versions of the genome in an external file. If it's a big problem space then even a GA may take a good long while!
Danny
__ ____ ____ ____ ____ ____ ____ ____ ____ ____ Dir3d-l mailing list Dir3d-l@(protected) http://nuttybar.drama.uga.edu/mailman/listinfo/dir3d-l
|
|