24 ms·
Ah, right I see :) > This gives the option to also specify how many survive from one round to the next v.s (correct me if this is wrong) a random amount each t
by user24 16y ago
Ah, right I see :)
> This gives the option to also specify how many survive from one round to the next v.s (correct me if this is wrong) a random amount each time in your example.
in mine the population is constant. A set of two parents always have exactly two children. Breeding occurs until there are exactly as many children as there are parents, then the children mutate, and murder their parents. Genetics is fun!
Yeah I'm really happy with the graph, thanks! Canvas API is a bit clunky, but powerful (especially now we're allowed to write text into it!)
edit: what selection method are you using?
- icefox 16y agoSay 10% mutate and 60% crossover, that leaves 30% to live another round and be the parents for the crossover and mutation. After the fitness function is run the results are sorted by the fitness value. The lowest get to live and be part of the 30% the live/mutate/crossover. Link to the js: http://icefox.github.com/javascript_genetic_algorithm/javascriptgeneticalgorithm.js http://icefox.github.com/javascript_genetic_algorithm/javasc...