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__':