PyPESOL: The Python P2P Energy Sharing Optimization Library
We present the first public release of PyPESOL: the Python P2P Energy Sharing Optimization Library.PyPESOL is a lightweight, modular, and flexible framework designed for cost optimization in peer-topeer energy sharing scenarios.It supports both single-user optimization and multi-user coordination, including automatic group formation.Users provide input data such as (forecasted or historical) electricity consumption, time-varying prices, solar generation profiles, and battery or PV capacities.Based on configurable system models (including different tariff schemes and loss assumptions), PyPESOL computes optimal battery usage decisions for individuals or groups.To enable scalable group formation, the library implements efficient greedy algorithms to partition users into energy communities.To the best of our knowledge, PyPESOL is the first publicly available framework that combines flexibility, efficiency, and scalability for P2P energy sharing optimization.Importantly, PyPESOL is also open-source: https://github.com/dcs-chalmers/pypesol.
Authors
- Marina Papatriantafilou (ORCID: https://orcid.org/0000-0001-9094-8871)
- Romaric Duvignau (ORCID: https://orcid.org/0000-0003-1268-9311)
- Vincenzo Gulisano
Institutions
- Chalmers University of Technology (SE)
- University of Gothenburg (SE)
Publication Details
- Published
- 2025-06-16
- DOI
- https://doi.org/10.1145/3679240.3734691
- Primary Topic
- Smart Grid Energy Management
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Energimyndigheten
- Göteborg Energi