Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
This paste will be private.
def solve! population = Population.new(@genotype,100).evolve_silent(1000) solution = @costs.sort_by{ |point| fittest.genes.index(point[0]) } fittest = population[0] [solution, fittest] end #with mri: def solve! population = Population.new(@genotype,100).evolve_silent(1000) solution, fittest = @costs.sort_by{ |point| fittest.genes.index(point[0]) }, population[0] end
Pasted April 18, 2008 6:25AM EDT
by demisone
Channel #rubinius on irc.freenode.com
Embed