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

Institutions

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

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

PyPESOL: The Python P2P Energy Sharing Optimization Library

Marina Papatriantafilou, Romaric Duvignau, Vincenzo Gulisano
Smart Grid Energy Management
article

PyPESOL: The Python P2P Energy Sharing Optimization Library

Marina Papatriantafilou, Romaric Duvignau, Vincenzo Gulisano
article en

Abstract

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.

Chalmers University of Technology (SE), University of Gothenburg (SE)
Energimyndigheten, Göteborg Energi
Affordable and clean energy
Openalex Percentile: Top 88%
Smart Grid Energy Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.