Skip to main content
. 2026 May 27;26(11):3398. doi: 10.3390/s26113398
Algorithm 1 Online Modified MPIO Teacher for Per-step Weight Selection
  • Require: 

    Local state of UAV i, neighbor states, params P,Kd,Kmax

  • Ensure: 

    Teacher weight wi⋆

  •   1:

    Initialize pop. P={Xq,Vq}q=1P in [0,1]2 and inject previous valid weight.

  •   2:

    Evaluate costs for all pigeons. Mark infeasible candidates (j3,i=1 or j4,i=1) to exclude them from Pareto ranking; init elite archive A←∅.

  •   3:

    for  k=1,…,Kmax  do

  •   4:

        Pareto-sort the feasible subset of P, compute landmark center Xcenter(k) via Equation (18).

  •   5:

        Update A←ArchiveUpdate(A,F1(k)) and select global guidance Xg(k) from F1(k).

  •   6:

        for each pigeon q∈P do

  •   7:

            Store Xqold.

  •   8:

            Update: If q is a leader, update via Equations (19) and (20); else perform hierarchical follower update (Equation (21)) or random walk.

  •   9:

            Evaluate & Rollback: Project to bounds and evaluate costs. Mark if infeasible. If dominated by its previous state, roll back to Xqold and restore costs.

  • 10:

        end for

  • 11:

        Remove the worst Kd pigeons based on Pareto rank and crowding distance to reduce |P|.

  • 12:

    end for

  • 13:

    Extract the final feasible Pareto front set S1 from P.

  • 14:

    return wi⋆∈S1 minimizing j2,i, else best feasible in A, else default [0.2,0.8].