This commit is contained in:
UmbertoJr 2019-11-18 09:34:37 +01:00
parent 49d031d1e2
commit 2272bc68b9

View file

@ -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