Gravar-mail: Resource Allocation for OFDMA Systems and Energy Harvesting Communications in Multi-User Offline Scenarios