journal article·2026-05-05Open access

Dynamic Energy Pricing and Supply–Demand Balancing in a Smart Grid with ANFIS-FOPID Controller: A Comparative Study with PID and FOPID Controllers

Zehva Yalçınöz, Ömerülfaruk Özgüven, Sevgi Gürsul Kalaç, Asım Kaygusuz

Applied Sciences· Volume 16· Issue 9

Abstract

Renewable energy sources (RESs) enable sustainable and environmentally friendly electricity generation. However, their intermittent nature makes it difficult to maintain energy balance. Smart grids (SGs) address this challenge by enabling grid control under variable demand and fluctuating generation. With the growing share of distributed generation, dynamic energy pricing has become increasingly important for sustaining the supply–demand balance in SGs. This study aims to regulate the interaction between variable demand and distributed generation in SGs using control strategies. The dynamic pricing framework was analyzed using closed-loop Proportional–Integral–Derivative (PID), Fractional-Order PID (FOPID)- and Adaptive Neuro Fuzzy Inference System (ANFIS)-based FOPID controllers. PID and FOPID parameters were tuned by pole placement with reference model matching, while the FOPID parameters in the ANFIS-FOPID structure were adaptively optimized using ANFIS. Energy supply–demand models were developed in MATLAB/Simulink, and the effects of each controller on system dynamics and energy prices were comparatively examined. The results indicate that ANFIS-FOPID achieves lower overshoot, shorter settling time, and more stable balancing performance, owing to its fractional-order flexibility and optimized parameters. In the model established in the MATLAB/Simulink environment, the controllers were evaluated based on integral of squared error (ISE), time-weighted integral absolute error (ITAE), root mean square error (RMSE), average unit energy price, price volatility, and coefficient of variation. A virtual energy storage model was added to the system. Disturbance and load change scenarios were also examined. The results showed that the ANFIS-FOPID controller provided the most balanced performance in terms of error reduction, suppression of price fluctuations, and reduction of the average unit energy price.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Frequency Control in Power Systems · Smart Grid Energy Management · Microgrid Control and Optimization

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Electrical and Electronic Engineering, Inonu University, 44280 Malatya, Turkey

Funding

Inonu University Scientific Research Projects Coordination Unit

References (97)

Show source-provided references
1. Smart Grids and Renewable Energy Systems: Perspectives and Grid Integration Challenges10.1016/j.esr.2024.101299 ↗
2. Getting Smart? Climate Change and the Electric Grid10.3390/challe4020201 ↗
3. Tanrıöven, K., Yararbaş, S., and Cengiz, H. (2011). Smart Grid, the Future Electricity Distribution Network. Proceedings of the Electrical-Electronics and Computer Symposium, Elazig, Turkey, 9–11 June 2011, Fırat University.
4. Review of Smart Grid Comprehensive Assessment Systems10.1016/j.egypro.2011.10.031 ↗
5. A Survey on Smart Metering and Smart Grid Communication10.1016/j.rser.2015.12.114 ↗
6. Alagöz, B.B. (2015). Energy Balancing in Smard Grids Under Varying Generation and Demand Conditions. [Ph.D. Thesis, Inonu University, Institute of Science].
7. Alagöz, B.B., and Kaygusuz, A. (2014). Dynamic Energy Price Control with Closed Loop Fractional Order PI Controller and Automatic Energy Supply-Demand Balancing Application in Smart Grids. Proceedings of the TOK, Kocaeli, Turkey, 11–13 September 2014, Kocaeli University.
8. Dynamic Price Control Using Pole Placement Method in Smart Grids
9. Empowering Smart Grid: A Comprehensive Review of Energy Storage Technology and Application with Renewable Energy Integration10.1016/j.est.2021.102591 ↗
10. Europe’s Energy Security: From Russian Dependence to Renewable Reliance10.1016/j.enpol.2023.113856 ↗
11. Energy Vulnerability and Resilience in the EU: Concepts, Empirics and Policy10.1007/s40812-025-00340-9 ↗
12. Energy Security and the Green Transition10.1016/j.enpol.2024.114409 ↗
13. Renewable Energy Transition in Europe in the Context of Renewable Energy Transition Processes in the World. A Review10.1016/j.heliyon.2024.e40997 ↗
14. Control Management Strategy of Stand-Alone Hybrid Power Micro-System Using Super-Capacitor
15. A Concept for Storing Utility-Scale Electrical Energy in the Form of Latent Heat10.1016/j.energy.2011.08.003 ↗
16. Distributed Real-Time Power Management for Virtual Energy Storage Systems Using Dynamic Price10.1016/j.energy.2020.119069 ↗
17. Hybrid Energy Storage Systems and Control Strategies for Stand-Alone Renewable Energy Power Systems10.1016/j.rser.2016.07.059 ↗
18. Assessing the Implications of RES Technology Mix on Curtailments, Storage Requirements and System Economics10.1016/j.apenergy.2024.125159 ↗
19. TEİAŞ (2026, April 15). TEİAŞ Üretim Kapasite Projeksiyonu 2021–2025, Available online: https://www.epdk.gov.tr/Detay/Icerik/3-0-66/elektrikuretim-kapasite-projeksiyonlari.
20. Load Forecasting, Dynamic Pricing and DSM in Smart Grid: A Review10.1016/j.rser.2015.10.117 ↗
21. Smart Pricing Scheme: A Multi-Layered Scoring Rule Application10.1016/j.eswa.2013.12.002 ↗
22. Closed Loop Elastic Demand Control by Dynamic Energy Pricing in Smart Grids10.1016/j.energy.2019.04.036 ↗
23. Demand Response Scheduling by Stochastic SCUC10.1109/TSG.2010.2046430 ↗
24. A TOU Pricing Mechanism to Promote Renewable Energy Consumption: The Case of the Western Inner Mongolia Grid in China10.1155/2017/9454358 ↗
25. The Effect of Time-of-Use Tariffs on the Demand Response Flexibility of an All-Electric Smart-Grid-Ready Dwelling10.1016/j.enbuild.2016.06.041 ↗
26. An Analysis of the Time of Use Electricity Price in the Residential Sector of Bangladesh10.1016/j.esr.2017.09.017 ↗
27. Demand Response in China10.1016/j.energy.2009.06.020 ↗
28. Peak-off-Peak Load Shifting: Are Public Willing to Accept the Peak and off-Peak Time of Use Electricity Price?10.1016/j.jclepro.2018.06.181 ↗
29. Time-of-Use Pricing Model Based on Power Supply Chain for User-Side Microgrid10.1016/j.apenergy.2019.04.076 ↗
30. Residential Peak Electricity Demand Response—Highlights of Some Behavioural Issues10.1016/j.rser.2013.04.006 ↗
31. Efficient Techniques for Residential Appliances Scheduling in Smart Homes for Energy Management Using Multiple Knapsack Problem10.1007/s13369-023-08178-w ↗
32. A Review on Price-Driven Residential Demand Response10.1016/j.rser.2018.08.003 ↗
33. Designing a Critical Peak Pricing Scheme for the profit Maximization Objective Considering Price Responsiveness of Customers10.1016/j.energy.2015.02.057 ↗
34. Is Real-Time Pricing Smart for Consumers?10.1007/s11149-021-09440-5 ↗
35. Duan, Q. (2016). A Price-Based Demand Response Scheduling Model in Day-Ahead Electricity Market. Proceedings of the IEEE Power and Energy Society General Meeting (PESGM), Boston, MA, USA, 17–21 July 2016, IEEE.10.1109/PESGM.2016.7741812 ↗
36. Danxi, L., Bo, Z., Yan, Q., and Xu, Y. (2017). Optimal Control Model of Electric Vehicle Demand Response Based on Real—Time Electricity Price. Proceedings of the IEEE 2nd Information Technology, Networking, Electronic and Automation Control Conference (ITNEC), Chengdu, China, 15–17 December 2017, IEEE.10.1109/ITNEC.2017.8285108 ↗
37. He, S., Wallace, M., Wilson, C., and Liebman, A. (2017, January 4–9). Fast Electrical Demand Optimization Under Real-Time Pricing. Proceedings of the AAAI Conference on Artificial Intelligence, San Francisco, CA, USA.10.1609/aaai.v31i1.11089 ↗
38. Alquthami, T., Milyani, A.H., Awais, M., and Rasheed, M.B. (2021). An Incentive Based Dynamic Pricing in Smart Grid: A Customer’s Perspective. Sustainability, 13.10.3390/su13116066 ↗
39. A Literature Review on Dynamic Pricing of Electricity10.1057/s41274-016-0149-4 ↗
40. Dursun, E., and Siano, P. (2019). A Dynamic Pricing Model for Turkey’s Electricity Distribution Companies in the Future Smart Grid Infrastructure. Proceedings of the Innovations in Intelligent Systems and Applications Conference, ASYU, Izmir, Turkey, 31 October–2 November 2019, IEEE.10.1109/ASYU48272.2019.8946383 ↗
41. Dynamic Pricing in Industrial Internet of Things: Blockchain Application for Energy Management in Smart Cities
42. Ahmed, R., and Amer, M. (2019). A Hardware Dynamic Pricing Based Energy Management System. Proceedings of the 4th International Conference on Power Electronics and their Applications, ICPEA, Elazig, Turkey, 25–27 September 2019, IEEE.10.1109/ICPEA1.2019.8911136 ↗
43. A Real Time Pricing Strategy for Remote Micro-Grid with Economic Emission Dispatch and Stochastic Renewable Energy Sources10.1016/j.renene.2018.05.016 ↗
44. An Integrated Multiperiod OPF Model with Demand Response and Renewable Generation Uncertainty10.1109/TSG.2015.2502723 ↗
45. Giorgio, A.D., Liberati, F., and Lanna, A. (2015, January 16–19). Real Time Optimal Power Flow Integrating Large Scale Storage Devices and Wind Generation. Proceedings of the 2015 23rd Mediterranean Conference on Control and Automation (MED), Torremolinos, Spain.
46. Zhang, D., Du, T., Yin, H., Xia, S., and Zhang, H. (2019). Multi-Time-Scale Coordinated Operation of a Combined System with Wind-Solar-Thermal-Hydro Power and Battery Units. Appl. Sci., 9.10.3390/app9173574 ↗
47. Battery Energy Storage for Enabling Integration of Distributed Solar Power Generation10.1109/TSG.2012.2190113 ↗
48. Management of Grid Connected Energy Storage Systems Employing Real-Time Energy Price10.1016/j.est.2024.112097 ↗
49. A New Multi-Document Summarisation Approach Using Saplings Growing-up Optimisation Algorithms: Simultaneously Optimised Coverage and Diversity10.1177/01655515221101841 ↗
50. A New Multi-Objective Hyperparameter Optimization Algorithm for COVID-19 Detection from X-Ray Images10.1007/s00500-024-09872-z ↗
51. A Review on Microgrid Optimization with Meta-Heuristic Techniques: Scopes, Trends and Recommendation10.1016/j.esr.2024.101298 ↗
52. Optimal Power Flow and Grid Frequency Control of Conventional and Renewable Energy Source Using Evolutionary Algorithm Based FOPID Controller10.1016/j.ref.2024.100676 ↗
53. Fractional Order PID Controllers for Collaborative Energy Management in IoT-Smart Cities: Hybrid Optimization Algorithms for Demand10.1016/j.egyr.2024.11.038 ↗
54. Fault Ride-Through Strategy for Hybrid Cascaded HVdc Systems Based on Controllable LCC
55. A Closed-Loop Energy Price Controlling Method for Real-Time Energy Balancing in a Smart Grid Energy Market10.1016/j.energy.2013.06.074 ↗
56. Khan, T., Ullah, K., Hafeez, G., Khan, I., Khalid, A., Shafiq, Z., Usman, M., and Qazi, A.B. (2020). Closed-Loop Elastic Demand Control under Dynamic Pricing Program in Smart Microgrid Using Super. Sensors, 20.10.3390/s20164376 ↗
57. Gupta, D., and Goyal, V. (2019). An Optimized Fractional Order PID Controller for Integrated Power System. Proceedings of the ICICCT 2019—System Reliability, Quality Control, Safety, Maintenance and Management, New Delhi, India, 11 May 2019, Springer.10.1007/978-981-13-8461-5_76 ↗
58. Optimal FOPID Controllers for LFC Including Renewables by Bald Eagle Optimizer
59. Daraz, A., Malik, S.A., Basit, A., Aslam, S., and Zhang, G. (2023). Modified FOPID Controller for Frequency Regulation of a Hybrid Interconnected System of Conventional and Renewable Energy Sources. Fractal Fract., 7.10.3390/fractalfract7010089 ↗
60. Mukherjee, M., and Banerjee, A. (2024). Reactive Power Compensation in Hybrid Energy Systems: FOPID-Controlled UPFC with Modified Osprey Optimization Algorithm. Int. J. Inf. Technol.10.1007/s41870-024-02222-0 ↗
61. Fractional Order PIλDμ Controller for Microgrid Power System Using Cohort Intelligence Optimization10.1016/j.rico.2023.100218 ↗
62. Smart Micro-Grid Integration with Bidirectional DC Fast Charging: Harnessing Vehicle-to-Grid Technology10.30574/ijsra.2024.13.1.2037 ↗
63. Modeling and Performance Evaluation of ANFIS Controller-Based Bidirectional Power Management Scheme in Plug-in Electric Vehicles Integrated with Electric Grid10.1109/ACCESS.2021.3135190 ↗
64. ELM-ANFIS Based Controller for Plug-in Electric Vehicle to Grid Integration
65. An MAS Based Energy Management System for a Stand-Alone Microgrid at High Altitude10.1016/j.apenergy.2015.01.016 ↗
66. Ning, J., Hao, S., Zeng, A., Chen, B., and Tang, Y. (2021). Research on Multi-Timescale Coordinated Method for Source-Grid-Load with Uncertain Renewable Energy Considering Demand Response. Sustainability, 13.10.3390/su13063400 ↗
67. Short-Term Electricity Demand Forecasting Using a Hybrid ANFIS–ELM Network Optimised by an Improved Parasitism–Predation Algorithm10.1016/j.apenergy.2023.121316 ↗
68. An Adaptive Neural Fuzzy Interface Structure Optimisation for Prediction of Energy Consumption and Airflow of a Ventilation System10.1016/j.apenergy.2023.120879 ↗
69. Time-Series Prediction of Wind Speed Using Machine Learning Algorithms: A Case Study Osorio Wind Farm, Brazil10.1016/j.apenergy.2018.05.043 ↗
70. Power Optimization of a Photovoltaic System with Artificial Intelligence Algorithms over Two Seasons in Tropical Area10.1016/j.mex.2022.101959 ↗
71. An Improved Power Conditioning System for Grid Integration of Solar Power Using ANFIS Based FOPID Controller10.1016/j.micpro.2020.103030 ↗
72. An Improved Current Control Charging Scheme Using Neuro-Fuzzy and Fopid Based Mppt System for Ev Charging10.14445/22315381/IJETT-V69I10P232 ↗
73. Golnaraghi, F., and Kuo, B.C. (2010). Automatic Control Systems, Wiley. [9th ed.].
74. Theoretical Consideration of Retarded Control
75. Ogata, K. (2002). Modern Control Engineering, Prentice Hall. [5th ed.].
76. Optimum Settings for Automatic Controllers
77. A Unified Method for Optimal Arbitrary Pole Placement10.1016/j.automatica.2014.06.006 ↗
78. Pole Placement Method on a Class of Nonlinear Systems with Adaptive Backstepping Technique10.1080/00207721.2021.1966548 ↗
79. Guaranteed Dominant Pole Placement with PID Controllers10.1016/j.jprocont.2008.04.012 ↗
80. Çakmak, C. (2011). Fuzzy Based Optimization Method for Ziegler-Nichols PID Controller Parameters. [Master’s Thesis, Istanbul Technical University, Institute of Science].
81. Yapay Sinir Ağları Kullanılarak Fotovoltaik Sistemin Maksimum Güç Noktası Takibi Maximum Power Point Tracking of the Photovoltaic System Using Artificial Neural Networks
82. A Novel Interval Dynamic Reliability Computation Approach for the Risk Evaluation of Vibration Active Control Systems Based on PID Controllers10.1016/j.apm.2020.11.007 ↗
83. Sumarmad, K.A.A.S., Sulaiman, N., Wahab, N.I.A., and Hizam, H. (2022). Artificial Neural Networks, PID, and Fuzzy Logic Controllers. Energies, 15.10.3390/en15114125 ↗
84. Aström, K.J., and Hagglund, T. (1995). PID Controllers: Theory-Design-and Tuning, Instrument Society of America. [2nd ed.].
85. Fractional-Order PID Controller Tuning Using Continuous State Transition Algorithm10.1007/s00521-016-2605-0 ↗
86. Optimized Fractional Order PID Controller with Sensorless Speed Estimation for Torque Control in Induction Motor10.1016/j.eswa.2024.123574 ↗
87. Nasir, M., and Khadraoui, S. (2021). Fractional-Order PID Controller Design Using PSO and GA. Proceedings of the 2021 14th International Conference on Developments in eSystems Engineering (DeSE), Sharjah, United Arab Emirates, 7–10 December 2021, IEEE.10.1109/DeSE54285.2021.9719562 ↗
88. Hybrid k—Means Grasshopper Optimization Algorithm Based FOPID Controller with Feed Forward DC—DC Converter for Solar—Wind Generating System10.1007/s12652-021-03173-1 ↗
89. Jain, R.V., Aware, M.V., and Junghare, A.S. (2016). Tuning of Fractional Order PID Controller U Sing Particle Swarm Optimization Technique for DC Motor Speed Control. Proceedings of the 2016 IEEE 1st International Conference on Power Electronics, Intelligent Control and Energy Systems (ICPEICES), Delhi, India, 4–6 July 2016, IEEE.10.1109/ICPEICES.2016.7853070 ↗
90. Design of Adaptive Fractional-Order PID Controller to Enhance Robustness by Means of Adaptive Network Fuzzy Inference System10.1007/s40815-016-0283-9 ↗
91. Control Quality Enhancement by Fractional Order Controllers
92. Enhanced PV Power Optimization: Integrating Jordan Neural Network MPPT with FOPID—Controlled SEPIC Converter for Non—Linear Load Applications10.1007/s11082-025-08157-5 ↗
93. Zhang, Q., Wang, X., and Fu, M. (2009). Optimal Implementation Strategies for Critical Peak Pricing. Proceedings of the International Conference on the European Energy Market, Leuven, Belgium, 27–29 May 2009, IEEE.10.1109/EEM.2009.5207139 ↗
94. Fuzzy Neural Networks: A Survey10.1016/0165-0114(94)90297-6 ↗
95. Fuzzy Identification of Systems and Its Applications to Modeling and Control10.1109/TSMC.1985.6313399 ↗
96. Demand Response in Electrical Energy Supply: An Optimal Real Time Pricing Approach10.1016/j.energy.2011.06.049 ↗
97. A Study on Dynamic Energy Pricing in Smart Grids