7ossam81 / EvoloPy

EvoloPy toolbox provides classical and recent nature-inspired metaheuristic for the global optimization.
Apache License 2.0
450 stars 225 forks source link

Bat Algorithm #55

Open lnpsiqueira opened 3 years ago

lnpsiqueira commented 3 years ago

Hello everyone, When i try to use Bat Algorithm i got this error.

EvoloPy-master\optimizers\BAT.py", line 96, in BAT if Fnew<=fmin:

UnboundLocalError: local variable 'fmin' referenced before assignment

7ossam81 commented 3 years ago

hi @lnpsiqueira

This error has been fixed. fmin wasn't initialized. Thank you.

RamziAI commented 3 years ago

Hello everyone. When I try to use BAT to optimizers such as Ackley and Rastrigin and ext., I don't get the result near to 0. For example for Ackley for 2000 iterations I get 18, compared with other algorithms(for example with GWO), by using them I get approximately 0. What can be the issue? Thanks in advance.