constructive algorithms

This commit is contained in:
UmbertoJr 2019-11-18 07:03:34 +01:00
parent d69cc63677
commit f39fb0aa0b
3 changed files with 4 additions and 1 deletions

View file

@ -2,8 +2,11 @@ import os
if 'AI' in os.getcwd(): if 'AI' in os.getcwd():
from src.utils import * from src.utils import *
from src.constructive_algorithms import *
from src.local_search import *
from src.TSP_solver import * from src.TSP_solver import *
from src.io_tsp import * from src.io_tsp import *
else: else:
from AI2019.src.utils import * from AI2019.src.utils import *
from AI2019.src.TSP_solver import * from AI2019.src.TSP_solver import *

View file

@ -1,4 +1,5 @@
import os import os
import numpy as np
if 'AI' in os.getcwd(): if 'AI' in os.getcwd():
from src.utils import * from src.utils import *
else: else:

View file

@ -1,4 +1,3 @@
import numpy as np
def compute_lenght(solution, dist_matrix): def compute_lenght(solution, dist_matrix):
total_length = 0 total_length = 0