Skip to main content
. 2019 Oct 29;19(21):4704. doi: 10.3390/s19214704
Algorithm 3 Sink Node Reconstruction Signal
1: Require:Xm, xmi, Ym, ymj, Φm, ϕmji, σmj, Θm, Ψm, ψmii, ξ, Φ^m,
2: Ensure:X˜m
3: When the sink node received Ym from the m−th CH node then
4:  Reconstruct the signal using the CVX tool to solve the ℓ1-norm minimum
5:  Cvx_begin
6:   variable Xm
7:   minimize (norm (ΨmTXm,1))
8:   subject to
9:   Ym=Φ^mΘm+σm
10:  Cvx_end
11:  IF |Xm−X˜m|>ξ then
12:   change the CH nodes based on the new source
13:   Else go to the Algorithm 1
14:  End if
15: End