Machine Learning–Based Optimization of Energy Storage and Resale Strategy

Adrian Żurkiewicz
Published

0
  • Project creator

Machine Learning–Based Optimization of Energy Storage and Resale Strategy for Residential Photovoltaic SystemsMachine Learning–Based Optimization of Energy Storage and Resale Strategy for Residential Photovoltaic Systems

Research project focused on designing machine learning–driven algorithms for optimizing short-term (24-hour horizon) energy storage and resale strategies in residential photovoltaic systems equipped with battery storage.

Problem
Residential photovoltaic installations operate under multiple constraints: limited and time-dependent energy production, finite battery storage capacity, variable household energy consumption, and fluctuating electricity resale prices. Poor short-term planning may lead either to premature energy sales resulting in shortages for self-consumption, or excessive storage that misses optimal market prices—both significantly reducing economic efficiency and return on investment.

Approach
The system integrated multiple external data sources via APIs, including historical energy consumption, photovoltaic production, electricity market prices, and weather forecasts.
Machine learning models were trained to predict production, consumption, and price dynamics over the next 24 hours. Based on these forecasts, the system generated an optimal daily strategy defining when energy should be stored in batteries and when it should be sold back to the grid, while ensuring sufficient availability for household self-consumption.
To improve decision quality and robustness, the solution combined several ML models with a genetic algorithm responsible for dynamically optimizing model weights.

Result
The project delivered a practical decision-support tool enabling intelligent, data-driven energy storage and resale planning. The solution significantly improved the economic performance of residential photovoltaic installations while maintaining energy security for household consumption.