Skip to main content
. 2020 Mar 27;20(7):1862. doi: 10.3390/s20071862
Algorithm 1. Cuckoo search algorithm
Input: Δkp, Δki, Δkd, M, N
Output: pa
1: while (Number of iterations m < M) do
2:  Generate N random nest locations k0,i (i = 1,2,…,N)
3:  Calculate the objective function value of the initial nest p(k0,i)
4:  (Levy-flights) Looking for a new nest site kx,j (i = 1,2,…,N)
5:  Calculate the value of the new nest objective function p(kx,j)
6:  if (p(kx,j) > pa) then
7:   pa = p(kx,j)
8:  end if
9:  With the best solution and the best location for the solution
10:  mm + 1
11: end while