Skip to main content
. 2019 Mar 5;19(5):1126. doi: 10.3390/s19051126
Policy 1 Selection Policy
1: BEGIN:
2: k: denotes the current time slot, x: denotes the duration of time slot.
3: INPUT: D(0), n, λ,α, α2,Δv
4: If v=0 then
5: D=D(0)
6: Else
7: D(k)=D(k1)=kxv
8: End if
9: Acquire: Hs(k), γs(k) via D(k)
10: Acquire: UAVL’s position: d1(k), d2(k)
11: While
    E(k)=[0,1]T||E(k)=[1,0]T||J(k)=[0,1]T||J(k)=[1,0]T
do
12:  Acquire: PL(k)=PLe(k)+PLj(k)
13:  power set in all cases: {PLi(k)}, i=1,2,3,4.
14: End while
15: Fori=1:4, i++ do
16: If the Equations (13) (14) (15) then
17:   derive Power-efficient package rate maximum problem
18:   Acquire PLi*(k)
19: else
20: PLi*(k)=0, E(k)=[0,0]T, J(k)=[0,0]T
21: Endif
22: endfor
23: PL*(k)=min{PLi*(k)}, i*=argmin{PLi*(k)}
24: Output: E(k)=Ei*(k), J(k)=Ji*(k)
25: IfE(k)=E(k1)&&J(k)=J(k1) then
26: UAVL doesn’t shift the eavesdropping-jamming model.
27: else
28: UAVL shifts the eavesdropping-jamming model from E(k1), J(k1) to E(k), J(k)
29: endif
30: k=k+1
31: Go back to line 6 until k=m+1
32: END