A distributed online algorithm for optimal real-time energy distribution in smart grid | IEEE Conference Publication | IEEE Xplore