From 2272bc68b91a17678871cd67ef4b7e629f2e204d Mon Sep 17 00:00:00 2001 From: UmbertoJr Date: Mon, 18 Nov 2019 09:34:37 +0100 Subject: [PATCH] solver --- src/TSP_solver.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/TSP_solver.py b/src/TSP_solver.py index 64a3902..74072cc 100644 --- a/src/TSP_solver.py +++ b/src/TSP_solver.py @@ -59,6 +59,11 @@ class Solver_TSP: self._gap() if verbose: print(f"### solution found with {self.gap} % gap in {self.time_to_solve} seconds ####") + print(f"the total length for the solution found is {self.found_length}", + f"while the optimal length is {self.instance.best_sol}", + f"the gap is {self.solver.gap}%", + f"the solution is found in {self.time_to_solve} seconds", sep="\n") + if return_value: return self.solution