Large-Scale Demand Management in Smart Grid