From 9f70d52b5261a66603ba17f6432ff55f6eededd7 Mon Sep 17 00:00:00 2001 From: UmbertoJr Date: Mon, 4 Nov 2019 06:47:15 +0100 Subject: [PATCH] io --- src/io_tsp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/io_tsp.py b/src/io_tsp.py index eb103ba..00534b7 100644 --- a/src/io_tsp.py +++ b/src/io_tsp.py @@ -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()