Two-Layer Optimal Scheduling Model of Microgrid Considering Demand Response Based on Improved Nutcracker Optimization Algorithm
Abstract
:1. Introduction
2. Microgrid Architecture
3. Price-Based Demand Response Model Based on User Compensation
3.1. Demand Response Model
3.2. Demand Response Model Constraints
4. Bilevel Optimal Scheduling Model for Microgrids
4.1. Upper Optimization Model
4.2. Lower Optimization Model
5. Improved Nutcracker Optimization Algorithm
5.1. NOA
5.2. INOA
5.3. Performance Comparison
6. Calculus Analysis
6.1. Optimization Process
- (1)
- Upper Layer Model: This layer involves users in demand response adjustments through TOU pricing. The objective is to obtain the optimal user load for each period by minimizing the user’s power purchase cost and maximizing user satisfaction;
- (2)
- Lower Layer Model: In this layer, the constraints (16) to (20) and the objective function (10) are used to generate the initial population for each power generation unit. The optimal individual is then determined through INOA iterations.
6.2. Parameter Setting
6.3. Result Analysis
7. Conclusions
- (1)
- The convergence and box plots of the CEC2022 test function show that the improvement of the nutcracker optimization algorithm using chaotic sequence population initialization, hybrid butterfly optimization algorithm local search, and adaptive t-distribution combined with dynamic selection is superior to NOA, DOB, PSO, GWO, and SSA in terms of accuracy, convergence speed, and algorithmic stability. This verifies the superiority of the improved algorithm;
- (2)
- User participation in demand response can achieve peak shaving and valley filling on the load curve, enhance the consumption of wind and solar energy, and reduce the output of micro-gas turbines and fuel cells and the interaction with the main power grid;
- (3)
- Based on the user load adjustment situation, a time-of-use tariff and incentive compensation mechanism is proposed, which encourages users to participate in the PDR program while ensuring user satisfaction;
- (4)
- The optimal scheduling strategy presented in this paper reduces the operating cost of microgrid generation and the cost for users simultaneously, maximizing the benefits for both the generation side and the user side in the context of “dual-carbon” goals.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Dai, B.; Wang, H.; Li, B.; Li, C.; Tan, Z. Capacity model and optimal scheduling strategy of multi-microgrid based on shared energy storage. Energy 2024, 306, 132472. [Google Scholar] [CrossRef]
- Lyu, Z.; Yang, X.; Zhang, Y.; Zhao, J. Bi-level optimal strategy of islanded multi-microgrid systems based on optimal power flow and consensus algorithm. Energies 2020, 13, 1537. [Google Scholar] [CrossRef]
- Dashtdar, M.; Flah, A.; Hosseinimoghadam, S.M.S.; Kotb, H.; Jasińska, E.; Gono, R.; Leonowicz, Z.; Jasiński, M. Optimal operation of microgrids with demand-side management based on a combination of genetic algorithm and artificial bee colony. Sustainability 2022, 14, 6759. [Google Scholar] [CrossRef]
- Zhang, D.; Zhu, H.; Zhang, H.; Goh, H.H.; Liu, H.; Wu, T. Multi-objective optimization for smart integrated energy system considering demand responses and dynamic prices. IEEE Trans. Smart Grid 2021, 13, 1100–1112. [Google Scholar] [CrossRef]
- He, W.; Guo, L.; Yang, W.; Lin, X.; Wei, F.; Dawoud, S.M. Co-optimization strategy of island distribution grid and time-of-use pricing considering the time response characteristics of multiple interruptible loads. IEEE Access 2024, 12, 89647–89659. [Google Scholar] [CrossRef]
- Zhang, N.; Yang, N.-C.; Liu, J.-H. Optimal time-of-use electricity price for a microgrid system considering profit of power company and demand users. Energies 2021, 14, 6333. [Google Scholar] [CrossRef]
- Rana, M.J.; Zaman, F.; Ray, T.; Sarker, R. EV hosting capacity enhancement in a community microgrid through dynamic price optimization-based demand response. IEEE Trans. Cybern. 2022, 53, 7431–7442. [Google Scholar] [CrossRef]
- Phommixay, S.; Doumbia, M.L.; Cui, Q. A two-stage two-layer optimization approach for economic operation of a microgrid under a planned outage. Sustain. Cities Soc. 2021, 66, 102675. [Google Scholar] [CrossRef]
- Zhao, D.; Zhang, C.; Ning, Y.; Huo, Y. Real-Time Economic Dispatching for Microgrids Based on Flexibility Envelopes. Processes 2024, 12, 2544. [Google Scholar] [CrossRef]
- Bin, L.; Shahzad, M.; Javed, H.; Muqeet, H.A.; Akhter, M.N.; Liaqat, R.; Hussain, M.M. Scheduling and sizing of campus microgrid considering demand response and economic analysis. Sensors 2022, 22, 6150. [Google Scholar] [CrossRef] [PubMed]
- Hwang Goh, H.; Shi, S.; Liang, X.; Zhang, D.; Dai, W.; Liu, H.; Yuong Wong, S.; Agustiono Kurniawan, T.; Chen Goh, K.; Leei Cham, C. Optimal energy scheduling of grid-connected microgrids with demand side response considering uncertainty. Appl. Energy 2022, 327, 120094. [Google Scholar] [CrossRef]
- Zhou, B.; Xia, J.; Yang, D.; Li, G.; Xiao, J.; Cao, J.; Bu, S.; Littler, T. Multi-time scale optimal scheduling model for active distribution grid with desalination loads considering uncertainty of demand response. Desalination 2021, 517, 115262. [Google Scholar] [CrossRef]
- Abdolrasol, M.G.; Mohamed, R.; Hannan, M.A.; Al-Shetwi, A.Q.; Mansor, M.; Blaabjerg, F. Artificial neural network based particle swarm optimization for microgrid optimal energy scheduling. IEEE Trans. Power Electron. 2021, 36, 12151–12157. [Google Scholar] [CrossRef]
- Rana, M.J.; Zaman, F.; Ray, T.; Sarker, R. Heuristic enhanced evolutionary algorithm for community microgrid scheduling. IEEE Access 2020, 8, 76500–76515. [Google Scholar] [CrossRef]
- Li, L.-L.; Shen, Q.; Tseng, M.-L.; Luo, S. Power system hybrid dynamic economic emission dispatch with wind energy based on improved sailfish algorithm. J. Clean. Prod. 2021, 316, 128318. [Google Scholar] [CrossRef]
- Wang, Q.-Y.; Lv, X.-L.; Zeman, A. Optimization of a multi-energy microgrid in the presence of energy storage and conversion devices by using an improved gray wolf algorithm. Appl. Therm. Eng. 2023, 234, 121141. [Google Scholar] [CrossRef]
- Dong, H.; Fu, Y.; Jia, Q.; Wen, X. Optimal dispatch of integrated energy microgrid considering hybrid structured electric-thermal energy storage. Renew. Energy 2022, 199, 628–639. [Google Scholar] [CrossRef]
- Fang, J.; Li, Y.; Zou, H.; Ma, H.; Wang, H. Optimal Scheduling of Microgrids Considering Offshore Wind Power and Carbon Trading. Processes 2024, 12, 1278. [Google Scholar] [CrossRef]
- Zhao, M.; He, Y.; Tian, Y.; Sun, K.; Jiao, L.; Wang, H. Capacity Optimization of Wind–Solar–Storage Multi-Power Microgrid Based on Two-Layer Model and an Improved Snake Optimization Algorithm. Electronics 2024, 13, 4315. [Google Scholar] [CrossRef]
- Vahedipour-Dahraie, M.; Rashidizadeh-Kermani, H.; Anvari-Moghaddam, A. Risk-based stochastic scheduling of resilient microgrids considering demand response programs. IEEE Syst. J. 2020, 15, 971–980. [Google Scholar] [CrossRef]
- Daneshvar, M.; Mohammadi-Ivatloo, B.; Zare, K.; Asadi, S. Two-stage robust stochastic model scheduling for transactive energy based renewable microgrids. IEEE Trans. Ind. Inform. 2020, 16, 6857–6867. [Google Scholar] [CrossRef]
- Li, J.; Zhong, J.; Wang, K.; Luo, Y.; Han, Q.; Tan, J. Research on Multi-Objective Optimization Model of Industrial Microgrid Considering Demand Response Technology and User Satisfaction. Energy Eng. 2023, 120, 869–884. [Google Scholar] [CrossRef]
- Li, G.; Lin, X.; Kong, L.; Xia, W.; Yan, S. Enhanced bi-level optimal scheduling strategy for distribution network with multi-microgrids considering source-load uncertainties. Front. Energy Res. 2024, 12, 1413935. [Google Scholar]
- Abdel-Basset, M.; Mohamed, R.; Jameel, M.; Abouhawwash, M. Nutcracker optimizer: A novel nature-inspired metaheuristic algorithm for global optimization and engineering design problems. Knowl.-Based Syst. 2023, 262, 110248. [Google Scholar] [CrossRef]
- Zhang, Y.; Zhou, H.; Xiao, L.; Zhao, G. Research on economic optimal dispatching of microgrid cluster based on improved butterfly optimization algorithm. Int. Trans. Electr. Energy Syst. 2022, 2022, 7041778. [Google Scholar] [CrossRef]
- Yang, Q.; Dong, N.; Zhang, J. An enhanced adaptive bat algorithm for microgrid energy scheduling. Energy 2021, 232, 121014. [Google Scholar] [CrossRef]
- Yu, M.; Xu, J.; Liang, W.; Qiu, Y.; Bao, S.; Tang, L. Improved multi-strategy adaptive Grey Wolf Optimization for practical engineering applications and high-dimensional problem solving. Artif. Intell. Rev. 2024, 57, 277. [Google Scholar] [CrossRef]
- Hossain, M.A.; Chakrabortty, R.K.; Ryan, M.J.; Pota, H.R. Energy management of community energy storage in grid-connected microgrid under uncertain real-time prices. Sustain. Cities Soc. 2021, 66, 102658. [Google Scholar] [CrossRef]
- Mishra, S.; Shaik, A.G. Solving bi-objective economic-emission load dispatch of diesel-wind-solar microgrid using African vulture optimization algorithm. Heliyon 2024, 10, e24993. [Google Scholar] [CrossRef]
- Karimi, H.; Jadid, S. Two-stage economic, reliability, and environmental scheduling of multi-microgrid systems and fair cost allocation. Sustain. Energy Grids Netw. 2021, 28, 100546. [Google Scholar] [CrossRef]
Type | Corresponding Time Period | Purchased Electricity/(yuan·kW−1·h−1) | Electricity Sale /(yuan·kW−1·h−1) |
---|---|---|---|
Peak Hours | 9:00–11:00, 18:00–22:00 | 1.1 | 0.83 |
Weekday Period | 7:00–8:00, 12:00–17:00 | 0.83 | 0.65 |
Valley Time | 23:00–6:00 | 0.49 | 0.40 |
Microgrid Units | Parameter Lower Limit/kW | Parameter Upper Limit /kW | Running Cost Factor /(yuan·kW−1) |
---|---|---|---|
WT | 0 | 45 | 0.298 |
PV | 0 | 35 | 0.01 |
MT | 0 | 65 | 0.031 |
FC | 0 | 50 | 0.087 |
BAT | −20 | 20 | 0.0012 |
Quantitative/kWh | State of Charge | Charging Power | Discharge Power | ||
---|---|---|---|---|---|
Initial | Minimal | Greatest | |||
20 | 0.5 | 0.2 | 0.8 | 0.9 | 0.9 |
Demand Side | User Satisfaction/% | Total Cost of Electricity Purchases/Yuan |
---|---|---|
Non-participation PDR | 100 | 1905.294 |
Participation PDR | 96.42 | 1425.816 |
Demand-Side Strategy | Total Cost of Electricity Purchases /yuan |
---|---|
Non-participation PDR | 1412.12 |
Participation PDR | 1328.59 |
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
Zeng, B.; Hao, S.; He, D.; Li, H.; Zhou, Y.; Jin, Z.; Yang, X.; Xie, Y. Two-Layer Optimal Scheduling Model of Microgrid Considering Demand Response Based on Improved Nutcracker Optimization Algorithm. Processes 2025, 13, 585. https://doi.org/10.3390/pr13020585
Zeng B, Hao S, He D, Li H, Zhou Y, Jin Z, Yang X, Xie Y. Two-Layer Optimal Scheduling Model of Microgrid Considering Demand Response Based on Improved Nutcracker Optimization Algorithm. Processes. 2025; 13(2):585. https://doi.org/10.3390/pr13020585
Chicago/Turabian StyleZeng, Bing, Shitao Hao, Dilin He, Haoran Li, Yu Zhou, Zihan Jin, Xiaopin Yang, and Yunmin Xie. 2025. "Two-Layer Optimal Scheduling Model of Microgrid Considering Demand Response Based on Improved Nutcracker Optimization Algorithm" Processes 13, no. 2: 585. https://doi.org/10.3390/pr13020585
APA StyleZeng, B., Hao, S., He, D., Li, H., Zhou, Y., Jin, Z., Yang, X., & Xie, Y. (2025). Two-Layer Optimal Scheduling Model of Microgrid Considering Demand Response Based on Improved Nutcracker Optimization Algorithm. Processes, 13(2), 585. https://doi.org/10.3390/pr13020585