From b267fb2ace12c4d7b170292a3dd84f4db7bdd551 Mon Sep 17 00:00:00 2001 From: UmbertoJr Date: Wed, 23 Oct 2019 21:11:32 +0200 Subject: [PATCH] update --- code/io_tsp.py | 1 + run.py | 2 ++ 2 files changed, 3 insertions(+) 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()