My Recent Pastes (3 and counting)
Pastes by demisone (3 and counting)
Below are the 3 most recent pasties by demisone.
April 18, 2008
6:25AM EDT
by demisone
View more (13 lines)
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]
April 17, 2008
6:48PM EDT
by demisone
View more (66 lines)
puts Benchmark.measure {
3.times do
TSPSolver.example.solve!
end
}
April 16, 2008
7:37PM EDT
by demisone
View more (16 lines)
nikosd@vincent:~/Documents/Projects/GSoC 08/gruver/code$ time jruby tsp_solver.rb -989.3174952609072 [89, 42, 64, 21, 55, 4, 65, 17, 28, 45, 38, 75, 54, 33, 15, 94, 70, 63, 9, 22, 3, 48, 8, 81, 88, 43, 34, 92, 97, 27, 93, 40, 31, 1, 50, 61, 52, 82, 57, 53, 72, 76, 51, 86, 80, 5, 74, 68, 0, 77, 56, 10, 47, 79, 78, 19, 41, 39, 84, 67, 12, 60, 11, 6, 30, 25, 36, 95, 37, 90, 29, 23, 32, 96, 62, 99, 98, 83, 59, 46, 7, 16, 85, 35, 13, 20, 49, 2, 71, 44, 26, 58, 66, 18, 24, 73, 91, 87, 14, 69] real 0m44.963s
