From d13cfe45f10cceb5d36a6d3a2c9f688e14f42a0e Mon Sep 17 00:00:00 2001 From: UmbertoJr Date: Mon, 4 Nov 2019 06:59:47 +0100 Subject: [PATCH] io --- src/io_tsp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io_tsp.py b/src/io_tsp.py index 26f19d5..f4e0316 100644 --- a/src/io_tsp.py +++ b/src/io_tsp.py @@ -45,7 +45,7 @@ class Instance: lines = data.splitlines() # read all data points and store them - self.optimal_tour = np.zeros(self.nPoints) + self.optimal_tour = np.zeros(self.nPoints, dtype=np.int) for i in range(self.nPoints): line_i = lines[5 + i].split(' ') self.optimal_tour[i] = int(line_i[0]) - 1