This commit is contained in:
UmbertoJr 2019-11-18 08:28:06 +01:00
parent 0f3a13736b
commit 465d2d68e7

View file

@ -2,6 +2,7 @@ from numpy.core._multiarray_umath import ndarray
import os import os
from time import time as t from time import time as t
import numpy as np import numpy as np
import matplotlib.pyplot as plt
if 'AI' in os.getcwd(): if 'AI' in os.getcwd():
from src import * from src import *
else: else:
@ -52,6 +53,7 @@ class Solver_TSP:
end = t() end = t()
self.time_to_solve = np.around(end - start,3) self.time_to_solve = np.around(end - start,3)
self.solved = True
self.evaluate_solution() self.evaluate_solution()
self._gap() self._gap()
if verbose: if verbose: