Research Article
Energy Efficiency for Data Offloading in D2D Cooperative Caching Networks
Algorithm 1
The optimal caching policy algorithm.
1: Initializet:=1, Lagrangian variable , step size , error factor ; Calculate initial cache policy based on (14) and (15) | 2: whiledo | 3: ifthen | 4: | 5: else | 6: | 7: end if | 8: Updating cache policy based on (14) and (15) | 9: ifthen | 10: | 11: end if | 12: Updating cache policy | 13: Set | 14: end while | 15: The final is obtained. |
|