An Implementation of the Particle Swarm Optimization Algorithm in Optimizing Fuzzy Logic Control for DC-Link Voltage Regulation in SAPF Systems
Received: 5 August 2025 | Revised: 28 September 2025 | Accepted: 5 October 2025 | Online: 8 December 2025
Corresponding author: Zaenab Musimin
Abstract
The increased use of electronic devices has caused power quality issues in the form of harmonic distortion. Shunt Active Power Filter (SAPF) offers a more effective and adaptable solution for reducing harmonics. This study aims to model, simulate, and evaluate the performance of the SAPF with DC-link voltage control using a Fuzzy Logic Controller (FLC) that is automatically optimized with the Particle Swarm Optimization (PSO) algorithm. The SAPF employs the instantaneous power theory approach to calculate the reference compensation current and a Hysteresis Current Controller (HCC) to operate the inverter and generate the appropriate compensation current. The simulation results show that without the SAPF, the current Total Harmonic Distortion (THD) reaches 20.77% and the voltage THD 4.83%. The basic implementation of the SAPF reduced the current THD to approximately 1.35% and the voltage THD to approximately 1.13%. The addition of FLC successfully decreased the current THD to around 0.71% and the voltage THD to about 0.55%, with a DC-link voltage overshoot of 1.06% and a Steady-State Error (SSE) of 0.41%. Applying FLC optimized with PSO significantly enhanced the performance, reducing the current THD to 0.36% and voltage THD to 0.35%, lowering the DC-link voltage overshoot to 0.85%, and decreasing the SSE to 0.31%. This study concludes that optimizing the FLC with PSO significantly improves the DC-link voltage control and the effectiveness of the SAPF in diminishing harmonics.
Keywords:
shunt active power filter, fuzzy logic controller, particle swarm optimization, harmonic, dc-link controlDownloads
References
T. Mathwai, K. Awodele, and A. Ojo, "Power Quality Evaluation of Electrical Loads in a Typical Commercial Building," in 2020 International SAUPEC/RobMech/PRASA Conference, Cape Town, South Africa, Jan. 2020, pp. 1–6. DOI: https://doi.org/10.1109/SAUPEC/RobMech/PRASA48453.2020.9041007
R. R. Stanley, "Chapter 7 - Power quality improvements for renewable power plants," in Power Systems Operation with 100% Renewable Energy Sources, S. Chenniappan, S. Padmanaban, and S. Palanisamy, Eds. Elsevier, 2024, pp. 85–107. DOI: https://doi.org/10.1016/B978-0-443-15578-9.00001-7
Z. M. Ali, M. Ćalasan, F. Jurado, and S. H. E. Abdel Aleem, "Complexities of Power Quality and Harmonic-Induced Overheating in Modern Power Grids Studies: Challenges and Solutions," IEEE Access, vol. 12, pp. 151554–151597, 2024. DOI: https://doi.org/10.1109/ACCESS.2024.3477729
D. Li, T. Wang, W. Pan, X. Ding, and J. Gong, "A comprehensive review of improving power quality using active power filters," Electric Power Systems Research, vol. 199, Oct. 2021, Art. no. 107389. DOI: https://doi.org/10.1016/j.epsr.2021.107389
M. Popescu, A. Bitoleanu, C. V. Suru, M. Linca, and L. Alboteanu, "Shunt Active Power Filters in Three-Phase, Three-Wire Systems: A Topical Review," Energies, vol. 17, no. 12, Jan. 2024, Art. no. 2867. DOI: https://doi.org/10.3390/en17122867
M. Hajjej and L. Sbita, "A New Design and Implementation of a Three-Phase Four-Wire Shunt Active Power Filter for Mitigating Harmonic Problems caused by Compact Fluorescent Lamps," Engineering, Technology & Applied Science Research, vol. 14, no. 3, pp. 14619–14627, Jun. 2024. DOI: https://doi.org/10.48084/etasr.7251
S. Mikkili and A. K. Panda, "SHAF for Mitigation of Current Harmonics Using p-q Method with PI and Fuzzy Controllers," Engineering, Technology & Applied Science Research, vol. 1, no. 4, pp. 98–104, Aug. 2011. DOI: https://doi.org/10.48084/etasr.44
P. K. Barik, G. Shankar, and P. K. Sahoo, "DC-Link Capacitor Voltage Stabilization of a Shunt Active Power Filter Using Fuzzy Logic Controller Under Dynamic Loading Condition," in Proceedings of Symposium on Power Electronic and Renewable Energy Systems Control, Singapore, 2021, pp. 403–414. DOI: https://doi.org/10.1007/978-981-16-1978-6_35
K. Hemasri and C. S. Kumar, "Fuzzy Controller with Shunt Active Power Filter in Reducing THD for Three Phase System," International Transactions on Electrical Engineering and Computer Science, vol. 3, no. 2, pp. 101–108, Jun. 2024. DOI: https://doi.org/10.62760/iteecs.3.2.2024.93
S. M. Belhadj, B. Meliani, H. Benbouhenni, S. Zaidi, Z. M. S. Elbarbary, and M. M. Alammar, "Control of multi-level quadratic DC-DC boost converter for photovoltaic systems using type-2 fuzzy logic technique-based MPPT approaches," Heliyon, vol. 11, no. 3, Feb. 2025, Art. no. e42181. DOI: https://doi.org/10.1016/j.heliyon.2025.e42181
J. L. da Silva, "Fuzzy Logic Control with PSO Tuning," in Fuzzy Systems - Theory and Applications, IntechOpen, 2021. DOI: https://doi.org/10.5772/intechopen.96297
K. R. Bharath Kumar, P. Senthil Kumar, K. S. Dharaneeshwarakumar, and B. Deepak, "Particle Swarm Optimization Tuned Fuzzy Controller for Vibration Control of Active Suspension System," in Advances in Materials Research, Singapore, 2021, pp. 115–125. DOI: https://doi.org/10.1007/978-981-15-8319-3_13
M. A. R. Shafei, D. K. Ibrahim, and M. Bahaa, "Application of PSO tuned fuzzy logic controller for LFC of two-area power system with redox flow battery and PV solar park," Ain Shams Engineering Journal, vol. 13, no. 5, Sep. 2022, Art. no. 101710. DOI: https://doi.org/10.1016/j.asej.2022.101710
A. M. Hadi, E. M. Thajeel, and A. K. Nahar, "A novel optimizing PI control of shunt active power filter for power quality enhancement," Bulletin of Electrical Engineering and Informatics, vol. 11, no. 3, pp. 1194–1202, Jun. 2022. DOI: https://doi.org/10.11591/eei.v11i3.3225
S. A. A. Shukor, W. A. Halim, A. Razi, M. A. Mohd Radzi Advanced, N. F. Mailah, and M. L. Othman, "An Optimal Tuning of PI Controller for Shunt Active Power Filter Based on PI-PSO Approach," in 2024 IEEE International Conference on Power and Energy (PECon), Kuala Lumpur, Malaysia, Nov. 2024, pp. 199–204. DOI: https://doi.org/10.1109/PECon62060.2024.10826925
S. K. Dash, P. K. Ray, and P. Ray, "Implementation of adaptive control strategies for PV system integrated unified conditioner for optimal power quality regulation," Results in Engineering, vol. 26, Jun. 2025, Art. no. 105122. DOI: https://doi.org/10.1016/j.rineng.2025.105122
A. M. Hadi, E. M. Thjeel, and A. K. Nahar, "A Review of Control Technique Applied in Shunt Active Power Filter (SAPF)," Engineering and Technology Journal, vol. 40, no. 8, pp. 1035–1044, Aug. 2022. DOI: https://doi.org/10.30684/etj.v40i8.2116
K. Naftahi, A. Abouloifa, Z. Hekss, S. Echalih, F. Ait bellah, and I. Lachkar, "Three-Phase Four-Wire Shunt Active Power Filter Based on the Hybrid Automaton Control with Instantaneous Reactive Power Theory," IFAC-PapersOnLine, vol. 55, no. 12, pp. 532–537, Jan. 2022. DOI: https://doi.org/10.1016/j.ifacol.2022.07.366
J. Mikulović and T. Šekara, "Power definitions for electrical circuits with nonsinusoidal and unbalanced voltages and currents," in Encyclopedia of Electrical and Electronic Power Engineering, J. García, Ed. Oxford: Elsevier, 2023, pp. 113–131. DOI: https://doi.org/10.1016/B978-0-12-821204-2.00134-3
A. Atif, K. A. Khan, and M. Khalid, "17 - Solar power smoothing using battery energy storage system through fuzzy filtration technique," in Emerging Trends in Energy Storage Systems and Industrial Applications, Prabhansu and N. Kumar, Eds. Academic Press, 2023, pp. 485–520. DOI: https://doi.org/10.1016/B978-0-323-90521-3.00004-1
G. Tayfur, "Chapter 10 - Application of fuzzy logic in water resources engineering," in Handbook of Hydroinformatics, S. Eslamian and F. Eslamian, Eds. Elsevier, 2023, pp. 155–166. DOI: https://doi.org/10.1016/B978-0-12-821962-1.00024-6
D. Chauhan, Shivani, and P. N. Suganthan, "Learning strategies for particle swarm optimizer: A critical review and performance analysis," Swarm and Evolutionary Computation, vol. 98, Oct. 2025, Art. no. 102048. DOI: https://doi.org/10.1016/j.swevo.2025.102048
S. Mandal, Sensors, Circuits, and Systems for Scientific Instruments. Academic Press, 2026.
M. D. Faraby, O. Penangsang, R. S. Wibowo, S. Sofyan, A. R. Idris, and A. Asri, "Harmonic Mitigation Through Enhancement Network Reconfiguration Technique on Coordinated Planning Using Hybrid Particle Swarm Optimization in Radial Distribution System," in 2021 3rd International Conference on Electrical, Control and Instrumentation Engineering, Nov. 2021, pp. 1–6. DOI: https://doi.org/10.1109/ICECIE52348.2021.9664728
D. Çelik, "Lyapunov based harmonic compensation and charging with three phase shunt active power filter in electrical vehicle applications," International Journal of Electrical Power & Energy Systems, vol. 136, Mar. 2022, Art. no. 107564. DOI: https://doi.org/10.1016/j.ijepes.2021.107564
Downloads
How to Cite
License
Copyright (c) 2025 Zaenab Musimin, Indar Chaerah Gunadin, Fitriyanti Mayasari, Hendra Bara’langi’

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.
