|
Algorithm 1 Proposed ECM-RMA algorithm |
|
Input:
|
|
Output:
|
| 1: |
Transmission Power and Transmission Time Allocation
|
| 2: |
for
do
|
| 3: |
for
do |
| 4: |
Solve the standard convex optimization problem in (35) to acquire the optimal power and time allocation policy; |
| 5: |
end for
|
| 6: |
end for |
| 7: |
Battery Management |
| 8: |
fordo |
| 9: |
if
then
|
| 10: |
; |
| 11: |
; |
| 12: |
; |
| 13: |
; |
| 14: |
else |
| 15: |
|
| 16: |
end if |
| 17: |
end for |
| 18: |
Update the Queue Length
|
| 19: |
for
do
|
| 20: |
Compute based on Equation (11); |
| 21: |
for
do
|
| 22: |
Compute based on Equation (14); |
| 23: |
end for |
| 24: |
end for
|