Research Article
Adaptive Cat Swarm Optimization Algorithm and Its Applications in Vehicle Routing Problems
| while t < = Maxiteration do | | Adaptive adjustment parameter r by equations (8)∼(10) | | Compare the distance between Cat.Posi and cat’s gbest.Posi and pbest.Posi | | Dist2gbest = distances (Cat.Posi, gbest.Posi) | | if Dist2gbest < = radius then | | F = gbest.Posi − Cat.Posi | | else | | F = 0 | | end if | | Dist2pbest = distances (Cat.Posi, pbest.Posi) | | if Dist2pbest < = radius then | | E = pbest.Posi + Cat.Posi | | else | | E = 0 | | end if | | Update the position and velocity by equations (11) and (12) | | end while | | return gbest |
|