From 86089469d1d6dc78c01ff908f9003e7a573ea4eb Mon Sep 17 00:00:00 2001 From: trin07 Date: Sun, 3 Oct 2021 12:17:25 +0530 Subject: [PATCH] Fixed transfer function of SCA --- Py_FS/wrapper/nature_inspired/SCA_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Py_FS/wrapper/nature_inspired/SCA_test.py b/Py_FS/wrapper/nature_inspired/SCA_test.py index 20a4b5c..ee07d03 100644 --- a/Py_FS/wrapper/nature_inspired/SCA_test.py +++ b/Py_FS/wrapper/nature_inspired/SCA_test.py @@ -67,7 +67,7 @@ def next(self): self.population[i, j] = self.population[i, j] + \ (r1*np.cos(r2)*abs(r3*self.Leader_agent[j]-self.population[i, j])) - temp = self.population[i, j].copy() + temp = self.trans_function(self.population[i, j]) if temp > np.random.random(): self.population[i, j] = 1 else: