The water filling algorithm of Python environment.
Numpy(https://numpy.org/)
Matplotlib (https://matplotlib.org/)
Input the following command in your python/file/path
git clone https://github.com/shen-tianji-gn/waterfilling.git
from waterfilling.waterfilling import GWF
Please refer the waterfilling_call.py
for details.
This program is build depend on geometric water-filling algorithm by Zhao in Ryerson University [1].
[1] P. He, L. Zhao, S. Zhou, and Z. Niu, “Water-filling: A geometric approach and its application to solve generalized radio resource allocation problems,” IEEE Trans. Wireless Commun., vol. 12, no. 7, pp. 3637–3647, Jul. 2013.
@article{he_2013_waterfilling,
author = {He, Peter
and Zhao, Lian
and Zhou, Sheng
and Niu, Zhisheng},
title = {Water-filling: A geometric approach and its application to solve generalized radio resource allocation problems},
journal = {IEEE Trans. Wireless Commun.},
volume = {12},
number = {7},
pages = {3637-3647},
month = jul,
year = {2013},
}