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