Remove noisy log messages #151

Merged
bustikiller merged 1 commits from fix/noisy-output into main 2024-11-30 18:18:28 +00:00

View File

@ -28,10 +28,7 @@ module VNS
@best_solution = @initial_solution @best_solution = @initial_solution
@best_score = @target_function.call(@best_solution) @best_score = @target_function.call(@best_solution)
puts "Initial score: #{@best_score.to_f}"
self.class.sequence(@perturbations).each do |perturbation| self.class.sequence(@perturbations).each do |perturbation|
puts "Running perturbation: #{perturbation.name}"
optimize(perturbation.new(@best_solution)) optimize(perturbation.new(@best_solution))
end end
@ -48,8 +45,6 @@ module VNS
@best_solution = alternative_solution.deep_dup @best_solution = alternative_solution.deep_dup
@best_score = score @best_score = score
puts "New lowest score: #{@best_score.to_f}"
return optimize(perturbation.class.new(@best_solution)) return optimize(perturbation.class.new(@best_solution))
end end
end end