Skip to content
Snippets Groups Projects
Commit 5a2ee20c authored by Matthieu Oberon's avatar Matthieu Oberon
Browse files

fix broadcast of tau

parent 0afde643
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,8 @@ def ACO(Me, NbP, comm, alpha, rho, Q, nb_ants, tau_0, n_iter, n1=256, n2=256, n3 ...@@ -76,6 +76,8 @@ def ACO(Me, NbP, comm, alpha, rho, Q, nb_ants, tau_0, n_iter, n1=256, n2=256, n3
cost_opti = best_cost cost_opti = best_cost
path_opti = best_p path_opti = best_p
tau = comm.Bcast(tau, root=0)
if Me == 0: if Me == 0:
path_opti[0] *= 16 path_opti[0] *= 16
return path_opti, cost_opti return path_opti, cost_opti
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment