3 ms·
Say 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 th
by icefox 16y ago
Say 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...