Coordinating Vehicle-to-Grid and Distributed Energy Resources in Multi-Dwelling Developments: A Real-Time Gateway Control Framework | Synapse