Skip to main content
. 2024 Dec 12;9(12):757. doi: 10.3390/biomimetics9120757
Algorithm 1 The ISCHNOA
Input: population size N, the lower limits of variables ub, the upper limits of variables ul,
the current number of iteration t = 0, and 
the maximum number of iteration T
Output: the best solution
1. Initialize N nutcracker using Equation (10)
2. Identifying the optimal individual based on fitness values.
3.    While (t < T)
4.       Generate random numbers σ1 and σ2 between 0 and 1.
5.       If σ1σ2
6.          ϕ is a random number between 0 and 1.
7.          for i = 1:N
8.             for j = i:d
9.             if ϕ>Pa1
10.                Updating Xit+1 using Equation (11), (27) and (28).
11.             else
12.                Updating Xit+1 using Equations (27) and (32).
13.             end if
14.          end for
15.          t = t + 1
16.       end for
17.    Else
18.       The reference point matrix is generated using Equations (15)–(17).
19.       Generate random numbers φ between 0 and 1.
20.       for i = 1:N
21.          if φ>Pa2
22.             Updating Xit+1 using Equations (24), (27) and (33).
23.          else
24.             Updating Xit+1 using Equations (25), (27) and (33).
25.          end if
26.          t = t + 1
27.       end for
28.    end while