Comparative Study of PID and ANN Controllers for AC Output Voltage Regulation in a Photovoltaic Grid
Received: 10 March 2025 | Revised: 5 April 2025 and 9 April 2025 | Accepted: 15 April 2025 | Online: 21 May 2025
Corresponding author: Mourad Meguellati
Abstract
The coupling system of two different sources has always been an important subject of research in the field of electrical grids of any voltage range. In particular, after the connection of the photovoltaic and the public grids, the voltages cannot be distinguished from each other, because after their coupling there is one voltage across the output load. In this article, we take into account the variation of the current when the load varies in order to establish the relationship between the measured current and the output AC voltage, which can be regulated using only the current. For this purpose, we employ two types of controllers, the Proportional-Integral-Derivative (PID) controller and the Artificial Neural Network (ANN) controller, using Matlab/Simulink. Despite the connection of an inverter, which increases the loss rate and the error, the results are encouraging considering that the error rate obtained for the ANN controller, which is 1.49%, is much lower compared to that of the PID controller, which is 2.4%. Based on the results obtained, it can be concluded that the ANN controller is the best choice to perform this simulation.
Keywords:
photovoltaic grid, public grid, PID controller, ANN controller, coupling, connected gridsDownloads
References
Y. Xu et al., "Load Forecasting Method for Building Energy Systems Based On Modified Two-Layer LSTM," in 2021 3rd Asia Energy and Electrical Engineering Symposium, Chengdu, China, 2021, pp. 660–665. DOI: https://doi.org/10.1109/AEEES51875.2021.9403131
W. Choi, W. Lee, and B. Sarlioglu, "Effect of grid inductance on grid current quality of parallel grid-connected inverter system with output LCL filter and closed-loop control," in 2016 IEEE Applied Power Electronics Conference and Exposition, Long Beach, CA, USA, 2016, pp. 2679–2686. DOI: https://doi.org/10.1109/APEC.2016.7468242
Y. Wang, X. Wang, F. Blaabjerg, and Z. Chen, "Harmonic resonance assessment of multiple paralleled grid-connected inverters system," in 2017 IEEE 3rd International Future Energy Electronics Conference and ECCE Asia, Kaohsiung, Taiwan, 2017, pp. 2070–2075. DOI: https://doi.org/10.1109/IFEEC.2017.7992370
B. K. Gupta, A. I. Gedam, and K. R. Sekhar, "A Dual Inverter Based Grid Connected Solar Power Conditioning System With Coordinated Closed Loop Control," in 2019 IEEE Innovative Smart Grid Technologies - Asia, Chengdu, China, 2019, pp. 2178–2183. DOI: https://doi.org/10.1109/ISGT-Asia.2019.8880886
S. Jain and V. Agarwal, "A Single-Stage Grid Connected Inverter Topology for Solar PV Systems With Maximum Power Point Tracking," IEEE Transactions on Power Electronics, vol. 22, no. 5, pp. 1928–1940, Sep. 2007. DOI: https://doi.org/10.1109/TPEL.2007.904202
A. H. Syed, M. A. Abido, and R. Kennel, "Improved performance of intelligent robust controller for grid-connected VSI," in 2016 18th European Conference on Power Electronics and Applications, Karlsruhe, Germany, 2016, pp. 1–9. DOI: https://doi.org/10.1109/EPE.2016.7695440
M. Louzazni and E. Aroudam, "Intelligent PID-Fuzzy logic control for three-phase grid-connected photovoltaic inverter," in 2014 9th International Conference on Intelligent Systems: Theories and Applications, Rabat, Morocco, 2014, pp. 1–6. DOI: https://doi.org/10.1109/SITA.2014.6847306
A. S. M. Nabgha and M. Ouassaid, "Fuzzy Logic and Sliding Mode Control for a Grid-Connected Current Source Inverter Photovoltaic System," in 2018 6th International Renewable and Sustainable Energy Conference, Rabat, Morocco, 2018, pp. 1–6. DOI: https://doi.org/10.1109/IRSEC.2018.8702972
A. A. Bengharbi, S. Laribi, T. Allaoui, and A. Mimouni, "Photovoltaic system faults diagnosis using discrete wavelet transform based artificial neural networks," Electrical Engineering & Electromechanics, no. 6, pp. 42–47, Nov. 2022. DOI: https://doi.org/10.20998/2074-272X.2022.6.07
R. Gupta, V. Singh, V. K. Pandey, and K. S. Kulhar, "Hybrid GWO-ANN Associated SMC based Boost Converter for MPPT of PV System under Partial Shading Conditions," E3S Web of Conferences, vol. 540, Jun. 2024, Art. no. 12006. DOI: https://doi.org/10.1051/e3sconf/202454012006
E. M. Barhoumi, I. Ben Belgacem, A. Khiareddine, M. Zghaibeh, and I. Tlili, "A Neural Network-Based Four Phases Interleaved Boost Converter for Fuel Cell System Applications," Energies, vol. 11, no. 12, Dec. 2018, Art. no. 3423. DOI: https://doi.org/10.3390/en11123423
I. Gueye, M. Sall, and A. Kebe, "Performance of the Boost Chopper, Comparative Study between PI Control and Neural Control to Regulate Its Output Voltage," Smart Grid and Renewable Energy, vol. 14, no. 5, pp. 73–84, May 2023. DOI: https://doi.org/10.4236/sgre.2023.145005
J. Amrutha and A. S. Remya Ajai, "Performance analysis of Backpropagation Algorithm of Artificial Neural Networks in Verilog," in 2018 3rd IEEE International Conference on Recent Trends in Electronics, Information & Communication Technology, Bangalore, India, 2018, pp. 1547–1550. DOI: https://doi.org/10.1109/RTEICT42901.2018.9012614
T. T. Teo, T. Logenthiran, and W. L. Woo, "Forecasting of photovoltaic power using extreme learning machine," in 2015 IEEE Innovative Smart Grid Technologies - Asia, Bangkok, Thailand, 2015, pp. 1–6. DOI: https://doi.org/10.1109/ISGT-Asia.2015.7387113
G. Neily, R. Barone, G. Josin, and D. Charney, "Joint VAr controller implemented in an artificial neural network environment," in [Proceedings] 1991 IEEE International Joint Conference on Neural Networks, Singapore, 1991, pp. 1336–1342 vol.2. DOI: https://doi.org/10.1109/IJCNN.1991.170582
C. Hayat and B. Abian, "The Modeling of Artificial Neural Network of Early Diagnosis for Malnutrition with Backpropagation Method," in 2018 Third International Conference on Informatics and Computing, Palembang, Indonesia, 2018, pp. 1–7. DOI: https://doi.org/10.1109/IAC.2018.8780505
A. A. Lydia and F. S. Francis, "Convolutional Neural Network with an Optimized Backpropagation Technique," in 2019 IEEE International Conference on System, Computation, Automation and Networking, Pondicherry, India, 2019, pp. 1–5. DOI: https://doi.org/10.1109/ICSCAN.2019.8878719
O. Krestinskaya, K. N. Salama, and A. P. James, "Analog Backpropagation Learning Circuits for Memristive Crossbar Neural Networks," in 2018 IEEE International Symposium on Circuits and Systems, Florence, Italy, 2018, pp. 1–5. DOI: https://doi.org/10.1109/ISCAS.2018.8351344
O. Kahouli, B. Ashammari, K. Sebaa, M. Djebali, and H. H. Abdallah, "Type-2 Fuzzy Logic Controller Based PSS for Large Scale Power Systems Stability," Engineering, Technology & Applied Science Research, vol. 8, no. 5, pp. 3380–3386, Oct. 2018. DOI: https://doi.org/10.48084/etasr.2234
M. Y. Allani, D. Mezghani, F. Tadeo, and A. Mami, "FPGA Implementation of a Robust MPPT of a Photovoltaic System Using a Fuzzy Logic Controller Based on Incremental and Conductance Algorithm," Engineering, Technology & Applied Science Research, vol. 9, no. 4, pp. 4322–4328, Aug. 2019. DOI: https://doi.org/10.48084/etasr.2771
N. G. EL Sayed, A. M. Yousef, G. El-Saady, M. D. Alanazi, H. A. Ziedan, and M. Abdelsattar, "Eectrical grid linked to PV/wind system based fuzzy controller and PID controller tuned by PSO for improving LVRT," Scientific Reports, vol. 15, no. 1, Mar. 2025, Art. no. 7698. DOI: https://doi.org/10.1038/s41598-025-87208-z
Z. Sarra, M. Bouziane, R. Bouddou, H. Benbouhenni, S. Mekhilef, and Z. M. S. Elbarbary, "Intelligent control of hybrid energy storage system using NARX-RBF neural network techniques for microgrid energy management," Energy Reports, vol. 12, pp. 5445–5461, Dec. 2024. DOI: https://doi.org/10.1016/j.egyr.2024.11.023
A. Elnozahy, A. M. Yousef, F. K. Abo-Elyousr, M. Mohamed, and S. A. M. Abdelwahab, "Performance improvement of hybrid renewable energy sources connected to the grid using artificial neural network and sliding mode control," Journal of Power Electronics, vol. 21, no. 8, pp. 1166–1179, Aug. 2021. DOI: https://doi.org/10.1007/s43236-021-00242-8
S. Zaidi, B. Meliani, R. Bouddou, S. M. Belhadj, and N. Bouchikhi, "Comparative study of different types of DC/DC converters for PV systems using RBF neural network-based MPPT algorithm," Journal of Renewable Energies, pp. 13–31, Oct. 2024. DOI: https://doi.org/10.54966/jreen.v1i3.1291
R. R. Hete et al., "Design and development of PI controller for DFIG grid integration using neural tuning method ensembled with dense plexus terminals," Scientific Reports, vol. 14, no. 1, Apr. 2024, Art. no. 7916. DOI: https://doi.org/10.1038/s41598-024-56904-7
S. Adiche et al., "Advanced control strategy for AC microgrids: a hybrid ANN-based adaptive PI controller with droop control and virtual impedance technique," Scientific Reports, vol. 14, no. 1, Dec. 2024, Art. no. 31057. DOI: https://doi.org/10.1038/s41598-024-82193-1
M. Mohamed, Z. M. Alaas, B. A. Faiya, H. Y. Hegazy, W. I. Mohamed, and S. A. M. Abdelwahab, "Performance Improvement of Grid-Connected PV-Wind Hybrid Systems Using Adaptive Neuro-Fuzzy Inference System and Fuzzy FOPID Advanced Control With OPAL-RT," IEEE Access, vol. 13, pp. 55996–56020, 2025. DOI: https://doi.org/10.1109/ACCESS.2025.3548926
A. Yachir et al., "Improved Sliding Mode Control of a Wind Turbine System Based on a Developed Permanent Magnet Synchronous Generator," Journal of Renewable Energies, pp. 203–221, Oct. 2024. DOI: https://doi.org/10.54966/jreen.v1i3.1304
H. Ahessab, Y. Hakam, A. Gaga, and B. Elhaddadi, "ANN-fuzzy Hybrid Control Strategy for MPPT of Grid-connected PV System with Battery Storage under Fast-changing Atmospheric Condition," Recent Advances in Electrical & Electronic Engineering, vol. 18, no. 1, pp. 35–49, Jan. 2024. DOI: https://doi.org/10.2174/0123520965262688231128053950
A. Achar, Y. Djeriri, H. Benbouhenni, R. Bouddou, and Z. M. S. Elbarbary, "Modified Vector-Controlled DFIG Wind Energy System Using Robust Model Predictive Rotor Current Control," Arabian Journal for Science and Engineering, Jul. 2024. DOI: https://doi.org/10.1007/s13369-024-09310-0
A. Achar, Y. Djeriri, A. Bentaallah, S. Hanafi, M. A. Djehaf, and R. Bouddou, "Lyapunov-Based Robust Power Controllers for a Wind Farm Using Parallel Multicell Converters," Przegląd Elektrotechniczny, vol. 99, no. 4, pp. 247–254, Apr. 2023. DOI: https://doi.org/10.15199/48.2023.04.43
K. Suresh, E. Parimalasundar, A. Arunraja, V. Ellappan, and E. T. Ware, "Design and Implementation of universal converter using ANN controller," Scientific Reports, vol. 15, no. 1, Jan. 2025, Art. no. 3501. DOI: https://doi.org/10.1038/s41598-024-83318-2
H. Mahar et al., "Implementation of ANN Controller Based UPQC Integrated with Microgrid," Mathematics, vol. 10, no. 12, Jun. 2022, Art. no. 1989. DOI: https://doi.org/10.3390/math10121989
A. Singh, S. Yadav, N. Tiwari, D. K. Nishad, and S. Khalid, "Optimized PID controller and model order reduction of reheated turbine for load frequency control using teaching learning-based optimization," Scientific Reports, vol. 15, no. 1, Jan. 2025, Art. no. 3759. DOI: https://doi.org/10.1038/s41598-025-87866-z
A. K. Ali, "An optimal design for an automatic voltage regulation system using a multivariable PID controller based on hybrid simulated annealing – white shark optimization," Scientific Reports, vol. 14, no. 1, Dec. 2024, Art. no. 30218. DOI: https://doi.org/10.1038/s41598-024-79300-7
Downloads
How to Cite
License
Copyright (c) 2025 Mourad Meguellati, Mohammed Salah Khireddine, Kheireddine Chafaa

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.