1 2 3 4 5 6 7 8 9 10 11 12 13 |
population = Population(@genotype,100)(1000) solution = @costs{|point| fittest(point[0]) } fittest = population[0] [solution, fittest] end #with mri: population = Population(@genotype,100)(1000) solution, fittest = @costs{|point| fittest(point[0]) }, population[0] end |
Pastie