Skip to main content
. 2024 Mar 28;9(4):204. doi: 10.3390/biomimetics9040204
Algorithm 2. Quadratic interpolation (QI)
Input:
gbest: global optimum position
x: Matrix of population information
Output:
x*: Matrix of newly generated stock information
1.       For  i = 1:size(x)
2.       k  = randperm(N, 2)%Two non-repeating individuals were randomly generated.
3.       The positional information of the new individual is calculated by substituting the three individuals k(1), k(2), and gbest into Equation (5).
4.       End
Return x*