Skip to main content
. 2019 Sep 23;19(19):4112. doi: 10.3390/s19194112
Algorithm 1. Shows the Pseudo Code of AMG-QUATRE Algorithm.
  // Initialization phase
  Initialize the searching space V, dimension D, Set the generation counter Gen=1, randomly initialize the population X with ps individuals, and evaluate fitness values of all individuals, set initial μF=0.5, σF=0.1.
  // Main loop
  1: while stopping criterion is not satisfied do
  2:  Randomly partition the population into three groups, group1, group2 and group3
  3:  Generate matrices Mgroup1 and M¯group1, Mgroup2 and M¯group2, Mgroup3 and M¯group3, using Equation (3).
  4:  Calculate mutation matrix Bgroup1 using QUATRE/target-to-best/1, Bgroup2 using QUATRE/rand/1, Bgroup3 using QUATRE/best/1.
  5:  Evolve individuals in each group using Equation (1).
  6:  Evaluate fitness values of all individuals.
  7:   for i=1;ips;i++ do
  8:    if f(Xi)f(Xpbest,i) then
  9:     Xpbest,i=Xi
  10:    end if
  11:   end for
  12:  X=Xpbest, Xgbest=opt{Xpbest}.
  13:  Update scale factor F according to Equation (12).
  14:  Gen=Gen+1
  15: end while
  Output: The global optimum Xgbest, global best fitness value f(Xpbset).