Submitted:
08 August 2025
Posted:
13 August 2025
You are already at the latest version
Abstract

Keywords:
1. Introduction
- We develop a real-time co-simulation framework that synchronizes power grid behavior with climate variability using open-source and standards-based interfaces.
- We introduce an AI-driven control layer that learns optimal responses to climate-induced disturbances through reinforcement learning and predictive analytics.
- We formulate a resilience-aware optimization problem that captures system constraints, climate scenarios, and renewable intermittency.
- We validate the framework through a case study on a renewable microgrid subject to historical and synthetic climate extremes.
2. Related Work
2.1. Digital Twins in Renewable Energy Systems
2.2. Climate-Integrated Energy Modeling
2.3. AI for Adaptive Grid Control
2.4. Energy System Co-Simulation Platforms
2.5. Research Gaps
3. System Model and Architecture
3.1. Physical Grid Model
- is the set of buses (nodes),
- is the set of distribution lines (edges).
3.2. Renewable Generation Modeling
3.3. Climate Dynamics Model
- Ambient temperature ,
- Wind speed ,
- Precipitation ,
- Solar irradiance .
3.4. Digital Twin Co-Simulation Framework
- Power system simulator (e.g., OpenDSS),
- Climate forecast module (e.g., ERA5),
- AI-based controller.
3.5. AI-Based Control and Optimization Model
- : cost of energy losses or curtailments at time t,
- : voltage constraint violations aggregated over all nodes,
- : resilience reward based on successful mitigation after disturbances,
- : scalar weights for multi-objective balancing.
3.6. System Architecture Diagram
4. Problem Formulation
4.1. Decision Variables
- : dispatch setpoints of DERs (e.g., active/reactive power),
- : binary load shedding indicator at node i,
- : inverter voltage control angle or droop setting.
4.2. Objective Function
4.3. Power Flow Constraints
- Nodal Power Balance:
- Voltage Limits:
- Line Thermal Constraints:
4.4. Climate-Coupled Renewable Generation
4.5. Resilience Metric
5. Methodology
5.1. Co-Simulation Framework Integration
- Power Flow Simulator: Simulates grid dynamics based on nonlinear AC equations using OpenDSS.
- Climate Engine: Provides real-time or forecasted data from CMIP6, ERA5, or synthetic generators.
- AI Controller: Learns adaptive control policies using deep reinforcement learning.
5.2. AI-Based Control Policy via Deep Reinforcement Learning
- Bellman Target Update:
- Critic Loss:
- Actor Gradient:
| Algorithm 1 Climate-Adaptive Grid Control via DDPG |
|
5.3. Deployment Workflow
- Inference Cycle:
- Input: Current grid state , forecasted climate
- Compute action
- Apply to digital twin simulator
- Observe and repeat
6. Case Study and Experimental Setup
6.1. Test System Description
- Number of buses: 33,
- Number of feeders: 32,
- Base power: 100 MVA,
- Voltage level: 12.66 kV,
- Load type: static (constant PQ).
6.2. Climate Scenario Generation
- Historical Climate Data: 5 years of hourly weather data are extracted from the ERA5 reanalysis database [24].
- Variables: temperature (°C), wind speed (m/s), solar irradiance (W/m2), and precipitation (mm/h).
- Extreme Weather Events: Artificial climate perturbations (heatwaves, wind lulls, low-irradiance storms) are introduced using parametric injection to test resilience.
6.3. Load and Demand Profile
- Residential: Based on scaled household profiles with peak demand between 6–9 AM and 5–9 PM.
- Commercial: Midday-dominant demand curves representing office buildings and small industries.
- Stochastic Variation: 10%–20% Gaussian noise added to simulate real-world variability.
6.4. AI Model Hyperparameters
- Actor/critic layers: [128, 128] with ReLU activation,
- Learning rate: (actor), (critic),
- Discount factor: ,
- Replay buffer size: transitions,
- Exploration noise: Ornstein–Uhlenbeck process with .
6.5. Co-Simulation Environment
- Power System Simulator: OpenDSS (via DSSL and Python bindings),
- Climate Data Module: ERA5 via Climate Data Store (CDS) API,
- AI Controller: PyTorch (Python 3.10),
- Middleware: HELICS v3.1.0 with federate time coordination,
- Hardware: Ubuntu 22.04 server with Intel Xeon CPU and 64 GB RAM.
| Parameter Category | Value/Description |
|---|---|
| Grid and Network | |
| Test System | IEEE 33-Bus Radial Distribution Network |
| Voltage Level | 12.66 kV (Base), 100 MVA |
| Simulation Duration | 24 hours (one episode) |
| Time Resolution () | 15 minutes (96 timesteps/day) |
| Distributed Energy Resources (DERs) | |
| PV System Location | Bus 6 |
| Wind Turbine Location | Bus 18 |
| Battery Storage Location | Bus 30 |
| PV Efficiency () | 18% |
| PV Area (A) | 50 m2 |
| Wind Cut-in/Rated/Cut-out Speeds | 3 m/s, 12 m/s, 20 m/s |
| Battery Capacity | 150 kWh, 50 kW inverter rating |
| Climate Input | |
| Source | ERA5 Reanalysis Dataset (2018–2023) |
| Variables | Temperature, Wind Speed, Irradiance, Precipitation |
| Disturbance Injection | Heatwaves, Wind Lulls, Overcast Storms |
| AI Model (DDPG) | |
| Actor Network | 2 Hidden Layers [128, 128], ReLU |
| Critic Network | 2 Hidden Layers [128, 128], ReLU |
| Learning Rate (Actor/Critic) | / |
| Discount Factor () | 0.99 |
| Exploration Noise | Ornstein–Uhlenbeck () |
| Replay Buffer Size | transitions |
| Training Episodes | 2000 |
| Batch Size | 64 |
| Simulation Tools and Platform | |
| Power Flow Solver | OpenDSS via Python-DSS |
| AI Framework | PyTorch (Python 3.10) |
| Co-Simulation Middleware | HELICS v3.1.0 |
| Operating System | Ubuntu 22.04 LTS |
| Hardware | Intel Xeon 16-core, 64 GB RAM |
7. Results and Discussion
7.1. Voltage Profile Regulation
7.2. Energy Loss Reduction
7.3. AI Learning Convergence
7.4. Resilience Enhancement
7.5. DER Dispatch Profiles
7.6. Load Shedding Reduction
7.7. Multi-Objective Trade-Offs: Pareto Front
7.8. Voltage Violation Analysis
7.9. Spatiotemporal Voltage Heatmap
7.10. Battery State of Charge Trajectory
7.11. AI Policy Robustness Under Climate Perturbations
7.12. Bus-Wise Voltage Violation Frequency
7.13. Discussion of System-Wide Impact
- Voltage Stability: The AI controller consistently maintains nodal voltages within regulatory thresholds (e.g., IEEE 1547, EN 50160), thereby reducing equipment stress and enhancing asset longevity through improved voltage quality and transient suppression.
- Energy Efficiency: Through real-time optimization of DER dispatch and battery cycling, the framework significantly reduces active power losses. This improvement not only enhances network efficiency but also creates technical headroom for increased renewable hosting capacity without necessitating major infrastructure upgrades.
- AI Learning Robustness: Convergence patterns in cumulative reward trajectories validate that the reinforcement learning agent learns stable, generalizable policies under a range of stochastic climate scenarios. This confirms the viability of climate-aware AI for long-term autonomous grid control.
- Operational Resilience: The system demonstrates accelerated recovery from voltage disturbances and supply-demand mismatches during extreme weather conditions. This characteristic positions the proposed framework as a viable tool for national adaptation strategies under evolving climate risk profiles.
8. Conclusions and Future Work
- Significant improvement in voltage stability and reduction in the frequency and severity of nodal violations;
- Reduced active power losses and increased energy efficiency through optimal DER and storage dispatch;
- High policy generalization across climate perturbation scenarios, with median resilience scores consistently exceeding 0.85;
- System-wide enhancements in climate resilience, including reduced load shedding, accelerated disturbance recovery, and improved operational continuity.
Future Work
- Hardware-in-the-Loop (HIL) Integration: Coupling the digital twin with real-time simulation platforms or physical testbeds to validate control performance under hardware constraints.
- Multi-Agent Reinforcement Learning (MARL): Extending the current single-agent architecture to a distributed, multi-agent paradigm that enables localized intelligence and peer-to-peer coordination among grid edge assets.
- Cybersecurity Co-Design: Incorporating trust-aware AI agents and blockchain-based security protocols to protect the control pipeline from data spoofing and adversarial attacks.
- Socio-Technical Metrics: Integrating equity, community vulnerability, and social acceptance into the reinforcement learning reward design to guide climate justice–aligned energy transitions.
- Scalability Assessment: Evaluating the framework across multiple feeders and interconnected microgrids to assess real-time tractability and economic feasibility at scale.
References
- Zlateva, P.; Hadjitodorov, S. An Approach for Analysis of Critical Infrastructure Vulnerability to Climate Hazards. IOP Conference Series: Earth and Environmental Science 2022, 1094, 012004. [Google Scholar] [CrossRef]
- Ho, C.K.; Roesler, E.L.; Nguyen, T.A.; Ellison, J. Potential Impacts of Climate Change on Renewable Energy and Storage Requirements for Grid Reliability and Resource Adequacy. Journal of Energy Resources Technology-Transactions of The ASME 2023, pp. 1–47. [CrossRef]
- Ali, A.M.; Shaaban, M.F.; Sindi, H. Optimal Operational Planning of RES and HESS in Smart Grids Considering Demand Response and DSTATCOM Functionality of the Interfacing Inverters. Sustainability 2022, 14, 13209. [Google Scholar] [CrossRef]
- Younis, A.; Benders, R.M.J.; Ramírez, J.; de Wolf, M.; Faaij, A. Scrutinizing the Intermittency of Renewable Energy in a Long-Term Planning Model via Combining Direct Integration and Soft-Linking Methods for Colombia’s Power System. Energies 2022, 15, 7604. [Google Scholar] [CrossRef]
- Fernandes, S.V.; Joao, D.V.; Cardoso, B.B.; Martins, M.A.I.; Carvalho, E.G. Digital Twin Concept Developing on an Electrical Distribution System—An Application Case. Energies 2022, 15, 2836. [Google Scholar] [CrossRef]
- Chalal, L.; Saadane, A.; Rachid, A. Unified Environment for Real Time Control of Hybrid Energy System Using Digital Twin and IoT Approach. Sensors 2023, 23, 5646. [Google Scholar] [CrossRef] [PubMed]
- Benchekroun, A.; Davigny, A.; Hassam-Ouari, K.; Courtecuisse, V.; Robyns, B. Grid-Aware Energy Management System for Distribution Grids Based on a Co-Simulation Approach. IEEE Transactions on Power Delivery 2023, pp. 1–11. [CrossRef]
- Qi, Y.; Li, J. The Wind and Photovoltaic Power Forecasting Method Based on Digital Twins. Applied Sciences 2023, 13, 8374. [Google Scholar] [CrossRef]
- Chen, H.; Zhang, Z.; Karamanakos, P.; Rodriguez, J. Digital Twin Techniques for Power Electronics-Based Energy Conversion Systems: A Survey of Concepts, Application Scenarios, Future Challenges, and Trends. IEEE Industrial Electronics Magazine 2023, 17, 20–36. [Google Scholar] [CrossRef]
- Song, Z.; Hackl, C.M.; Anand, A.; Thommessen, A.; Petzschmann, J.; Kamel, O.Z.; Braunbehrens, R.; Kaifel, A.K.; Roos, C.; Hauptmann, S. Digital Twins for the Future Power System: An Overview and a Future Perspective. Sustainability 2023, 15, 5259. [Google Scholar] [CrossRef]
- Mahankali, R. Digital Twins and Enterprise Architecture: A Framework for Real-Time Manufacturing Decision Support. International Journal of Computer Engineering and Technology 2025, 16, 578–587. [Google Scholar] [CrossRef]
- Han, J.; Hong, Q.; Syed, M.H.; Khan, M.A.U.; Yang, G.; Burt, G.; Booth, C. Cloud-Edge Hosted Digital Twins for Coordinated Control of Distributed Energy Resources. IEEE Transactions on Cloud Computing 2023, 11, 1242–1256. [Google Scholar] [CrossRef]
- Yang, Y.; Javanroodi, K.; Nik, V.M. Climate Change and Renewable Energy Generation in Europe—Long-Term Impact Assessment on Solar and Wind Energy Using High-Resolution Future Climate Data and Considering Climate Uncertainties. Energies 2022, 15, 302. [Google Scholar] [CrossRef]
- Webster, M.; Fisher-Vanden, K.; Kumar, V.; Lammers, R.B.; Perla, J.M. Integrated Hydrological, Power System and Economic Modelling of Climate Impacts on Electricity Demand and Cost. Nature Energy 2022, 7, 163–169. [Google Scholar] [CrossRef]
- Chreng, K.; Lee, H.S.; Tuy, S. A Hybrid Model for Electricity Demand Forecast Using Improved Ensemble Empirical Mode Decomposition and Recurrent Neural Networks with ERA5 Climate Variables. Energies 2022, 15, 7434. [Google Scholar] [CrossRef]
- Salehimehr, S.; Taheri, B.; Sedighizadeh, M. Short-Term Load Forecasting in Smart Grids Using Artificial Intelligence Methods: A Survey. The Journal of Engineering 2022, 2022, 1133–1142. [Google Scholar] [CrossRef]
- Barwar, S. Artificial Intelligence Application to Flexibility Provision in Energy Management System: A Survey. In EAI/Springer Innovations in Communication and Computing; 2023; pp. 55–78. [CrossRef]
- Liu, Y.; Lu, Q.; Yu, Z.; Chen, Y.; Yang, Y. Reinforcement Learning-Enhanced Adaptive Scheduling of Battery Energy Storage Systems in Energy Markets. Energies 2024, 17, 5425. [Google Scholar] [CrossRef]
- Shojaeighadikolaei, A.; Ghasemi, A.; Jones, K.R.; Dafalla, Y.M.; Bardas, A.G.; Ahmadi, R.; Hashemi, M. Distributed Energy Management and Demand Response in Smart Grids: A Multi-Agent Deep Reinforcement Learning Framework. arXiv 2022, abs/2211.15858. [CrossRef]
- Abdoune, F.; Nouiri, M.; Cardin, O.; Castagna, P. Integration of Artificial Intelligence in the Life Cycle of Industrial Digital Twins. Advances in Control and Optimization of Dynamical Systems 2022, 55, 2545–2550. [Google Scholar] [CrossRef]
- Barbierato, L.; Mazzarino, P.R.; Montarolo, M.; Macii, A.; Patti, E.; Bottaccioli, L. A Comparison Study of Co-Simulation Frameworks for Multi-Energy Systems: The Scalability Problem. Energy Informatics 2022, 5, 1–26. [Google Scholar] [CrossRef]
- Barbierato, L.; Pons, E.; Bompard, E.F.; Rajkumar, V.S.; Palensky, P.; Bottaccioli, L.; Patti, E. Exploring Stability and Accuracy Limits of Distributed Real-Time Power System Simulations via System-of-Systems Cosimulation. IEEE Systems Journal 2023, 17, 3354–3365. [Google Scholar] [CrossRef]
- Pham, L.N.H.; Wagle, R.; Tricarico, G.; Melo, A.F.S.; Rosero-Morillo, V.A.; Shukla, A.; Gonzalez-Longatt, F. Real-Time Cyber-Physical Power System Testbed for Optimal Power Flow Study Using Co-Simulation Framework. IEEE Access 2024, 1, 150914–150929. [Google Scholar] [CrossRef]
- Tulger Kara, G.; Elbir, T. Evaluation of ERA5 and MERRA-2 Reanalysis Datasets over the Aegean Region, Türkiye. Fen-Mühendislik Dergisi 2024. [CrossRef]















Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).