Research Article
Synchronous Firefly Algorithm for Cluster Head Selection in WSN
Algorithm 1
Pseudocode for cluster formation and CH selection in firefly.
Objective function , = () | Generate initial population of fireflies ( | Light intensity at is determined by | Define light absorption coefficient | while () | for all fireflies | for all fireflies | if (), Move firefly towards in -dimension; end if | Attractiveness varies with distance via | Evaluate new solutions and update light intensity | end for | end for | Rank the fireflies and find the current best | end while |
|