Research Article

Optimizing the Spectrum and Power Allocation for D2D-Enabled Communication Systems Using DC Programming

Algorithm 1

The power allocation optimization using DC programming.
(1)
(2)set i = 0.
(3)Initialize the power allocation variables , and , , , the Lagrangian multiplier and .
(4)Set the convergence threshold .
(5)
(6)while (  =  1) and (  = 1) do
(7)i = i + 1;
(8) Compute the optimal power allocation of and according to equations 30 and (31).
(9) Updating power allocation according to equation (32);
(10) Solve the dual problem and updating Lagrangian multiplier and (  = 1, 2 , )according to equations (37) and (38) respectively.
(11)endwhile