Compare commits

...

2 Commits

Author SHA1 Message Date
7df4ab1c56 Merge pull request 'Remove noisy log messages' (#151) from fix/noisy-output into main
Some checks failed
Check usage of free licenses / check-licenses (push) Successful in 1m9s
Run unit tests / unit_tests (push) Successful in 2m37s
Build Nginx-based docker image / build-static-assets (push) Has been cancelled
Reviewed-on: #151
2024-11-30 18:18:27 +00:00
918bc0c1a8 Remove noisy log messages
All checks were successful
Check usage of free licenses / check-licenses (pull_request) Successful in 1m45s
Add copyright notice / copyright_notice (pull_request) Successful in 3m20s
Run unit tests / unit_tests (pull_request) Successful in 5m42s
2024-11-30 19:10:16 +01:00

View File

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