Abstract | In this paper, due to the unlimited growth of service demands and high load traffic, a green wireless communication system has been considered with the aim of decreasing energy consumption of heterogeneous networks (HetNets). This system provides a proportion of required energy of Base Stations (BSs) by employing some renewable power suppliers (RPSs), while user equipments (UEs) especially benefit from short device-to-device (D2D) links as a promising technique to design energy-efficient HetNets. Indeed, we attempt to focus on efficient interaction between the RPS’s random green power generations and the BS’s dynamic of energy consumption via minimization of an energybased cost function, considering the D2D impacts on efficient utilization of energy and bandwidth. Simulation results validate that the proposed framework provides significant improvements in electrical grid power-consumption and total energy efficiency (EE) of the network.