Bacterial Colony Optimization (BCO)
For (Each run)
For (Each iteration)
  Chemotaxis & Communication:
Tumbling (Chemotaxis & Communication) using (3.4);
  While (the maximum swimming steps are not met)
   Swimming (Chemotaxis & Communication) using (3.5);
  End while
Interactive Exchange:
  Individual exchange and group exchange mechanism as Pseudocode 3;
  If (Reproduction and elimination conditions are met)
   Compute the ,
   Reproduction and elimination using (3.2);
  End If
  If (Migration conditions are met)
   Migration using (3.3);
   End If
End For
End For
Pseudocode 4: Pseudocode of bacterial colony optimization.