
Matlab source-code of bacterial foraging optimization 35
9: pp(d, k, j, i) = LB(d) + rand ∗ (U B(d) − LB(d))
10: end for
11: apply correction algorithm to i-th bacterium, if infeasible
12: calculate the fitness value of i-th bacterium
13: end for
14: end for
15: end for
16: Start the elimination or dispersal step...
17: for each l-th elimination-dispersal step do
18: for each k-th reproduction step do
19: for each j-th chemotactic step do
20: for each i-th bacterium do
21: Update the i-th bacterium by using (3.2) and (3.3), as
22: pp
i
(j + 1, k, l) = pp
i
(j, k, l) + C
i
·
∆
i
√
∆
T
i
·∆
i
23: apply correction algorithm to i-th bacterium, if infeasible
24: calculate the ...