diff --git a/run.py b/run.py index 238a88a..d09753e 100644 --- a/run.py +++ b/run.py @@ -33,7 +33,6 @@ def run(show_plots=False): solver.plot_solution() if instance.exist_opt: - print(instance.optimal_tour) solver.solution = np.concatenate([instance.optimal_tour, [instance.optimal_tour[0]]]) solver.method = "optimal" solver.plot_solution() diff --git a/src/io_tsp.py b/src/io_tsp.py index f4e0316..9172de7 100644 --- a/src/io_tsp.py +++ b/src/io_tsp.py @@ -31,7 +31,7 @@ class Instance: self.points = np.zeros((self.nPoints, 3)) for i in range(self.nPoints): line_i = self.lines[7 + i].split(' ') - self.points[i, 0] = line_i[0] + self.points[i, 0] = int(line_i[0]) self.points[i, 1] = line_i[1] self.points[i, 2] = line_i[2]