From 8d9067412b4c715270a5ba8ee8c2c9aeaf090e55 Mon Sep 17 00:00:00 2001 From: Kahina-ainseur <90763728+Kahina-ainseur@users.noreply.github.com> Date: Mon, 22 May 2023 13:43:11 +0100 Subject: [PATCH] Update GWO.py --- optimizers/GWO.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optimizers/GWO.py b/optimizers/GWO.py index 4aee47b..e117eb0 100644 --- a/optimizers/GWO.py +++ b/optimizers/GWO.py @@ -81,7 +81,7 @@ def GWO(objf, lb, ub, dim, SearchAgents_no, Max_iter): Delta_score = fitness # Update delta Delta_pos = Positions[i, :].copy() - a = 2 - l * ((2) / Max_iter) + a = 2 - (l**2) * ((2) / Max_iter)**2 # a decreases linearly fron 2 to 0 # Update the Position of search agents including omegas