A Heuristic approach for Online Distributed Optimization of Multi-Agent Networks of Smart Sockets and Thermostatically Controlled Loads based on Dynamic Average Consensus