Skip to main content
. 2021 Dec 22;12(1):11. doi: 10.3390/diagnostics12010011
Algorithm 1. Pseudocode of SSO algorithm
Initialise the population of social spiders
Initialise the target vibration
Initialise the parameters, rand and L
Evaluate the fitness measure for all social spiders
For all social spiders,
{
Calculate the vibration intensity
Select the strongest vibration among all
{
nint>targetint
Store position of foraging spider v as the best solution
}
While q<qmax
{
Update the position of the foraging spider as per Equation (8)
}
End For
Update the parameters, rand and L
Evaluate fitness of all social spiders
Sort the positions as per fitness measure (accuracy)
q=q+1
}
End For
Return Bvq+1