Research Article

Two-Swim Operators in the Modified Bacterial Foraging Algorithm for the Optimal Synthesis of Four-Bar Mechanisms

Algorithm 1

MBFOA. Input parameters are number of bacteria , chemotaxis loop limit , number of bacteria for reproduction (usually ), scaling factor , percentage of initial stepsize , and number of cycles (generations) .
() Create an initial swarm of bacteria at random   ,  
() Evaluate each   ,
() for to do
()for to do
()   for to do
()    Perform the chemotaxis process (tumble-swim) with (38), (39) and the attractor operator in (41) for bacteria
      by considering the three feasibility rules as selection criteria
()   end
() end
() Perform the reproduction process by sorting all bacteria in the swarm based on the feasibility rules, duplicating
   the best bacteria and eliminating the remaining
()   Perform the elimination-dispersal process by eliminating the worst bacterium in the current swarm
() end