|
Algorithm 1. Optimal bandwidth allocation using the sub-gradient method. |
| 1. Declare, instantiate, and initialize s = 0 as a counter of the number of iterations s according to (35). |
| 2. Input the initial values of , , , , and . |
| 3. Initialize maximum tolerance threshold and . |
| 4. Calculate gradients according to (39) and (40). |
| 5. Solve
then calculate current optimal values , as obtained from the optimal power-allocation mechanism described by (34). |
| 6. Calculate the current optimal effective network capacity, . |
| 7. Increment the counter for the next iteration of the algorithm: . |
| 8. Continue solving and obtaining current optimal values according to optimal power allocations . |
| 9. . |
| 10. according to the iteration formula in (42). |
| 11. . |
| 12. End. |