Research Article

An Optimal Joint User Association and Power Allocation Algorithm for Secrecy Information Transmission in Heterogeneous Networks

Algorithm 1

Iterative algorithm based secrecy energy efficiency maximization.
(1)  Set the maximum number of iterations and the maximum tolerance
(2)  Set and the iterative index
(3)  repeat
(4)  For a given , solve power allocation subproblem to obtain the locally optimal power allocation strategy
(5)  if  
     then
(7)      Convergence = true
(8)     return  
(9)    else
(10)     
(11)   end if
(12)    until Convergence = true or