Skip to main content
. 2022 Jul 22;22(15):5475. doi: 10.3390/s22155475
Algorithm 3 Mutation
Input Population, controller_set, Mutation parameter: F
Output New population
1 Initial Ps←null
2 for i < np do
3   randomly generate the numbers of the three offspring vectors,
  where r1,r2,r3∈(1,np),r1≠r2≠r3
4    Vig=Pr1g+F⋅(Pr2g−Pr3g);i=1,2,…,np
5   for j < cl do
6     for c < controller_set do
7       if chromosome don’t in controller_set then
8         randomly select a controller from controller_set as the newly
        owning control node
9       end if
10     end for
11   end for
12 end for
13 return mutate population