This commit is contained in:
UmbertoJr 2019-10-31 16:01:17 +01:00
parent 856ff4015e
commit 5aa7ed5600

View file

@ -75,7 +75,6 @@ class Solver_TSP:
total_length += self.instance.dist_matrix[from_node, node] total_length += self.instance.dist_matrix[from_node, node]
from_node = node from_node = node
total_length += self.instance.dist_matrix[from_node, starting_node]
self.found_length = total_length self.found_length = total_length
if return_value: if return_value:
return total_length return total_length