From aafe6c1a09fa45713c90916b36f69da46590b091 Mon Sep 17 00:00:00 2001 From: UmbertoJr Date: Mon, 4 Nov 2019 08:05:30 +0100 Subject: [PATCH] io --- run.py | 1 - src/io_tsp.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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]