This commit is contained in:
UmbertoJr 2019-11-04 06:47:15 +01:00
parent 904ce65413
commit 9f70d52b52
1 changed files with 2 additions and 0 deletions

View File

@ -36,7 +36,9 @@ class Instance:
self.points[i, 2] = line_i[2]
self.create_dist_matrix()
self.exist_opt = False
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"))
data = file_object.read()
file_object.close()