jump to navigation

Genetic Algorithm in Ruby May 22, 2008

Posted by tommyr in Genetic Algorithms.
Tags: ,
1 comment so far

Sean and I wrote a simple genetic algorithm program in ruby to evolve a polynomial to fit a set of data points. Running a simple example set consisting of 3 data points, the program evolved a polynomial of degree 2 with a fitness of 0.00018 over 10,000 generations, which took about 30 seconds on my computer at home with 256 MB ram. You can find our source code on my buzz account here:

evolvable.rb