A learning-based approach to energy efficiency maximization in wireless networks