A distributed algorithm for demand-side management: Selling back to the grid. Issue 11 (November 2017)