Skip to main content
. 2026 May 1;11(5):309. doi: 10.3390/biomimetics11050309
Algorithm 2 Ranking-based differential mutation of “DE/rand/1”
Begin
Sort the population and distribute the selection probability Pi
Randomly select r1∈1,Np {base vector index}
while rand>pr1 or r1==i
Randomly select r1∈1,Np
end
Randomly select r2∈1,Np {terminal vector index}
while rand>pr2 or r2==r1 or r2==i
Randomly select r2∈1,Np
end
Randomly select r3∈1,Np {starting vector index}
while r3==r2 or r3==r1 or r3==i
Randomly select r3∈1,Np
end
End