From 5e324e9552ba41f0fd2c70bf16eebf2dab4f9fc6 Mon Sep 17 00:00:00 2001 From: UmbertoJr Date: Wed, 23 Oct 2019 21:12:59 +0200 Subject: [PATCH] update --- run.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 89b9577..3fe65d6 100644 --- a/run.py +++ b/run.py @@ -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__':