
Source-code of EHO algorithm in Matlab 153
where, p
min,c
and p
max,c
are the lower and upper bounds of elephant indi-
viduals in clan c. rand[0, 1] represents a uniform and stochastic distribution.
12.2.3 Pseudo-code of EHO algorithm
The pseudo-code of standard EHO is presented in Algorithm 11.
Algorithm 11 Pseudo-code of EHO.
1: determine the objective function OF (.)
2: set the number of clans N , where c[1, N], and number of elephants in
each clan n
c
3: determine the values of scaling factors α, β, and maximum number of
generations, G
max
4: set the lower and upper bounds for each variable/clan c, [p
min,c
, p
max,c
]
5: randomly generate the positions for ...