More on Genetic Algorithms
Thursday, March 3, 2005 at 11:08AM One interesting (I think) thing I didn't mention in my previous blog entry was determining how to create a new generation of creatures from the previous generation.
My first approach was simply to take the creature that performed best, and use it as the basis for the entire next generation, each of which contained random variations.
This approach was somewhat effective, although it tended to get stuck with a far from perfect solution, but where most small variation on that solution was worse (such as outputting 0.5 regardless of the input). This is known as getting stuck in a "local minima".
So I tried a different approach where we start out with completely random creatures for the first generation, as before, but instead of just taking the best and losing everything else, we take neighbours and "merge" them, where the better one forms 90% of the children's make-up, and the worse one the remaining 10%.
This had the effect of being much more resilliant against local minima as it gave more scope for the GA to try different options and where it found a good one, that may not be the best one, it kept it around for the next generation.
Ian Clarke |
4 Comments |
Technology 

Reader Comments (4)
[...] Register « British Computer Society wants software patents in the EU? More on Genetic Algorithms » [...]
Hi, do you have some code samples (c# would be great?) really interested in knowing how this stuff works.
Thanks, Ron.
Hello,
can you please give some detail on how do you actually "merge" two individuals (in terms of weight configuration)? Do you simply create an offspring that has 90% of the fitter individual's weights and has 10% of the less fit individual's weights?
A sail veering about the blank bay waiting for a swollen designer sunglasses wholesale bundle to bob up, roll over to the sun a puffy replica sunglasses wholesale face, salt white. Here I am. They followed the winding path down to the creek. Buck Mulligan stood on a stone, in shirtsleeves, his wholesale cheap sunglasses unclipped tie rippling over his shoulder. A young man clinging to a spur of rock near him moved slowly frogwise his green sunglass wholesale legs in the deep jelly of the water. Buck Mulligan sat down to unlace his wholesale oakley sunglasses boots. An elderly man shot up near the spur of rock a blowing red sunglasses for wholesale face. He scrambled up by the stones, water glistening on his fashion sunglasses wholesale pate and on its garland of grey hair, water rilling over his chest and paunch and spilling jets out of his wholesale sunglasses china black sagging loincloth.