This commit is contained in:
UmbertoJr 2019-11-18 08:31:47 +01:00
parent 3f5c42dc61
commit 65a0366ab0

2
run.py
View file

@ -36,7 +36,7 @@ def run(show_plots=False, verbose=False):
if show_plots: if show_plots:
solver.plot_solution() 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.solution = np.concatenate([instance.optimal_tour, [instance.optimal_tour[0]]])
solver.method = "optimal" solver.method = "optimal"
solver.plot_solution() solver.plot_solution()