io
This commit is contained in:
parent
904ce65413
commit
9f70d52b52
1 changed files with 2 additions and 0 deletions
|
@ -36,7 +36,9 @@ class Instance:
|
||||||
self.points[i, 2] = line_i[2]
|
self.points[i, 2] = line_i[2]
|
||||||
|
|
||||||
self.create_dist_matrix()
|
self.create_dist_matrix()
|
||||||
|
self.exist_opt = False
|
||||||
if [name for name in ["eil76", "kroA100"] if name in name_tsp]:
|
if [name for name in ["eil76", "kroA100"] if name in name_tsp]:
|
||||||
|
self.exist_opt = True
|
||||||
file_object = open(name_tsp.replace(".tsp", ".opt.tour"))
|
file_object = open(name_tsp.replace(".tsp", ".opt.tour"))
|
||||||
data = file_object.read()
|
data = file_object.read()
|
||||||
file_object.close()
|
file_object.close()
|
||||||
|
|
Reference in a new issue