DynaG Algorithm-Based Optimal Power Flow Design for Hybrid Wind–Solar–Storage Power Systems Considering Demand Response
Abstract
1. Introduction
- By simulating celestial gravitational interactions, particle masses are dynamically correlated with multi-objective fitness metrics. Guided by gravitational acceleration, this mechanism accelerates Pareto frontier exploration, resolving convergence inefficiencies caused by multi-objective conflicts in traditional algorithms.
- The integration of the anti-noise mechanism with exponentially decaying gravitational constants, in conjunction with the sequential increase in renewable penetration from 10% to 30%, has been demonstrated to be effective in mitigating the sensitivity to fluctuating wind and solar output. This is achieved through the utilization of a sample-simulated renewable energy fluctuation model.
- This study addresses the planning redundancy problem caused by the segmentation of renewable energy penetration modeling in traditional power system planning. A dynamic coupled optimization mechanism is introduced to reflect real-world conditions, incorporating an optimal tidal current solution while accounting for the interactions between tidal quality indicators, wind and solar generation, and energy storage.
2. Multi-Objective Demand Side Response and Energy Storage Modeling
2.1. Demand Response
2.2. Objective Function and Decision Variables
2.3. Optimization Model
- (1)
- Power Balance Constraint
- (2)
- Voltage and line flow constraints
- (3)
- Reliability and supply capacity constraints
- (4)
- Capacity load ratio constraint
3. Design of DynaG
3.1. Gravitational Search Algorithm
3.2. Coordinated Optimization Strategies of DynaG Algorithm and System Model
4. Case Study
4.1. Simulation Setup and System Parameters
4.2. Analysis of Results
4.2.1. Power Balance Analysis
4.2.2. Voltage Deviation Analysis
4.2.3. Load Fluctuation Analysis
4.2.4. Network Loss Analysis
4.2.5. Analysis of Power Supply Capacity
4.2.6. Performance Evaluation of DynaG
4.2.7. Multi-Objective Optimization Performance Comparison
4.2.8. Impact of Renewable Penetration Levels on Grid Performance
- (1)
- For reliability, TR progressively increases, confirming enhanced grid redundancy at lower penetration.
- (2)
- Regarding power quality, voltage deviation linearly improves with higher conventional power share.
- (3)
- In terms of operational efficiency, load fluctuation decreases, but network losses rebound to 236.88 MWh/year at 10% penetration, resonating with Section 2.2’s conclusion on “scheduling economy deterioration under low renewables”. Overall, the 25–30% penetration range demonstrates optimal balance between cost control and technical performance.
5. Conclusions
- (1)
- Through the coordinated optimization of the multi-scenario OPF model and DynaG, the distribution network can effectively reduce network loss, compress the peak-to-valley difference, and reduce the volatility of the capacity–load ratio. This improves the voltage stability and operational economy of the system and enhances the resilience of the distribution network against renewable energy fluctuations.
- (2)
- The superior performance of DynaG in handling complex optimization problems lies in its adaptive gravitational constant adjustment strategy, constrained inertia mass updating mechanism, and integrated chaotic initialization with dynamic neighborhood search. Therefore, these enhancements are crucial to balancing global exploration and local exploitation, and to improving the diversity and convergence of solutions in high-penetration renewable energy distribution networks.
- (3)
- The paper compares the performance of five optimization algorithms. Based on a comprehensive evaluation of economic and technical indicators, the MOGSA is identified as the optimal trending scheme. Economically, MOGSA ranked just below NSGA-III, but significantly outperforms MOAOS and MOGSA. In terms of power quality, its voltage deviation is comparable to that of MOGWO and better than that of MOPSO, while network loss is comparable to those of NSGA-III. Overall, the MOMA algorithm balances the economic strength of NSGA-III, with superior power quality optimization, making it the most suitable choice for the optimal allocation of distributed energy storage in distribution networks.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Nomenclature
Abbreviations | |
BESS | battery energy storage system |
DN | distribution network |
DR | demand response |
EMS | energy management system |
GSA | gravitational search algorithm |
LCC | levelized lifecycle cost |
MESS | mobile energy storage system |
MOGWO | multi-objective grey wolf optimizer |
MOPSO | multi-objective particle swarm optimization |
NSGA-III | non-dominated sorting genetic algorithm III |
OPF | optimal power flow |
PV | photovoltaic |
RTP | real-time pricing |
SOC | state of charge |
TOU | time-of-use |
Variables | |
price fluctuation parameters | |
TOU price elasticity coefficient matrix | |
real-time price elasticity coefficient | |
load response power adjustment | |
real-time price increment signal | |
base electricity price | |
state of charge at time | |
minimum/maximum state of charge limit | |
dynamic gravitational constant | |
number of grid nodes | |
baseline load profile | |
net charging/discharging power of BESS | |
system capacity–load ratio | |
voltage magnitude at node i, time t | |
charging/discharging efficiency of BESS |
References
- Lin, W.; Wang, C.Y.; Zhang, W.J.; Liang, Z.P.; Chung, C.Y. Integration flexibility of renewable distributed energy resources in active distribution networks: A two-module data-driven characterization method. Energy 2024, 304, 132139. [Google Scholar] [CrossRef]
- Avvari, R.K.; Kumar, D.V.; Annamraju, A.K.; Reddy, N.N. A TOPSIS based multi-objective optimal power flow approach using the artificial hummingbird algorithm for renewable energy and PEV integrated system. Meas. J. Int. Meas. Confed. 2025, 256, 118337. [Google Scholar] [CrossRef]
- He, Q.Y.; Wang, J.R.; Yang, Y.B.; Xu, Q.S. Distribution network-multiple microgrids distributed optimization scheduling model based on alternating direction method of multipliers. J. Electr. Eng. 2024, 19, 62–71. (In Chinese) [Google Scholar]
- Ao, X.; Zhang, J.; Yan, R.J.; He, Y.; Long, C.Y.; Geng, X.X.; Zhang, Y.; Fan, J.Q.; Liu, T.H. More flexibility and waste heat recovery of a combined heat and power system for renewable consumption and higher efficiency. Energy 2025, 315, 134392. [Google Scholar] [CrossRef]
- He, S.T.; Bu, G.K.; Zheng, W.D.; Chen, Y.F.; Li, X.M. Bi-level uncertain reactive power planning configuration of distribution network considering SVG dynamic voltage regulation strategy. Power Syst. Technol. 2023, 47, 5158–5170. (In Chinese) [Google Scholar]
- Xu, B.; Zhang, G.Y.; Li, K.; Li, B.; Chi, H.Y.; Yao, Y. Reactive power optimization of a distribution network with high-penetration of wind and solar renewable energy and electric vehicles. Prot. Control. Mod. Power Syst. 2022, 7, 801–813. [Google Scholar] [CrossRef]
- Yang, B.; Li, J.L.; Shu, H.C.; Cai, Z.L.; Tang, B.; Huang, X.Y.; Zhu, M.M. Recent advances of optimal sizing and location of charging stations: A critical overview. Int. J. Energy Res. 2022, 46, 17899–17925. [Google Scholar] [CrossRef]
- Li, T.M.; Wang, X.J.; Dou, X.L.; Liu, S.; Si, F.Y.; He, J.Y. Research on optimal dispatch of integrated energy system based on constrained reinforcement learning. Power Syst. Prot. Control 2025, 53, 1–14. [Google Scholar]
- Li, J.L.; Yang, B.; Huang, J.X.; Guo, Z.X.; Wang, J.B.; Zhang, R.; Hu, Y.W.J.; Shu, H.C.; Chen, Y.X.; Yan, Y.F. Optimal planning of electricity hydrogen hybrid energy storage system considering demand response in active distribution network. Energy 2023, 273, 127142. [Google Scholar] [CrossRef]
- Franke, K.; Fragoso Garcia, J.; Kleinschmitt, C.; Sensfuß, F. Assessing worldwide future potentials of renewable electricity generation: Installable capacity, full load hours and costs. Renew. Energy 2024, 226, 120376. [Google Scholar] [CrossRef]
- Hu, Y.W.J.; Yang, B.; Wu, P.Y.; Wang, X.T.; Li, J.L.; Huang, Y.P.; Su, R.; He, G.B.; Yang, J.; Shi, S. Optimal planning of electric-heating integrated energy system in low-carbon park with energy storage system. J. Energy Storage 2024, 99, 113327. [Google Scholar] [CrossRef]
- Liu, J.H.; Gong, J.; Tong, B.S.; Li, S.J.; Zhang, Y.H.; Cui, S.S.; Tian, C.F.; Zhang, Y.C. Collaborative optimization method for virtual power plants and distribution networks based on distributed energy storage and photovoltaics. Electr. Power 2025, 58, 1–9. (In Chinese) [Google Scholar]
- Li, Y.Y.; Zhou, S.; Liu, J.P.; Tong, J.; Dang, J.; Yang, F.Y.; Ouyang, M.G. Multi-objective optimization of the Atkinson cycle gasoline engine using NSGA-III coupled with support vector machine and back-propagation algorithm. Energy 2023, 262, 125262. [Google Scholar] [CrossRef]
- Iqbal, M.A.; Zafar, R.; Pota, H.R. Adaptive Layers based atomic orbital search for the co-optimization of network reconfiguration with battery storage. In Proceedings of the 34th Australasian Universities Power Engineering Conference, Sydney, Australia, 20–22 November 2024. [Google Scholar]
- Zhu, X.H.; Hu, X.; Shi, N.; Zhang, K.; Zhong, S.W. Multi-layer embedded optimization of micro-grid capacity considering price and incentive/compensation coupling mechanisms. Electr. Power 2023, 56, 173–186. (In Chinese) [Google Scholar]
- Roy, A.; Dutta, S.; Bhattacharya, A.; Biswas, S.; Roy, P.K. LFC based OPF with renewable energy, BESS and FOPID controller using QODTBO algorithm. J. Energy Storage 2025, 115, 115782. [Google Scholar] [CrossRef]
- Zadehmohammadi, F.; Sharifzadeh, H. A multiple choice relaxation model to solve the AC optimal power flow. Int. J. Electr. Power Energy Syst. 2025, 166, 110533. [Google Scholar] [CrossRef]
- Nour, A.M.M.; Helal, A.A.; El-Saadawi, M.M.; Hatata, A.Y. Voltage imbalance mitigation in an active distribution network using decentralized current control. Prot. Control Mod. Power Syst. 2023, 8, 332–348. [Google Scholar] [CrossRef]
- Ju, Y.T.; Zhang, Z.F.; Liu, W.W.; Chen, X. Fully distributed power flow algorithm for multi-area interconnected power grids considering amplitude limit constraints. Power Syst. Prot. Control 2022, 50, 58–68. (In Chinese) [Google Scholar]
- Bian, J.Y.; Zhou, Z.; Yu, Z.F.; Wang, X.G.; Hao, G.F.; Xie, Q. Research on grid-forming energy storage configuration optimization based on multi-scale in high proportion new energy power system. Renew. Energy 2025, 43, 839–845. [Google Scholar]
- Jiang, C.X.; Lin, Z.; Liu, C.X.; Chen, F.X.; Shao, Z.G. MADDPG-based active distribution network dynamic reconfiguration with renewable energy. Prot. Control Mod. Power Syst. 2024, 9, 23–38. [Google Scholar] [CrossRef]
- Chen, T.X.; Xu, X.Y.; Wang, H.; Yan, Z. Routing and scheduling of mobile energy storage in coupled transportation and power distribution networks. IEEE Trans. Transp. Electrif. 2022, 8, 2583–2594. [Google Scholar]
- Mittal, U.; Nangia, U.; Jain, N.K.; Gupta, S. Optimal power flow solutions for normal and critical loading scenarios using hybrid Rao-2 sine cosine algorithm. Comput. Electr. Eng. 2025, 123, 110230. [Google Scholar] [CrossRef]
- He, G.N.; Michalek, J.; Kar, S.; Chen, Q.X.; Zhang, D.; Whitacre, J.F. Utility-scale portable energy storage systems. Joule 2020, 5, 379–392. [Google Scholar] [CrossRef]
- Chowdhury, M.M.U.; Kamalasadan, S.; Paudyal, S. A Second-order cone programming (SOCP) based optimal power flow (OPF) model with cyclic constraints for power transmission systems. IEEE Trans. Power Syst. 2024, 39, 1032–1043. [Google Scholar] [CrossRef]
- Jia, R.R.; Inaolaji, A.; Biswas, B.D.; Suresh, A.; Dubey, A.; Paudyal, S. Distribution grid optimal power flow (D-OPF): Modeling, analysis, and benchmarking. IEEE Trans. Power Syst. 2023, 38, 3654–3668. [Google Scholar]
- Lee, S.Y.; Prabawa, P.; Choi, D.H. Joint peak power and carbon emission shaving in active distribution systems using carbon emission flow-based deep reinforcement learning. Appl. Energy 2025, 379, 124944. [Google Scholar] [CrossRef]
- Le Franc, A.; Lasserre, J.-B.; Ruiz, M.; Panciatici, P. Minimal sparsity for second-order moment-SOS relaxations of the AC-OPF problem. IEEE Trans. Power Syst. 2024, 39, 5408–5415. [Google Scholar] [CrossRef]
- Yan, N.; Ma, G.C.; Li, X.J. Low-carbon economic dispatch method of park integrated energy system considering cross-seasonal energy storage. High Volt. Eng. 2023, 49, 4182–4191. [Google Scholar]
- Peng, H.Y.; Yan, M.Y.; Zhou, Y.J. Optimal power flow of hydrogen-electric integrated energy system based on dimensionality reduction projection. Autom. Electr. Power Syst. 2025, 49, 169–178. (In Chinese) [Google Scholar]
- Fan, J.Q.; Yan, R.J.; He, Y.; Zhang, J.; Zhao, W.X.; Liu, M.S.; An, S.; Ma, Q.F. Stochastic optimization of combined energy and computation task scheduling strategies of hybrid system with multi-energy storage system and data center. Renew. Energy 2025, 242, 122466. [Google Scholar] [CrossRef]
- Xiao, J.; Zhou, Y.P.; She, B.X.; Bao, Z.Y. A General Simplification and Acceleration Method for Distribution System Optimization Problems. Prot. Control Mod. Power Syst. 2024, 9, 23–38. [Google Scholar] [CrossRef]
- Li, J.; Lu, J.Q.; Tang, T.; Lou, J.G. A two-timescale neurodynamic algorithm for optimal power flow problem of radial networks. Inf. Sci. 2025, 700, 121775. [Google Scholar] [CrossRef]
- Meng, H.; Jia, H.J.; Xu, T.; Wei, W.; Wu, Y.H.; Liang, L.M.; Cai, S.Q.; Liu, Z.Z.; Wang, R.J.; Li, M.C. Optimal configuration of cooperative stationary and mobile energy storage considering ambient temperature: A case for Winter Olympic Game. Appl. Energy 2022, 325, 119889. [Google Scholar] [CrossRef]
- Zheng, X.; Wang, H.; Chen, S.; Zhao, J.T.; Zhang, X.R.; Wei, Z.Y. Research on distributed energy sharing between distribution network and PV-storage-charging microgrid based on hybrid game model. Distrib. Util. 2025, 42, 67–75. (In Chinese) [Google Scholar]
- Shen, R.; Cheng, Q.; Chen, Y.C.; Lu, Z.H.; Mo, X.; Wu, L.L. Optimal scheduling control of V2G charging piles and smart transformer district energy storage considering carbon emissions. Distrib. Util. 2025, 42, 59–66. (In Chinese) [Google Scholar]
- Yuan, L.T.; Sun, Y.N.; Liu, Z.; Shao, C.F.; Liu, J.B. Reactive power influence and optimization of low-voltage distributed photovoltaics in distribution networks based on power flow turning points. Shandong Electr. Power Technol. 2023, 50, 11–19+41. (In Chinese) [Google Scholar]
- Khan, M.K.; Kauhaniemi, K.; Khan, H.S. Optimizing smart inverter control for improved distribution network hosting capacity: A model predictive control approach. Int. J. Electr. Power Energy Syst. 2025, 165, 110472. [Google Scholar] [CrossRef]
- Wahby, G.; Manrawy, I.I.M.; Bouallegue, B.; El-Gaafary, A.A.M.; Elbaset, A.A. Enhancing conventional power grids: Analyzing the impact of renewable distributed generation integration using PSO in the 118-bus IEEE system. Int. J. Energy Res. 2025, 2025, 3601747. [Google Scholar] [CrossRef]
- Li, J.Z.; Xu, B.; Li, Z.; Zhang, K. Energy storage optimization and control method based on COA algorithm and PSO-GSA algorithm. Distrib. Util. 2025, 42, 40–47. (In Chinese) [Google Scholar]
Technical Specifications Table | |||
---|---|---|---|
Parameter | Value | Parameter | Value |
WT installed capacity | 0.5 MW/unit | SOC range | 0.1–0.9 |
PV installed capacity | 1.6 MW/unit | Charge/discharge efficiency | 0.96, 1/0.96 |
Wind power penetration coefficient | 0.897 | Monte Carlo simulation runs | 100 |
PV penetration coefficient | 0.296 | Single line failure probability | 0.01 |
BESS capacity range | 0–4 MWh | BESS power range | −4~4 MW |
Economic Parameters Table | |||
Valley electricity price | (1:00–6:00, 23:00–24:00): 290.5 CNY/MWh | Peak electricity price | (11:00–13:00, 18:00–22:00): 1443.5 CNY/MWh |
Flat electricity price [39] (7:00–10:00, 14:00–17:00): 1023.0 CNY/MWh |
Algorithm | Parameter | Value | Parameter Function |
---|---|---|---|
Common parameters | Maximum iterations | 200 | Ensure algorithm convergence under 30% renewable penetration; adapt to 8-dimensional OPF decision variables in IEEE 33-bus system. |
Population size | 20 | ||
DynaG and MOGSA [15] | Initial gravitational constant | 100 | Cover output ranges of WT/PV (0–1.6 MW) and BESS; guarantee global exploration in early iterations. |
Decay coefficient | 20 | Control exponential decay of . | |
Initial neighborhood radius | 0.2 | Cover 20% of decision space; maintain 3–5 neighborhood particles per node; lower CLR volatility. | |
Radius decay coefficient | 20 | Decay neighborhood radius synchronously with ; focus search on optimal regions. | |
Constrained mass factor | 10−6 | Prevent numerical collapse in winter high-load scenarios; ensure stable particle mass calculation. | |
NSGA-III [13] | Crossover probability | 0.8 | Enhance chromosome diversity for OPF multi-objective conflicts; coordinate with 0.02 mutation rate to avoid Pareto clustering. |
Mutation rate | 0.02 | Stabilize economic objective; mitigate solution disturbance. | |
MOPSO [40] | Mutation probability | 0.3 | Reduce ±5% penetration confidence interval fluctuation. |
Inertia weight | 0.7 | Enhance global search; adapt to WT output fluctuations. | |
Individual learning factor | 1.5 | Strengthen particle memory of historical optimal solutions; improve voltage stability. | |
Swarm learning factor | 1.5 | Guide particles to global optimal; lower LCC. | |
MOAOS [14] | Encircling coefficient | 2 | Cover PV output fluctuations; improve renewable energy accommodation |
Chasing coefficient | 1 | Reduce solution oscillation; stabilize voltage deviation. | |
Attacking coefficient | 0.5 | Prevent solutions from exceeding feasible regions; maintain constraint compliance. | |
Decay coefficient | 0.99 | Maintain exploration range for seasonal load adaptation; ensure stable search. |
Algorithm | Annual Costs (CNY Million/Year) | Voltage Deviation (p.u.) | Network Losses (MWh/Year) |
---|---|---|---|
DynaG | 51.986 | 0.0179 | 248.25 |
NSGA-III | 58.000 | 0.0184 | 250.77 |
MOPSO | 60.356 | 0.0184 | 249.29 |
MOAOS | 63.466 | 0.0190 | 263.34 |
MOGSA | 67.756 | 0.0183 | 248.93 |
Penetration Rate | Annual Costs (CNY Million/Year) | TR | CLR | Voltage Deviation (p.u.) | Load Fluctuation (MW/Day) | Network Losses (MWh/Year) |
---|---|---|---|---|---|---|
30% | 51.986 | 72.16% | 1.00 | 0.0179 | 6.9821 | 248.25 |
25% | 74.338 | 74.93% | 1.03 | 0.0196 | 6.6829 | 232.30 |
20% | 75.026 | 75.02% | 1.11 | 0.0152 | 6.3853 | 232.02 |
15% | 93.484 | 75.76% | 1.07 | 0.0140 | 6.0850 | 230.59 |
10% | 108.027 | 78.04% | 1.10 | 0.0127 | 5.7888 | 236.88 |
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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Ruan, X.; Zhang, L.; Zhou, J.; Wang, Z.; Zhong, S.; Zhao, F.; Yang, B. DynaG Algorithm-Based Optimal Power Flow Design for Hybrid Wind–Solar–Storage Power Systems Considering Demand Response. Energies 2025, 18, 4576. https://doi.org/10.3390/en18174576
Ruan X, Zhang L, Zhou J, Wang Z, Zhong S, Zhao F, Yang B. DynaG Algorithm-Based Optimal Power Flow Design for Hybrid Wind–Solar–Storage Power Systems Considering Demand Response. Energies. 2025; 18(17):4576. https://doi.org/10.3390/en18174576
Chicago/Turabian StyleRuan, Xuan, Lingyun Zhang, Jie Zhou, Zhiwei Wang, Shaojun Zhong, Fuyou Zhao, and Bo Yang. 2025. "DynaG Algorithm-Based Optimal Power Flow Design for Hybrid Wind–Solar–Storage Power Systems Considering Demand Response" Energies 18, no. 17: 4576. https://doi.org/10.3390/en18174576
APA StyleRuan, X., Zhang, L., Zhou, J., Wang, Z., Zhong, S., Zhao, F., & Yang, B. (2025). DynaG Algorithm-Based Optimal Power Flow Design for Hybrid Wind–Solar–Storage Power Systems Considering Demand Response. Energies, 18(17), 4576. https://doi.org/10.3390/en18174576