Multi-agent Deep Reinforcement Learning for Zero Energy Communities

Amit Prasad, Ivana Dusparic

TL;DR

This paper introduces a multi-agent Deep Reinforcement Learning (DRL) approach to optimize energy sharing within nearly Zero Energy Communities (nZECs). By training individual buildings as independent agents that share a global community reward, the system learns cooperative behaviors that significantly improve the community's overall net-zero energy balance compared to no-sharing or random strategies.

What Problem Does This Paper Address?

As renewable energy hardware becomes cheaper, more homes are becoming self-sustainable Zero Energy Buildings (ZEBs). When grouped together, they form energy communities. However, the authors point out a flaw in how these communities are traditionally defined: they usually assume every building is a ZEB. In reality, a nearly Zero Energy Community (nZEC) will likely contain a mix of buildings with varying generation capacities—some might have massive solar arrays, while others have none at all.

Because renewable generation is highly uncertain, buildings often face energy deficits and must buy expensive power from the main supply grid. While sharing surplus energy with neighbors is a logical fix, previous research has mostly focused on optimizing single buildings or sharing energy purely for individual economic gain. This paper tackles the challenge of coordinating a diverse group of buildings to intelligently share energy, minimizing the entire community's reliance on the external grid to achieve a collective net-zero energy status.

Methods

The authors model the community as a multi-agent environment where each building is an independent DRL agent.

  • Algorithm: The agents use a Deep Q-Network (DQN) optimized with Stochastic Gradient Descent (SGD) and Combined Experience Replay to stabilize learning.
  • State and Action Space: Each agent observes its local state (energy consumed, generated, and stored), the community's energy balance, and the time of day. Based on this, it chooses an action: consume/store energy, request energy from a neighbor, request from the grid, grant a neighbor's request, or deny it.
  • Community Monitoring Service (CMS): To foster cooperation, the authors introduce a CMS that tracks the community's overall energy status. Instead of rewarding agents for their individual energy independence, the CMS issues a global reward based on the negative of the community's total energy deficit. This shared reward structure incentivizes agents to work together rather than selfishly hoarding power.

Datasets

The simulation relies on two datasets to model realistic environmental and behavioral conditions:

  • Energy Consumption: Synthetic data generated using the Load Profile Generator, which models the behavior of people living in a house to create realistic consumption patterns (sampled every half hour over 3 weekdays).
  • Energy Generation: The NREL NSRDB (National Solar Radiation Database) solar exposure dataset for Toronto City, used to simulate solar panel generation during distinct Winter and Summer conditions.

Key Insights and Ideas

  • Selfless Agents: Because of the global reward signal, agents learn to operate "selflessly." Buildings with surplus energy learn that granting requests to neighbors with lower (or zero) generation capacity yields a better long-term reward than hoarding the energy or letting neighbors rely on the main grid.
  • Strategic Battery Depletion: A fascinating secondary effect of sharing energy is that it introduces a deficit in the sharer's local battery. This is actually highly beneficial: it creates "room" in the battery to store newly generated surplus solar energy that would have otherwise been wasted (curtailed) if the battery had remained fully charged.
  • Redefining the nZEC: The paper successfully proves that a community can achieve net-zero status even if it contains "freeloader" homes with zero generation capacity, provided the community's micro-grid is managed cooperatively.

Key Results

The DRL agents successfully learned a cooperative policy that closely mirrored the theoretical optimal strategy ("Always Share").

  • Winter Performance: In a 3-house scenario over 3 simulated days, the DRL approach improved the community's energy balance by 40 kWh compared to a baseline where no energy was shared.
  • Handling Zero-Generation Homes: In a 4-house scenario where one house had absolutely no solar panels, the DRL community improved its energy balance by over 60 kWh compared to the no-sharing baseline.
  • Seasonal Adaptability: During the summer, when solar generation was high, the houses were entirely self-sustaining. The agents correctly learned that sharing was unnecessary, demonstrating adaptability to seasonal changes.
  • Scalability: The system successfully scaled up to a 10-house scenario, consistently outperforming random-action and no-sharing baselines.

Limitations and Future Work

The authors acknowledge a few limitations in their current setup. First, the agents were trained in an episodic manner rather than online, which would be necessary for a live, adaptive system. Second, due to physical compute limitations, they only tested the system on up to 10 agents, leaving its scalability to hundreds or thousands of homes an open question.

Most importantly, the current design assumes agents are perfectly cooperative and ignores financial incentives. In the real world, homeowners will want to be compensated for their surplus energy. The authors note that integrating dynamic pricing schemes to motivate self-interested agents to share energy is a critical avenue for future research.

Summary updated

BibTeX
@inproceedings{prasad2019multi,
  author = {Amit Prasad and Ivana Dusparic},
  title = {{Multi-agent Deep Reinforcement Learning for Zero Energy Communities}},
  booktitle = {ISGT Europe},
  year = {2019},
  doi = {10.1109/isgteurope.2019.8905628},
}
Figure