Online algorithms for optimal energy distribution in microgrids. ([2015])