from LNS import *
from Data import *
import time

buyuk = r'scpnrg2.txt'
kucuk = r'scp410.txt'
data = DataObject(buyuk)
ALNS(data,180, 20, 0.9, 10, [0,0.2, 0.4, 1.5])
#print(data.s_best)
print(len(data.s_best))
# data.random_initial_solution()
# print(data.cost_function(data.s_best))
# data.LocalSearch()
# data.s_best = data.s_temp
# data.v_best = data.v_temp

print(data.cost_function(data.s_best))
#print(len(data.s_best),' ', len(np.unique(data.s_best)))
# data.random_initial_solution()
# print(np.random.random(data.s_current.shape[0]).shape[0])
# #print(data.M, " ", data.N)
# data.destroy(10, method = 'Mixed')
# data.repair(method = 'Greedy')
# #print(data.s_current)
# #print(len(data.temp_sol))

from LNS import *
from Data import *
import time

buyuk = r'scpnrg2.txt'
kucuk = r'scp410.txt'
data = DataObject(buyuk)
ALNS(data,180, 20, 0.9, 10, [0,0.2, 0.4, 1.5])
#print(data.s_best)
print(len(data.s_best))
# data.random_initial_solution()
# print(data.cost_function(data.s_best))
# data.LocalSearch()
# data.s_best = data.s_temp
# data.v_best = data.v_temp

print(data.cost_function(data.s_best))
#print(len(data.s_best),' ', len(np.unique(data.s_best)))
# data.random_initial_solution()
# print(np.random.random(data.s_current.shape[0]).shape[0])
# #print(data.M, " ", data.N)
# data.destroy(10, method = 'Mixed')
# data.repair(method = 'Greedy')
# #print(data.s_current)
# #print(len(data.temp_sol))

#print(data.s_best) # data.random_initial_solution() # print(data.cost_function(data.s_best)) # data.LocalSearch() # data.s_best = data.s_temp # data.v_best = data.v_temp #print(len(data.s_best),' ', len(np.unique(data.s_best))) # data.random_initial_solution() # print(np.random.random(data.s_current.shape[0]).shape[0]) # #print(data.M, " ", data.N) # data.destroy(10, method = 'Mixed') # data.repair(method = 'Greedy') # #print(data.s_current) # #print(len(data.temp_sol))