Skip to main content
. 2021 Sep 18;21(18):6271. doi: 10.3390/s21186271
Algorithm 1 Pseudo-code of IMO-CADE
Input: Algorithm parameters: Np,μCr,μF,c,pmin,α,NFEsmax; WSN parameters: K,ϵ,ρ,γ0
Output: The best solution xbest={G1best,,GKbest}
  •   1:

    Initialize the population P with Np solutions;

  •   2:

    Evaluate the population P and set NFEs=Np;

  •   3:

    For each operator, set qo=0 and po=1/2;

  •   4:

    Set A=Φ;

  •   5:

    whileNFEs<NFEsmaxdo

  •   6:

     Set SCr=Φ, SF=Φ;

  •   7:

     Sort the solutions in P based on the feasibility rules from the best to the worst;

  •   8:

     For each solution in P, set po,i according to Equation (21);

  •   9:

     For each solution, calculate po,i based on Equation (22);

  • 10:

    for i=1 to Np do

  • 11:

      Select the operator oi based on the selection probability;

  • 12:

      Calculate Cri and Fi based on Equations (23) and (24), respectively;

  • 13:

      Generate ui and deal with the violated variables based on Equation (13);

  • 14:

      Evaluate ui, NFEs=NFEs+1, and Cui;

  • 15:

     end for

  • 16:

    MPC;

  • 17:

     For each solution x in M, calculate F(x) under the current situation;

  • 18:

    for i=1 to Np do

  • 19:

      if F(ui)F(xi) then

  • 20:

       Axi;

  • 21:

       Calculate F^i based on Equation (17) and save it into So(i);

  • 22:

       SCrCri and SFFi;

  • 23:

       Replace xi with ui;

  • 24:

      else

  • 25:

       Set F^i=0 and save it into So(i);

  • 26:

      end if

  • 27:

    end for

  • 28:

     Update μCr and μF;

  • 29:

    for o=1 to 2 do

  • 30:

      Calculate Ro based on Equation (18);

  • 31:

      Update po based on Equation (20);

  • 32:

    end for

  • 33:

    end while