From 65a0366ab0dcd4271f162addd4825db14d656126 Mon Sep 17 00:00:00 2001 From: UmbertoJr Date: Mon, 18 Nov 2019 08:31:47 +0100 Subject: [PATCH] run --- run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run.py b/run.py index c734655..ccbbcf5 100644 --- a/run.py +++ b/run.py @@ -36,7 +36,7 @@ def run(show_plots=False, verbose=False): if show_plots: solver.plot_solution() - if instance.exist_opt: + if instance.exist_opt and show_plots: solver.solution = np.concatenate([instance.optimal_tour, [instance.optimal_tour[0]]]) solver.method = "optimal" solver.plot_solution()