An Online Learning Algorithm for Demand Response in Smart Grid | Synapse