Research Article

Heuristic-Based Firefly Algorithm for Bound Constrained Nonlinear Binary Optimization

Algorithm 4

HBFA with pBC.
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 based on distance ;
     Compute using binary positions (see (7));
     Discretize and define using (16);
  Compute , rank fireflies (from lowest to largest  );
  Set  ;