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: