|
Algorithm 5 BFOA main steps |
,
, , , , , e
initial position of the bacteria
t: = 1
while () and (solution not yet found) do
for (l: = ) do
for k: = do
for j: = do
and em with associated
of random values in
bacteria using
for s: = do
for steps and generate
end for
if then
to positions for bacteria
for s: = do
for steps
end for
end if
end for
using the best half of the bacteria
end for
of the worst bacteria
the same fraction randomly
end for
t: = t + 1
end while
best position
|