This commit is contained in:
UmbertoJr 2019-10-23 21:12:59 +02:00
parent b267fb2ace
commit 5e324e9552

7
run.py
View file

@ -10,7 +10,12 @@ def run():
print(" --- ")
instance.plot_data()
solver = Solver_TSP('random')
naive_solution = solver(instance)
solver.plot_solution()
print(f"the total length for the solution found is {solver.evaluate_solution()}",
f"while the optimal length is {instance.best_sol}",
f"the gap is {solver.gap} %", sep="\n")
if __name__ == '__main__':