Dual Loop PI Control of Brushless DC Motors Using an Improved Whale Optimization Algorithm

Authors

  • Chuan Liu School of Intelligent Manufacturing and Control Engineering, Shanghai Polytechnic University, Shanghai, 201209, China
  • Miao Huang School of Intelligent Medicine and Health Engineering, Shanghai Polytechnic University, Shanghai, 201209, China
  • Lili Tao School of Intelligent Manufacturing and Control Engineering, Shanghai Polytechnic University, Shanghai, 201209, China
  • Shuping Zhang School of Intelligent Medicine and Health Engineering, Shanghai Polytechnic University, Shanghai, 201209, China

DOI:

https://doi.org/10.54097/wz8yb820

Keywords:

Brushless DC Motor, CEC2022, Dual-loop Control, Dynamic Opposition-based Learning, PI Parameter Optimization, Whale Optimization Algorithm

Abstract

Empirical tuning of speed-loop proportional–integral controllers can make it difficult to balance startup response and recovery from load disturbances in brushless direct-current motor drives. This paper proposes an improved whale optimization algorithm for tuning the speed-loop gains in a dual-loop control system. Latin hypercube sampling is used to improve the distribution of the initial population. A power-law nonlinear convergence factor is adjusted according to fitness rank to assign different search scales to individual candidates. During random search, a dynamic opposition-based learning strategy combines the global best position with the population centroid to generate candidate positions. The algorithm is evaluated on 12 functions from the 2022 Congress on Evolutionary Computation benchmark suite in 10 and 20 dimensions. It achieves the lowest final mean error in 23 of the 24 test cases; in the remaining case, its difference from the best result falls within the specified numerical tolerance. The algorithm is then applied to a field-oriented, dual-loop brushless direct-current motor simulation model. The proportional and integral speed-loop gains are optimized by minimizing the integral of time-weighted absolute speed error. With a speed reference of 1000 r/min and an 8 N·m step load disturbance, the optimized controller yields a startup overshoot of 2.96%, a maximum speed drop of 14.2 r/min, a recovery time of 0.0069 s, and an objective value of 0.05780. Compared with controllers tuned using particle swarm optimization, grey wolf optimization, and the standard whale optimization algorithm, the proposed method achieves a lower final objective value, a smaller speed drop, and a shorter recovery time. These results support its application to benchmark optimization and speed-loop parameter tuning under the tested conditions.

Downloads

Download data is not yet available.

References

[1] Pillay, P., & Krishnan, R. (1989). Modeling, simulation, and analysis of permanent magnet motor drives. II. The brushless DC motor drive. IEEE Transactions on Industry Applications, 25(2), 274–279. https://doi.org/10.1109/28.25542. DOI: https://doi.org/10.1109/28.25542

[2] Pillay, P., & Krishnan, R. (1989). Modeling, simulation, and analysis of permanent magnet motor drives. I. The permanent magnet synchronous motor drive. IEEE Transactions on Industry Applications, 25(2), 265–273. https://doi.org/10.1109/28.25541. DOI: https://doi.org/10.1109/28.25541

[3] Lan, M. M., Hu, H. S., Wang, T. T., et al. (2024). Speed control algorithm of brushless DC motor based on improved whale optimization PID. Journal of Jilin University (Science Edition), 62(3), 704–712. https://doi.org/10.13413/j.cnki.jdxblxb.2023238. (in Chinese)

[4] Luo, S. Z., & Zhao, X. R. (2024). Design of PI controller for permanent magnet synchronous motor based on CPSO algorithm. Guangxi Electric Power, 47(5), 26–31. (in Chinese)

[5] Zhu, Z. L., Wang, Z. H., Zhang, M., et al. (2024). Speed control based on PID optimized by improved whale algorithm. Information Technology, 48(10), 75–79. https://doi.org/10.13274/j.cnki.hdzj.2024.10.012. (in Chinese)

[6] Zang, X. K., Yang, M. L., Dong, Q., et al. (2026). Research on fuzzy PID control based on improved dung beetle algorithm. Modular Machine Tool & Automatic Manufacturing Technique, (2), 103–109. https://doi.org/10.13462/j.cnki.mmtamt.2026.02.019. (in Chinese)

[7] Zhang, Y. L., & Lu, Q. (2024). Fractional order PID parameter tuning based on improved whale optimization algorithm. Automation & Instrumentation, 39(8), 127–131, 153. https://doi.org/10.19557/j.cnki.1001 9944.2024.08.028. (in Chinese)

[8] Wang, Y., Xie, Y. X., Wang, Y. F., et al. (2026). PID control of cable extrusion diameter prediction based on improved whale optimization algorithm. Wire & Cable, 69(3), 60–65. https://doi.org/10.16105/j.dxdl.1672 6901.20250234. (in Chinese)

[9] Qin, J. B., Chen, L. B., Bao, D. F., et al. (2025). Research on variable spraying control system based on improved whale optimization PID algorithm. Journal of Chinese Agricultural Mechanization, 46(3), 87–92. https://doi.org/10.13733/j.jcam.issn.2095 5553.2025.03.014. (in Chinese)

[10] Liu, D., Zhao, S., & Zhang, J. (2025). Adaptive PID control of hydropower units based on particle swarm optimization and fuzzy inference. Water, 17(10), 1512. https://doi.org/10.3390/w17101512. DOI: https://doi.org/10.3390/w17101512

[11] Cen, Y., Shen, H., Wang, X., Wu, Y., & Du, J. (2024). Multi objective optimization analysis of electromagnetic performance of permanent magnet synchronous motors based on the PSO algorithm. Energies, 17(18), 4637. https://doi.org/10.3390/en17184637. DOI: https://doi.org/10.3390/en17184637

[12] Bhandari, P., Pancha, B., Poudel, Y. K., et al. (2023). Application of particle swarm optimization (PSO) algorithm for PID parameter tuning in speed control of brushless DC (BLDC) motor. Journal of Physics: Conference Series, 2570(1), 012018. https://doi.org/10.1088/1742 6596/2570/1/012018. DOI: https://doi.org/10.1088/1742-6596/2570/1/012018

[13] Dutta, P., & Nayak, S. K. (2021). Grey wolf optimizer based PID controller for speed control of BLDC motor. Journal of Electrical Engineering & Technology, 16(2), 955–961. https://doi.org/10.1007/s42835 021 00660 5. DOI: https://doi.org/10.1007/s42835-021-00660-5

[14] Adil, H. M. M., & Khan, H. A. (2025). WOA tuned supertwisted synergetic control of multipurpose on board charger for G2V/V2G/V2V operational modes of electric vehicles. Control Engineering Practice, 154, 106136. https://doi.org/10.1016/j.conengprac.2024.106136. DOI: https://doi.org/10.1016/j.conengprac.2024.106136

[15] Ramesh, H., & Xavier, S. A. E. (2022). Optimal tuning of servo motor based linear motion system using optimization algorithm. Journal of Electrical Engineering & Technology, 17(6), 3565–3580. https://doi.org/10.1007/s42835 022 01149 5.

[16] Ramamoorthi, R., Sai Veerraju, M., Ramana Rao, M. V., & Himaja, T. (2025). Optimal interval based tuning of 3DOF PID controllers for power system stabilizers and dynamic performance in multi machine power systems. Renewable Energy Focus, 55, 100727. https://doi.org/10.1016/j.ref.2025.100727. DOI: https://doi.org/10.1016/j.ref.2025.100727

[17] Mirjalili, S., & Lewis, A. (2016). The whale optimization algorithm. Advances in Engineering Software, 95, 51–67. https://doi.org/10.1016/j.advengsoft.2016.01.008. DOI: https://doi.org/10.1016/j.advengsoft.2016.01.008

[18] McKay, M. D., Beckman, R. J., & Conover, W. J. (1979). A comparison of three methods for selecting values of input variables in the analysis of output from a computer code. Technometrics, 21(2), 239–245. https://doi.org/10.1080/00401706.1979.10489755. DOI: https://doi.org/10.1080/00401706.1979.10489755

[19] Sun, G., Shang, Y., Yuan, K., & Gao, H. (2022). An improved whale optimization algorithm based on nonlinear parameters and feedback mechanism. International Journal of Computational Intelligence Systems, 15, 38. https://doi.org/10.1007/s44196 022 00092 7. DOI: https://doi.org/10.1007/s44196-022-00092-7

[20] Tizhoosh, H. R. (2005). Opposition based learning: A new scheme for machine intelligence. In Proceedings of the International Conference on Computational Intelligence for Modelling, Control and Automation and International Conference on Intelligent Agents, Web Technologies and Internet Commerce (Vol. 1, pp. 695–701). https://doi.org/10.1109/CIMCA.2005.1631345. DOI: https://doi.org/10.1109/CIMCA.2005.1631345

[21] Cao, D., Xu, Y., Yang, Z., Dong, H., & Li, X. (2023). An enhanced whale optimization algorithm with improved dynamic opposite learning and adaptive inertia weight strategy. Complex & Intelligent Systems, 9, 767–795. https://doi.org/10.1007/s40747 022 00827 1. DOI: https://doi.org/10.1007/s40747-022-00827-1

[22] Biedrzycki, R. (2024). Revisiting CEC 2022 ranking: A new ranking method and influence of parameter tuning. Swarm and Evolutionary Computation, 89, 101623. https://doi.org/10.1016/j.swevo.2024.101623. DOI: https://doi.org/10.1016/j.swevo.2024.101623

[23] Kennedy, J., & Eberhart, R. C. (1995). Particle swarm optimization. In Proceedings ICNN’95 International Conference on Neural Networks (Vol. 4, pp. 1942–1948). https://doi.org/10.1109/ICNN.1995.488968. DOI: https://doi.org/10.1109/ICNN.1995.488968

[24] Mirjalili, S., Mirjalili, S. M., & Lewis, A. (2014). Grey wolf optimizer. Advances in Engineering Software, 69, 46–61. https://doi.org/10.1016/j.advengsoft.2013.12.007. DOI: https://doi.org/10.1016/j.advengsoft.2013.12.007

[25] Graham, D., & Lathrop, R. C. (1953). The synthesis of ‘optimum’ transient response: Criteria and standard forms. Transactions of the American Institute of Electrical Engineers, Part II: Applications and Industry, 72(5), 273–288. https://doi.org/10.1109/TAI.1953.6371346. DOI: https://doi.org/10.1109/TAI.1953.6371346

Downloads

Published

29-11-2026

Issue

Section

Articles

How to Cite

Liu, C., Huang, M., Tao, L., & Zhang, S. (2026). Dual Loop PI Control of Brushless DC Motors Using an Improved Whale Optimization Algorithm. Frontiers in Computing and Intelligent Systems, 19(1), 15-23. https://doi.org/10.54097/wz8yb820