|
Algorithm 3 AoI-MATP algorithm |
-
1:
Initialize , a small positive constant , and .
-
2:
Calculate collection time between any two SNs.
-
3:
repeat
-
4:
Run Algorithm 1 to obtain K, SN-CP association , and locations of CPs with .
-
5:
Calculate the optimal collection time in each CP k by (8) and flight time between any two CPs according to their distances.
-
6:
Run Algorithm 2 to obtain the visiting sequence .
-
7:
Calculate the optimal peak AoI by (9) and (10).
-
8:
Update .
-
9:
until .
-
10:
Find the minimum with the optimal , and the according optimal solutions are all found.
|