Research Article

A Master-Slave Binary Grey Wolf Optimizer for Optimal Feature Selection in Biomedical Data Classification

Algorithm 1

Pseudocode for MSBGWO.
Begin
Randomly initialize the position of the wolves.
Sort the wolves in ascending order of fitness
= fittest
=2nd fittest
=3rd fittest
While the number of iterations is not exceeded
  Determine a as in Equation(18)
Sort the wolves in ascending order of fitness
  Masters = top half of the pack(fitness)
  Slave = remaining half of the pack
  Slaves update their positions using Equations (13), (15) and (16)
for each wolf
  Determine A,C using Equation (3) and (4)
  Determine D for , , and using Equations (10), (11) and (12)
  Determine X1,X2,X3 using Equations (7), (8) and (9)
  Determine the position using Equation (6) and (16)
End
  Determine the fitness of each wolf
  Update the positions of , , and
End
Return as solution
End