Decentralized Algorithms for Efficient Energy Management over Cloud-Edge Infrastructures