From a6df61ced100b84b6cc7af9cc7fdb3f641ec410e Mon Sep 17 00:00:00 2001 From: Emile Prost <emile.prost@student-cs.fr> Date: Fri, 2 Apr 2021 15:18:05 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20'crazy'=20dans=20les=20strat=C3=A9?= =?UTF-8?q?gies=20possible=20pour=20l'update=20de=20tau?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Appli-iso3dfd/ACO.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Appli-iso3dfd/ACO.py b/Appli-iso3dfd/ACO.py index 702be90..4cd49ec 100644 --- a/Appli-iso3dfd/ACO.py +++ b/Appli-iso3dfd/ACO.py @@ -72,7 +72,7 @@ def ACO(Me, NbP, comm, alpha, rho, Q, nb_ants, tau_0, n_iter, n1_max=256, n2_max paths = np.array(paths, dtype="int32") costs = np.array(costs, dtype="float64") - if fancy_strategy == 'AS' or fancy_strategy == 'ElitistAS': + if fancy_strategy == 'AS' or fancy_strategy == 'ElitistAS' or fancy_strategy == 'crazy': #we initialize the best path with the ants already in this process best_cost = np.amin(costs) best_p = paths[np.argmin(costs), :] -- GitLab