solver
This commit is contained in:
parent
49d031d1e2
commit
2272bc68b9
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Reference in a new issue