run
This commit is contained in:
parent
3f5c42dc61
commit
65a0366ab0
1 changed files with 1 additions and 1 deletions
2
run.py
2
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()
|
||||
|
|
Reference in a new issue