Skip to content
Snippets Groups Projects
Commit 1abde851 authored by David Radu's avatar David Radu
Browse files

update on main

parent 4e006671
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ elif parameters['solution_method']['RAND']['set']: ...@@ -70,7 +70,7 @@ elif parameters['solution_method']['RAND']['set']:
seed = parameters['solution_method']['RAND']['seed'] seed = parameters['solution_method']['RAND']['seed']
for run in range(parameters['solution_method']['RAND']['no_runs']): for run in range(parameters['solution_method']['RAND']['no_runs']):
output_folder = init_folder(parameters, input_dict, suffix='_rand_seed' + str(seed)) output_folder = init_folder(parameters, input_dict, suffix='_c'+ str(c) + '_rand_seed' + str(seed))
seed += 1 seed += 1
with open(join(output_folder, 'config_model.yaml'), 'w') as outfile: with open(join(output_folder, 'config_model.yaml'), 'w') as outfile:
...@@ -109,7 +109,7 @@ elif parameters['solution_method']['HEU']['set']: ...@@ -109,7 +109,7 @@ elif parameters['solution_method']['HEU']['set']:
custom_log(' HEU chosen to solve the IP. Opening a Julia instance.') custom_log(' HEU chosen to solve the IP. Opening a Julia instance.')
import julia import julia
if not isinstance(parameters['c'], list): if not isinstance(parameters['solution_method']['HEU']['c'], list):
raise ValueError(' Values of c have to elements of a list for the heuristic set-up.') raise ValueError(' Values of c have to elements of a list for the heuristic set-up.')
_, _, _, indices = retrieve_index_dict(parameters, input_dict['coordinates_data']) _, _, _, indices = retrieve_index_dict(parameters, input_dict['coordinates_data'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment