Research Article
An Improved Squirrel Search Algorithm for Optimization
Algorithm 1
Pseudocode of basic SSA.
Set , , n, , , , and | |
Randomly initialize the flying squirrels locations | |
Calculate fitness value | |
whileāā | |
Generate new locations | |
forāāt = 1: n1 (n1 = total number of squirrels on acorn trees) | |
ifāā | |
else | |
end | |
end | |
forāāt =1: n2 (n2 = total number of squirrels on normal trees moving towards acorn trees) | |
ifāā | |
else | |
end | |
end | |
forāāt = 1: n3 (n3 = total number of squirrels on normal trees moving towards hickory trees) | |
ifāā | |
else | |
end | |
end | |
ifāā | |
end | |
Calculate fitness value of new locations | |
end |