Skip to main content
. 2024 Mar 7;24(6):1742. doi: 10.3390/s24061742
Algorithm 3 AoI-MATP algorithm
  •    1:

    Initialize wm, a small positive constant Δε, and ε=ε0.

  •    2:

    Calculate collection time τmk between any two SNs.

  •    3:

    repeat

  •    4:

       Run Algorithm 1 to obtain K, SN-CP association o, and locations of CPs L with ε.

  •    5:

       Calculate the optimal collection time tck in each CP k by (8) and flight time tF between any two CPs according to their distances.

  •    6:

       Run Algorithm 2 to obtain the visiting sequence q.

  •    7:

       Calculate the optimal peak AoI by (9) and (10).

  •    8:

       Update εεΔε.

  •    9:

    until ε<0.

  •  10:

    Find the minimum AoIp* with the optimal ε*, and the according optimal solutions (K*,L*,q*,o*) are all found.