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

push from Pan

parent 79fb4eb3
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ siting_params:
no_iterations: 2000
no_epochs: 500
initial_temp: 100.
no_runs: 100
no_runs: 50
algorithm: 'MIR' # 'SGH', 'RS'
GRED_DET:
set: False
......
......@@ -68,7 +68,6 @@ function main_MIRSA(index_dict, deployment_dict, D, c, N, I, E, T_init, R, run,
x_init = convert.(Float64, x_init)
for r = 1:R
println(r)
x_sol[r, :], LB_sol[r], obj_sol[r, :] = simulated_annealing_local_search(D, c, n, N, I, E, x_init, T_init, legacy_index)
end
......@@ -85,7 +84,6 @@ function main_MIRSA(index_dict, deployment_dict, D, c, N, I, E, T_init, R, run,
x_init_best = x_init[LB_init_best, :]
for r = 1:R
println(r)
x_sol[r, :], LB_sol[r], obj_sol[r, :] = simulated_annealing_local_search(D, c, n, N, I, E, x_init_best, T_init, legacy_index)
end
......
......@@ -154,7 +154,7 @@ if __name__ == '__main__':
end = time.time()
print(f"Average CPU time for c={c}: {round((end-start)/params['no_runs'], 1)} s")
output_folder = init_folder(model_parameters, c, suffix=f"_LS_{args['--LS_init_algorithm']}")
output_folder = init_folder(model_parameters, c, suffix=f"_LS_{args['LS_init_algorithm']}")
with open(join(output_folder, 'config_model.yaml'), 'w') as outfile:
yaml.dump(model_parameters, outfile, default_flow_style=False, sort_keys=False)
......
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