OptimizationTestFunctions icon indicating copy to clipboard operation
OptimizationTestFunctions copied to clipboard

Bug in Ackley definitions

Open anvaari opened this issue 3 years ago • 1 comments

Hi, I think, I found bug in Ackley definition. According to provided link, We should apply Square root on square term (s1). But it didn't apply. In order to fix this line 60 should rewrite as follows :

return self.bias - 20*math.exp(-0.2*math.sqrt(s1)) - math.exp(s2)

anvaari avatar Nov 24 '22 13:11 anvaari

True. Good catch!

ogencoglu avatar Jan 08 '23 21:01 ogencoglu

@anvaari thank u, fixed it

PasaOpasen avatar Apr 04 '25 18:04 PasaOpasen