solver
This commit is contained in:
parent
0f3a13736b
commit
465d2d68e7
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Reference in a new issue