Deep Reinforcement Learning Approaches the MILP Optimum of a Multi-Energy Optimization in Energy Communities
Preprint
- 1 August 2025
- preprint
- Published by MDPI AG in Preprints.org
Abstract
As energy systems transition toward high shares of variable renewable generation, local energy communities (ECs) are increasingly relevant for enabling demand-side flexibility and self-sufficiency. This shift is particularly evident in the residential sector, where the deployment of photovoltaic (PV) systems is rapidly growing. While mixed-integer linear programming (MILP) remains the standard for operational optimization and demand response in such systems, its computational burden limits scalability and responsiveness under real-time or uncertain conditions. Reinforcement learning (RL), by contrast, offers a model-free, adaptive alternative. However, its application to real-world energy system operation remains limited. This study explores the application of a Deep Q-Network to a real residential EC, which has received limited attention in prior work. The system comprises three single-family homes sharing a centralized heating system with a thermal energy storage (TES), a PV installation, and grid connection. We compare the performance of MILP and RL controllers across economic and environmental metrics. Relative to a reference scenario without TES, MILP and RL reduce energy costs by 10.06% and 8.75%, respectively, and both approaches yield lower total energy consumption and CO2-equivalent emissions. Notably, the trained RL agent achieves a near-optimal outcome while requiring only 22% of the MILP’s computation time. These results demonstrate that Double Deep Q-Learning can offer a computationally efficient and practically viable alternative to MILP for real-time control in residential energy systems.Keywords
All Related Versions
- Version 1, 2025-08-01, Preprints
- Published version: Energies, 18 (17), 4489.
This publication has 28 references indexed in Scilit:
- Centralised rehearsal of decentralised cooperation: Multi-agent reinforcement learning for the scalable coordination of residential energy flexibilityApplied Energy, 2024
- Operation optimization in large-scale heat pump systems: A scheduling framework integrating digital twin modelling, demand forecasting, and MILPApplied Energy, 2024
- Concept of net zero energy buildings (NZEB) - A literature reviewCleaner Engineering and Technology, 2022
- A reinforcement learning approach to home energy management for modulating heat pumps and photovoltaic systemsApplied Energy, 2022
- Deep reinforcement learning for home energy management system controlEnergy and AI, 2021
- An optimal home energy management system for modulating heat pumps and photovoltaic systemsApplied Energy, 2020
- Reinforcement learning for building controls: The opportunities and challengesApplied Energy, 2020
- Reinforcement learning for demand response: A review of algorithms and modeling techniquesApplied Energy, 2019
- Limits and potentials of Mixed Integer Linear Programming methods for optimization of polygeneration energy systemsEnergy Procedia, 2018
- A MILP model for integrated plan and evaluation of distributed energy systemsApplied Energy, 2010