This commit is contained in:
UmbertoJr 2019-11-18 08:31:47 +01:00
parent 3f5c42dc61
commit 65a0366ab0
1 changed files with 1 additions and 1 deletions

2
run.py
View File

@ -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()