Skip to main content
. 2025 Mar 14;10(3):180. doi: 10.3390/biomimetics10030180
Algorithm 2: The mutation mechanism
1: Calculate the mutation rate according to Equation (7).
2: For each voter or follower
3:         If random value <= mutation rate
4:                 If random value <= fixed rate
5:                         Update the voter or follower with random mutation according to Equation (8).
6:                  Else
7:                         Update the voter or follower with Cauchy mutation according to Equation (9).
8:                  End
9:          End
10: End