Distributed Energy Trading Management for Renewable Prosumers with HVAC and Energy Storage

Qing Yang, Hao Wang

Abstract: Heating, ventilating, and air-conditioning (HVAC) systems consume a large amount of energy in residential houses and buildings. Effective energy management of HVAC is a cost-effective way to improve energy efficiency and reduce the energy cost of residential users. This work develops a novel distributed method for the residential transactive energy system that enables multiple users to interactively optimize their energy management of HVAC systems and behind-the-meter batteries. Specifically, this method effectively reduces the cost of smart homes by employing energy trading among users to leverage their power usage flexibility without compromising the users' privacy. To achieve this goal, we design a distributed optimization algorithm based on the alternating direction method of multipliers (ADMM) to automatically operate the HVAC system and batteries, which minimizes the energy costs of users. Specifically, we decouple the optimization problem into a primal subproblem and a dual subproblem. The primal subproblem is solved by the users, and the dual subproblem is solved by the grid operator. Unlike the existing centralized method, our approach only uses the users' private information locally for solving the primal subproblem hence preserves the users' privacy. Using real-world data, we validate our proposed algorithm through extensive simulations in Matlab. The results demonstrate that our method effectively incentivizes the energy trading among the users to reduce users' peak load and reduce the overall energy cost of the system by 23% on average.

Introduction

Residential energy consumption is heavily driven by heating, ventilation, and air-conditioning (HVAC) systems, which often represent the largest portion of a household's utility bill. While the adoption of renewable energy sources and Battery Energy Storage Systems (BESS) provides opportunities for cost reduction, individual optimization often fails to capture the full potential of community-level energy diversity. A significant barrier to collective optimization is the "privacy vs. efficiency" deadlock: centralized controllers require sensitive user data (e.g., occupancy patterns, temperature preferences), whereas standalone management misses peer-to-peer (P2P) trading benefits. This paper presents a distributed framework that enables transactive energy trading among neighbors while maintaining strict data privacy.

System Architecture and Methodology

The proposed model treats each household as a "prosumer" equipped with renewable generation, an HVAC system, a BESS, and inflexible loads. The HVAC system is modeled considering the building's thermal inertia, effectively treating the indoor temperature as a form of virtual energy storage. By allowing the temperature to fluctuate slightly within a comfortable range, the HVAC system can shift its load to times when renewable energy is abundant or P2P prices are low.

Schematic of the prosumer energy management system for User u, illustrating the flow of energy and information between local components and the grid.

To solve the global cost-minimization problem without centralizing private data, the study employs the Alternating Direction Method of Multipliers (ADMM). This algorithm decouples the optimization into two distinct parts:

  1. Primal Subproblems: Solved locally by each user's smart meter to manage internal scheduling (HVAC and battery cycles) based on private preferences.
  2. Dual Subproblems: Solved by a coordinator (the grid operator) to facilitate market clearing for P2P trading.
The distributed ADMM-based framework showing the information path, P2P energy trading path, and payment path between users and the grid operator.

Crucially, users only exchange trading decisions (quantities to buy or sell) with the operator, keeping operational details like battery states and temperature settings local. This approach ensures that sensitive data never leaves the user's premises.

Experimental Validation

The framework was validated using a one-week simulation with real-world data:

  • Renewable & Load Data: Solar/wind profiles and residential consumption data from the Pecan Street Dataport, a benchmark for high-fidelity building energy data.
  • Environmental Context: Outdoor temperature data from Hong Kong (summer) and Los Angeles (winter).
  • Hardware Modeling: Parameters based on commercial standards, such as the Tesla Powerwall 2.

Key Results and Insights

The cooperative P2P trading method achieved an average energy cost reduction of 23% compared to standalone management. In summer simulations, savings reached 23%, while winter simulations showed a 13.4% reduction, demonstrating robustness across different climates. Individual benefits varied from 14% to 83% depending on specific renewable capacity and demand.

Beyond direct cost savings, the system achieved significant "peak shaving." By incentivizing users to trade surplus energy locally, the collective draw from the main grid was flattened, reducing peak-load charges and grid stress. The algorithm also demonstrated fast convergence, typically reaching an optimal solution within 26 iterations, making it computationally feasible for real-time smart grid applications.

Conclusion

This work demonstrates that distributed optimization via ADMM can effectively balance privacy and efficiency in residential energy markets. By leveraging thermal inertia and battery storage, prosumers can significantly reduce costs through cooperative trading. Future research will address physical power losses in distribution networks and explore the integration of blockchain technology for decentralized, trustless transaction management.

Summary updated

Abstract

Heating, ventilating, and air-conditioning (HVAC) systems consume a large amount of energy in residential houses and buildings. Effective energy management of HVAC is a cost-effective way to improve energy efficiency and reduce the energy cost of residential users. This work develops a novel distributed method for the residential transactive energy system that enables multiple users to interactively optimize their energy management of HVAC systems and behind-the-meter batteries. Specifically, this method effectively reduces the cost of smart homes by employing energy trading among users to leverage their power usage flexibility without compromising the users' privacy. To achieve this goal, we design a distributed optimization algorithm based on the alternating direction method of multipliers (ADMM) to automatically operate the HVAC system and batteries, which minimizes the energy costs of users. Specifically, we decouple the optimization problem into a primal subproblem and a dual subproblem. The primal subproblem is solved by the users, and the dual subproblem is solved by the grid operator. Unlike the existing centralized method, our approach only uses the users' private information locally for solving the primal subproblem hence preserves the users' privacy. Using real-world data, we validate our proposed algorithm through extensive simulations in Matlab. The results demonstrate that our method effectively incentivizes the energy trading among the users to reduce users' peak load and reduce the overall energy cost of the system by 23% on average.
BibTeX
@inproceedings{yang2021distributed,
  author = {Qing Yang and Hao Wang},
  title = {{Distributed Energy Trading Management for Renewable Prosumers with HVAC and Energy Storage}},
  booktitle = {Energy Reports},
  year = {2021},
  doi = {10.1016/j.egyr.2021.03.038},
}
Figure