Research Article

Improved Solutions for the Optimal Coordination of DOCRs Using Firefly Algorithm

Algorithm 1

Pseudocode for firefly algorithm [11].
(1) Objective function ,  
(2) Initialize a population of fireflies ,  
(3) Calculate the light intensity at by
(4) Define light absorption coefficient
(5) While (< MaxGeneration)
(6) for : all fireflies
(7) for : all fireflies
(8) Calculate the distance between and using Cartesian distance equation
(9) if  
(10) Attractiveness varies with distance via
(11) Move firefly towards in all dimensions
(12) end if
(14) Evaluate new solutions and update light intensity
(15) end for
(16) end for
(17) Rank the fireflies and find the current best
(18) end while