Skip to main content
. 2025 Nov 13;25(22):6943. doi: 10.3390/s25226943
Algorithm 3. The pseudocode of the proposed local search procedure
Inputs: search agents (X), the best search agent (XB), current iteration (ci), maximum number of iterations (mi), and lower (LB) and upper (UB) boundaries of search space
Outputs: the best search agent (XB) and its fitness (FB)
for (i=1 to φ)
   Select Xj and Xk randomly from the X
   Calculate δ using Equation (53)
   Obtain newXB using Equation (52)
   Check and rectify the newXB using Equation (45)
   Compute newFB by Equation (42)
   if newFB<FB
      XB= newXB
      FB=newFB
   end if
end for
Return XB and FB