Centralized and decentralized control for demand response | Synapse