update
This commit is contained in:
parent
7ac6af5900
commit
b267fb2ace
2 changed files with 3 additions and 0 deletions
|
@ -60,4 +60,5 @@ class Instance:
|
||||||
for i in range(self.nPoints):
|
for i in range(self.nPoints):
|
||||||
for j in range(i, 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[i, j] = self.distance_euc(self.points[i][1:3], self.points[j][1:3])
|
||||||
|
self.dist_matrix += self.dist_matrix.T
|
||||||
|
|
||||||
|
|
2
run.py
2
run.py
|
@ -11,5 +11,7 @@ def run():
|
||||||
instance.plot_data()
|
instance.plot_data()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
run()
|
run()
|
||||||
|
|
Reference in a new issue