Research Article

Heuristic-Based Firefly Algorithm for Bound Constrained Nonlinear Binary Optimization

Algorithm 2

HBFA with mCS.
Data:  , ,
Set  ;
Randomly generate , ;
Discretize position of firefly : , ;
Compute , rank fireflies (from lowest to largest  );
while     and   do
  forall    such that   do
   forall      such that   do
     Compute randomization term;
     Compute attractiveness ;
     Move position of firefly towards using (7);
  Discretize positions: , ;
  Compute , rank fireflies (from lowest to largest );
  Set ;