Designing Fairness in Autonomous Peer-to-peer Energy Trading

Varsha Behrunani, Andrew Irvine, Giuseppe Belgioioso, Philipp Heer, John Lygeros, Florian Dörfler

Abstract

As decentralized energy grids evolve, peer-to-peer (P2P) trading between "prosumers" offers a path toward increased efficiency and reduced costs. However, arbitrary pricing mechanisms often lead to unequal benefit distribution or scenarios where participants are financially penalized for trading. This paper proposes a bilevel game-theoretic framework and a privacy-preserving price mediation protocol designed to ensure both individual rationality—guaranteeing that every participant benefits—and network-wide fairness.

Introduction

The transition toward a decentralized grid is driven by the rise of "energy hubs"—buildings or clusters equipped with local generation (solar), storage (batteries), and flexible loads (heat pumps). While these hubs can theoretically trade energy with neighbors to reduce peak demand and costs, the lack of a fair pricing mechanism remains a significant barrier to adoption. Without careful design, a hub might find that the cost of participating in a P2P market exceeds the cost of simply purchasing power from the main grid. This paper addresses the challenge of designing trading prices that are both locally beneficial and socially equitable.

The Fairness Challenge in P2P Trading

In a naive P2P market, prices might be set at a flat rate or determined by simple supply-demand heuristics. This often fails to account for the diverse operational constraints of different hubs. For instance, a large industrial producer might be forced to subsidize a smaller residential consumer, or a hub with significant battery capacity might find its operational flexibility exploited without adequate compensation.

To ensure long-term participation, a market must satisfy individual rationality: every participant must be better off (or at least no worse off) than they would be in isolation. Beyond mere participation, the authors argue for fairness, defined as the equitable distribution of the total economic surplus generated by the network.

Methodology: A Bilevel Game Framework

The authors model the P2P interaction as a hierarchical (bilevel) game that separates physical energy dispatch from financial settlement.

1. The Lower Level: Economic Dispatch

At the lower level, each hub solves a local cost-minimization problem. This involves optimizing the use of Combined Heat and Power (CHP) units, boilers, batteries, and heat pumps. The interaction between hubs is modeled as a noncooperative game. The goal is to reach a Variational Nash Equilibrium (VNE), a state where no hub can further reduce its costs by unilaterally changing its energy dispatch or trading strategy, given the strategies of others.

2. The Upper Level: Fairness Design

The upper level introduces a "price mediator" whose role is to adjust trading prices to minimize a specific fairness metric: the sample variance of the hubs' normalized cost reductions. By minimizing this variance, the mediator ensures that the percentage of savings achieved is roughly equal across all participants, regardless of their size or generation capacity.

The Price Independence Lemma

A core theoretical contribution of this work is the Price Independence Lemma. The authors prove that in this specific market model, the optimal physical energy trades (the actual kilowatts moved between hubs) are independent of the trading prices. Prices serve exclusively as a mechanism for redistributing the financial surplus. This insight allows the complex bilevel problem to be solved sequentially, significantly reducing computational overhead.

Privacy-Preserving Implementation

To deploy this framework in the real world, the authors propose a Semi-decentralized Price Mediation Protocol based on the Alternating Direction Method of Multipliers (ADMM). This approach respects the privacy of individual hubs:

  • Local Autonomy: Hubs never share internal cost functions, battery capacities, or specific operational constraints.
  • Limited Communication: Hubs only share their local estimates of trades and their normalized cost reductions with mediators.
  • Distributed Mediation: Instead of a single central authority, multiple mediators handle specific trades, while a central agent broadcasts only the average network-wide savings to guide the fairness adjustment.

Experimental Validation

The framework was validated using a numerical simulation of a 3-hub network with diverse profiles:

  • Hub 1: A large industrial hub with high production capacity (CHP and solar).
  • Hub 2: A medium-sized hub.
  • Hub 3: A small residential hub with a heat pump and solar.

The simulation utilized realistic 24-hour demand and weather profiles. The results highlighted the failures of naive pricing, where some hubs initially saw cost increases despite the network as a whole benefiting. However, using the proposed Price Mediation Mechanism, the system converged to a fair state. All three hubs achieved a nearly identical cost reduction of approximately 2.5%, successfully distributing the total social welfare gain across the network.

Conclusion and Future Work

This research demonstrates that mathematical fairness can be engineered into autonomous energy markets without sacrificing individual incentives or privacy. By decoupling physical dispatch from price-based redistribution, the proposed framework ensures that P2P trading is a "win-win" for all participants.

Future research will focus on addressing the limitations of the current model, specifically by integrating forecast uncertainties for weather and demand. Additionally, the authors plan to incorporate more complex network constraints, such as voltage limits and line losses, to ensure the framework's robustness in large-scale distribution power systems.

Summary updated

BibTeX
@misc{behrunani2023designing,
  author = {Varsha Behrunani and Andrew Irvine and Giuseppe Belgioioso and Philipp Heer and John Lygeros and Florian Dörfler},
  title = {{Designing Fairness in Autonomous Peer-to-peer Energy Trading}},
  year = {2023},
  eprint = {2302.04771},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.04771},
}
Figure