Calculate probability values for using (11),
   ; ;
for , %( corresponds to the th onlooker bee)%
if then, %(select the th employed bee to follow)%
  Select a random food source ,   ,
  Select a random component , ,
   ,
   ,
  if then,
   Evaluate ,
    ,
    ,
  end if,
   ,
 end if,
;
if then ; %(reset )%
end for,
Pseudocode 4: The DABC onlooker bee phase pseudocode.