lib/vns.rb in vns-0.1.1 vs lib/vns.rb in vns-0.2.0.pre.rc.1
- old
+ new
@@ -69,10 +69,10 @@
puts 'Updated best solution'
best_solution = temporary_solution
end
progress = (counter + 1) * 1.0 / PERTURBATION_COUNT
- @inspection.call(progress, target_function(best_solution)) if @inspection
+ @inspection.call(progress, target_function(best_solution), best_solution) if @inspection
end
best_solution
end
\ No newline at end of file