Skip to main content
. 2023 Jun 3;23(11):5316. doi: 10.3390/s23115316
Algorithm 1. Pseudo code of RNBO.
SL. No Pseudo code of RNBO
1 Set the parameters Ιm,H0 and so on
2 Each of the solutions is regarded as a Namib beetleG=G1,G2,,Gd,,Gf
3 Initialize the population of the Namib beetle together with random locations
4 Evaluate the fitness function using Equation (26)
5 While Ι<=Ιm  do
6 m=m,n=n
7 An initial coefficient of humidity increases using Equation (33)
8 The benefits of each region for collecting water
9 For  d=1 to f do
10 The capacity for receiving various beetles is identified utilizing Equation (28)
11 End for
12 For  d=1 to f do
13 For  r=Fd to f do
14 Searching around Νd
15 End for
16 End for
17 For  d=1 to f do//moving to wet regions
18 For  r=1 to f do
19 Compute cdr, HΜ and ΝrΕ using Equations (31), (32) and (51)
20 End for
21 End for
22 For  d=1 to f do//Calculating population mass and move towards wet mass using Equation (54)
23 End for
24 Ι=Ι+1
25 End while
26 Return finest solution from n=n