Skip to content

Commit

Permalink
Update TSP_GA.py
Browse files Browse the repository at this point in the history
  • Loading branch information
425776024 authored Dec 25, 2019
1 parent 14475d5 commit 3a8b69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mytsp/TSP_GA.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def evolution(self):
if j != r:
tsp.pop[j] = tsp.cross(tsp.pop[j], tsp.pop[r])
tsp.pop[j] = tsp.mutate(tsp.pop[j])
self.best_gen = self.EO(self.best_gen)
#self.best_gen = self.EO(self.best_gen)
tsp.best_dist = tsp.gen_distance(self.best_gen)

def load_Citys(self, file='china_main_citys.csv', delm=','):
Expand Down

0 comments on commit 3a8b69d

Please sign in to comment.