Deep Learning-Based Optimal Sizing of a Grid-Tied Microgrid Under Real-Time Pricing
Journal article, 2026

This paper presents a novel optimal sizing model for a grid-tied microgrid operating under real-time pricing (RTP) for electricity trading with the main grid. The model determines the optimal capacities of solar photovoltaic (PV), wind turbine (WT), battery energy storage (BES) and inverter using a deep reinforcement learning approach. A double deep Q-network (DDQN) is proposed to solve the complex sizing problem efficiently. The sizing model incorporates a rule-based energy management strategy, where the average of day-ahead electricity price forecasts is used to guide the battery's state of charge (SoC) decisions. Although the model is designed to be generic, a residential building in Australia is used as a case study to validate its practical applicability. Numerical results demonstrate that the proposed method under RTP conditions achieves a lower net present cost (NPC) of electricity compared to existing sizing models from previous studies. The effectiveness and robustness of the proposed deep learning-based approach are further confirmed through comparative analysis with other machine learning techniques and metaheuristic algorithms.

deep reinforcement learning

microgrid design

battery storage plants

Author

Rahmatollah Khezri

Chalmers, Electrical Engineering, Electric Power Engineering

Peyman Razmi

University of Vaasa

Amin Mahmoudi

Flinders University

Mohammad Hassan Khooban

Aarhus University

IET Smart Grid

25152947 (eISSN)

Vol. 9 1 e70055

Subject Categories (SSIF 2025)

Other Electrical Engineering, Electronic Engineering, Information Engineering

Energy Systems

Control Engineering

Areas of Advance

Energy

DOI

10.1049/stg2.70055

More information

Latest update

4/21/2026