Optimization of a domestic microgrid equipped with solar panel and battery: Model Predictive Control and Stochastic Dual Dynamic Programming approaches

François Pacaud, Pierre Carpentier, Jean‐Philippe Chancelier, Michel De LaraEnergy 2022 · DOI

Introduction

Managing domestic energy systems has become increasingly complex with the integration of distributed energy resources (DERs) like photovoltaic (PV) panels and battery energy storage systems (BESS). The primary objective is to balance intermittent supply with stochastic demand while minimizing operational costs. This paper benchmarks two advanced optimization strategies: Model Predictive Control (MPC) and Stochastic Dual Dynamic Programming (SDDP).

The Domestic Microgrid Challenge

A domestic microgrid involves managing various energy "stocks"—such as batteries, hot water tanks, and the thermal mass of the building—against "flows" like solar production and household demand. The inherent uncertainty in weather patterns and human behavior makes deterministic planning difficult.

Schematic representation of the domestic microgrid energy flows and components.

As shown in the system diagram, the energy management system (EMS) must coordinate grid interaction ($f^{ne}$), battery usage ($f^b$), solar production ($\phi^{pv}$), and various thermal and electrical demands ($d^{el}, d^{hw}, f^t, f^h$). The challenge lies in the "out-of-sample" performance: how well a strategy handles reality when it differs from the forecast.

Mathematical Modeling and Control Strategies

The study utilizes a sophisticated R6C2 thermal model (6 resistances, 2 capacitors) to account for the building's structure itself as a form of energy storage. To manage this system, the authors define a rigorous set of physical variables, decision variables, and mathematical mappings.

Comprehensive list of abbreviations, physical variables, decision variables, and mathematical mappings used in the optimization models.

The control strategies compared are:

  1. Rule-Based Policy: A baseline "greedy" logic (e.g., charging the battery whenever solar is available).
  2. Model Predictive Control (MPC): A deterministic approach that solves an optimization problem over a 24-hour horizon using point forecasts. While intuitive, it often "overfits" to the average scenario, leaving the system vulnerable to demand spikes.
  3. Stochastic Dual Dynamic Programming (SDDP): A stochastic approach that considers the probability distribution of future uncertainties. SDDP computes "value functions" offline to guide online decision-making, making it robust to a wide range of possible futures.

Benchmarking Methodology

A rigorous out-of-sample testing framework was employed to ensure fair comparison. The models were trained on 1,000 scenarios and assessed on a separate set of 1,000 "assessment scenarios." Data included real-world meteorological measurements from Météo France (2015) and demand profiles generated via the StRoBe (Stochastic Residential Occupancy Behavior) software.

Key Results and Insights

The results highlight a significant performance gap between deterministic and stochastic methods:

  • Cost Efficiency: Both MPC and SDDP significantly outperformed rule-based logic. However, SDDP maintained a consistent edge. In summer scenarios, SDDP was nearly 45% cheaper than MPC by better managing storage buffers.
  • Robustness: SDDP proved more reliable, outperforming MPC in 93% of summer day scenarios. Because SDDP accounts for the "tails" of the probability distribution, it fills storage more aggressively to mitigate the risk of high-cost grid purchases during unexpected demand peaks.
  • Computational Performance: Despite a 50-second offline training phase, SDDP's online execution time is just 1.5ms, making it highly suitable for real-time hardware implementation.

Conclusion

While MPC remains a popular choice due to its simplicity, this study demonstrates that SDDP provides a superior framework for domestic microgrid management by explicitly accounting for uncertainty. The ability of SDDP to coordinate multiple storage types (battery and thermal) leads to more resilient and cost-effective energy usage. Future research may explore hybrid models that combine the temporal correlation strengths of MPC with the probabilistic robustness of SDDP.

Summary updated

BibTeX
@inproceedings{pacaud2022optimization,
  author = {François Pacaud and Pierre Carpentier and Jean‐Philippe Chancelier and Michel De Lara},
  title = {{Optimization of a domestic microgrid equipped with solar panel and battery: Model Predictive Control and Stochastic Dual Dynamic Programming approaches}},
  booktitle = {Energy},
  year = {2022},
  doi = {10.1007/s12667-022-00522-7},
}
Figure