Method and system for smart power management

Disclosed are a system and a method for optimizing an aggregated load and power management of a generator. A power management system comprises a local apartment-to-grid (A2G) system for transmitting a local A2G energy profile to a central A2G manager to comply with A2G energy routing determination from the central A2G manager; and the central A2G manager for making the A2G energy routing determination based on energy related information including the local A2G energy profile to transmit the routing determination to the local A2G manager.