| //Initialization | | Parameters setting a, , , and | | for i = 1, 2, ….,b//produce food source Y1, Y2,… Ya | | | | end | | //representation of swarm location | | I = 0 | | | | Again | | //foraging phase of opheresis | | For i = 1,2, ….b | | a = random number between [1, m] | | //produce food source Yi = (yi,1, yi,2,..., yi,m) | | j = 1,2, …, m | | If Yi,j > Uj then Yij = Uj | | If Yi,j < Lj then Yij = Lj | | end for//vision forging phase | | | | If f (Ybest) < f() then = Ybest | | If f() < f (Y) then Y) = | | | | till I = Imax |
|