diff --git a/src/TSP_solver.py b/src/TSP_solver.py index f9f332c..301d903 100644 --- a/src/TSP_solver.py +++ b/src/TSP_solver.py @@ -43,7 +43,7 @@ class Solver_TSP: start = t() self.solution = self.available_initializers[self.methods[0]](instance_) assert self.check_if_solution_is_valid(self.solution), "Error the solution is not valid" - print("init ok") + # print("init ok") for i in range(1, len(self.methods)): self.solution = self.available_improvements[self.methods[i]](self.solution, self.instance) print(len(self.solution)) diff --git a/src/local_search.py b/src/local_search.py index f384e95..4ee55ac 100644 --- a/src/local_search.py +++ b/src/local_search.py @@ -64,7 +64,7 @@ class TwoOpt: if new_reward < new_len: new_len = new_reward else: - return new_tsp_sequence.tolist(), new_len, uncross + return new_tsp_sequence.tolist() # return new_tsp_sequence.tolist(), new_len, uncross return new_tsp_sequence.tolist() @@ -156,7 +156,7 @@ class TwoDotFiveOpt: if new_len < actual_len: actual_len = new_len else: - return new_tsp_sequence.tolist(), actual_len, uncross + return new_tsp_sequence.tolist() # return new_tsp_sequence.tolist(), actual_len, uncross return new_tsp_sequence.tolist()