Research Article

Self-Adaptive Step Firefly Algorithm

Pseudocode 1

Pseudocode of the FA.
Begin
 Objective function
 Generate initial population of fireflies
        Formulate light intensity so that it is associated with
        While ( MaxGeneration)
   Define absorption coefficient
   for ( fireflies)
    for ( fireflies)
     if ( ),
       move firefly towards
     end if
     Vary attractiveness with distance via exp( )
     Evaluate new solutions and update light intensity
           end for
           end for
           Rank the fireflies and find the current best
  end while
  Post-processing the results and visualization
end