Skip to content
Snippets Groups Projects
Commit 7d2af3cf authored by Carlos Santos Garcia's avatar Carlos Santos Garcia
Browse files

Update ACO.py to allow crazy ants

parent a3e8af21
Branches
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ def ACO(Me, NbP, comm, alpha, rho, Q, nb_ants, tau_0, n_iter, n1_max=256, n2_max ...@@ -57,7 +57,7 @@ def ACO(Me, NbP, comm, alpha, rho, Q, nb_ants, tau_0, n_iter, n1_max=256, n2_max
paths = [] paths = []
costs = [] costs = []
for k in range(nb_ants//NbP): for k in range(nb_ants//NbP):
path = compute_path.compute_path(tau, alpha, n1_size, n2_size, n3_size) path = compute_path.compute_path(tau, alpha, n1_size, n2_size, n3_size, fancy_strategy=fancy_strategy)
n1 = 256 * (2**(path[0]-1)) n1 = 256 * (2**(path[0]-1))
n2 = 256 * (2**(path[1]-1)) n2 = 256 * (2**(path[1]-1))
n3 = 256 * (2**(path[2]-1)) n3 = 256 * (2**(path[2]-1))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment