diff --git a/code/io_tsp.py b/code/io_tsp.py index 866875d..3dc8819 100644 --- a/code/io_tsp.py +++ b/code/io_tsp.py @@ -60,4 +60,5 @@ class Instance: for i in range(self.nPoints): for j in range(i, self.nPoints): self.dist_matrix[i, j] = self.distance_euc(self.points[i][1:3], self.points[j][1:3]) + self.dist_matrix += self.dist_matrix.T diff --git a/run.py b/run.py index cccdd72..89b9577 100644 --- a/run.py +++ b/run.py @@ -11,5 +11,7 @@ def run(): instance.plot_data() + + if __name__ == '__main__': run()