Research Article

Cooperative Bacterial Foraging Optimization

Algorithm 2

Pseudocode for CBFO-H.
Stage 1: the original BFO algorithm
INITIALIZE: the position and the associated run-length unit of the bacteria colony;
For(each chemotactic step )
For(each bacterium )
TUMBLE;
RUN;
REPRODUCTION;
ELIMINATION and DISPERSAL;
End for
End for
PASS the best found solutions of each bacterium to stage 2;
Stage 2: the multi-colony cooperative BFO algorithm using explicit space decomposition
REINITIALIZE: bacteria positions from the best found solutions and the associate
run-length unit
SPLIT the whole population into separate colonies of 2D vectors;
For (each chemotactic step )
For (each colony )
For (each bacterium )
TUMBLE;
RUN;
REPRODUCTION;
ELIMINATION and DISPERSAL;
End for
UPDATE the best bacterium replace the component of the overall solution;
End for
EVOLUTION: Evolution is added to run-length unit by:
If ( ) is user-defined constant.
   α is user-defined constant.
End if
End for