Cover Image

Design of PID Controller for Magnetic Levitation System using Harris Hawks Optimization

Seifedine Kadry, Venkatesan Rajinikanth


In most real-time industrial systems, optimal controller implementation is very essential to maintain the output based on the reference input. The controller design problem becomes a complex task when the real-time system model becomes greatly non-linear and unstable. The proposed research aims to design the finest PID controller for the unstable Magnetic Levitation System (MLS) using the Harris Hawks Optimization (HHO) algorithm. The MLS is a highly unstable electro-mechanical system and hence the design of the controller is a complex task. The proposed work implements one Degree of Freedom (1DOF) and 2DOF PID for the system. In this work, the essential controller is designed with a two-step process; (i) Initial optimization search to find the P-controller (Kp) gain to stabilize the system and (ii) Tuning the integral (Ki) and derivative (Kd) gains to reduce the deviation between the reference input and MLS output. The performance of the proposed controller is validated with the servo and regulatory operations and the result of this study confirms that the proposed method helps to get better error value and time domain specifications compared to other available methods.


PID Controller; Unstable system; Magnetic levitation; Harris Hawks; optimization; Performance validation

Full Text:



R.I. Alfian, A. Ma'arif, and S. Sunardi, “Noise Reduction in the Accelerometer and Gyroscope Sensor with the Kalman Filter Algorithm,†Journal of Robotics and Control (JRC), vol.2, no.3, pp.180-189, 2020. DOI:

A. Ma'arif, A.I. Cahyadi, S. Herdjunanto, and O.Wahyunggoro, “Tracking Control of High Order Input Reference Using Integrals State Feedback and Coefficient Diagram Method Tuning,†IEEE Access, vol.8, pp.182731-182741, 2020. DOI:

V. Rajinikanth, and K. Latha, “Bacterial Foraging Optimization Algorithm Based PID Controller Tuning For Time Delayed Unstable System,†The Mediterranean Journal of Measurement and Control, vol.7, no.1, pp.197-203, 2011.

K.S. Manic, V. Rajinikanth, S. Ananthasivam, and U. Suresh, “Design of Controller in Double Feedback Control Loop–An Analysis With Heuristic Algorithms,†Chemical Product and Process Modeling, vol.10, no.4, pp.253-262, 2015. DOI:

N.S.M. Raja, and V. Rajinikanth, “Brownian Distribution Guided Bacterial Foraging Algorithm for Controller Design Problem,†Advances in Intelligent Systems and Computing, vol.248, pp. 141-148, 2014. DOI:

V. Rajinikanth, and S.C. Satapathy, “Design of Controller for Automatic Voltage Regulator Using Teaching Learning Based Optimization,†Procedia Technology, vol.21, pp.295-302, 2015. DOI:

I. Iswanto, and A. Ma’arif, “Robust Integral State Feedback Using Coefficient Diagram in Magnetic Levitation System,†IEEE Access, vol.8, pp.57003-57011, 2020. DOI:

A. Ma'arif, H. Nabila, O. Wahyunggoro, “Application of Intelligent Search Algorithms in Proportional-Integral-Derivative Control of Direct-Current Motor System,†In Journal of Physics: Conference Series, vol. 1373, No. 1, pp. 012039, 2019. DOI:

B. Muthu, C.B. Sivaparthipan, G. Manogaran, R. Sundarasekar, S. Kadry, A. Shanthini, and A. Dasel, “IOT Based Wearable Sensor for Diseases Prediction and Symptom Analysis in Healthcare Sector,†Peer-to-peer networking and applications, pp.1-12, 2020. DOI:

F.Kulakov, S. Kadry, G. Alferov, and A. Sharlay, “Bilateral Remote Control Over Space Manipulators,†In AIP Conference Proceedings, vol. 2040, no. 1, pp. 150015, 2018.

A. Madi, O.K. Zein, and S. Kadry., “On the Improvement of Cyclomatic Complexity Metric,†International Journal of Software Engineering and Its Applications, vol.7, no.2, pp.67-82, 2013.

L.A.Lund, Z. Omar, I. Khan, S. Kadry, S. Rho, I.A., Mari, and K.S.Nisar, “Effect Of Viscous Dissipation in Heat Transfer of MHD Flow of Micropolar Fluid Partial Slip Conditions: Dual Solutions and Stability Analysis,†Energies, vol.12, no.24, pp.4617, 2019. DOI:

S. Cotsakis, S. Kadry, G. Kolionis, and A. Tsokaros, “Asymptotic Vacua with Higher Derivatives,†Physics Letters B, vol.755, pp.387-392, 2016. DOI:

K. Smaili, T. Kadri, and S. Kadry, “A Modified-Form Expressions for the Hypoexponential Distribution,†British Journal of Mathematics & Computer Science, vol.4, no.3, pp.322-332, 2014. DOI:

A. Abou Jaoude, E.T. Khaled, S. Kadry, and H. Noura, “Prognostic Model for Buried Tubes,†Journal of Mathematics and Statistics, vol.6, no.2, pp.116-124, 2010. DOI:

S. Kadry, G. Alferov, G. Ivanov, A. Sharlay “Almost Periodic Solutions of First-Order Ordinary Differential Equations,†Mathematics, vol.6, no.9, pp.171, 2018. DOI:

N.S.M. Raja, K.S. Manic, and V. Rajinikanth, “Firefly Algorithm with Various Randomization Parameters: An Analysis,†Lecture Notes in Computer Science, vol.8297, pp.110-121, 2013.

V. Rajinikanth, and K. Latha, “Tuning and retuning of PID controller for unstable systems using evolutionary algorithm,†ISRN Chemical Engineering, vol.2012, ID 693545, 2012.

A.A.Heidari, S. Mirjalili, H. Faris, I. Aljarah, M. Mafarja, and H. Chen, “Harris hawks optimization: Algorithm and applications,†Future Generation Computer Systems, vol.97, pp.849-872, 2019. DOI:

H. Moayedi, A. Osouli, H.Nguyen, and A.S.A. Rashid, “A novel Harris hawks’ optimization and k-fold cross-validation predicting slope stability,†Engineering with Computers, pp.1-11, 2019. DOI:

B.S.Yıldız, and A.R. Yıldız, “The Harris hawks optimization algorithm, salp swarm algorithm, grasshopper optimization algorithm and dragonfly algorithm for structural design optimization of vehicle components,†Materials Testing, vol.61, no.8, pp.744-748, 2019. DOI:

K. Sundaravadivu, C. Ramadevi, and R. Vishnupriya, “Design of Optimal Controller for Magnetic Levitation System Using Brownian Bat Algorithm,†Advances in Intelligent Systems and Computing, vol.394, pp. 1321-1329, 2016. DOI:

M. Santhosh, R.R.S. Raj, R. Sivakumar, P. Deepa, and D. Shivaani, “Fractional-Order Controller design for Electrical Systems-A Study,†In 2019 5th International Conference on Electrical Energy Systems (ICEES), IEEE, pp. 1-5, 2019, DOI:

I. Ahmad and M.A. Javaid, “Nonlinear model and controller design for magnetic levitation system,†In: Proceedings of the 9th WSEAS international conference on signal processing, robotics and automation (ISPRA ‘10). University of Cambridge, UK, pp. 324–328, 2010.

K.S. Manic, S. Devakumar, V. Vijayan, and V. Rajinikanth, “Design of Centralized PI Controller for Interacting Conical Tank System,†Indian Journal of Science and Technology, vol.9, no.12, pp.89920, 2016. DOI:

H. Moayedi, A. Osouli, H. Nguyen, and A.S.A., Rashid, “A Novel Harris Hawks’ Optimization and K-Fold Cross-Validation Predicting Slope Stability,†Engineering with Computers, pp.1-11, 2019. DOI:



  • There are currently no refbacks.

Copyright (c) 2021 Universitas Ahmad Dahlan

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

About the JournalJournal PoliciesAuthor Information

Jurnal Ilmiah Teknik Elektro Komputer dan Informatika
ISSN 2338-3070 (print) | 2338-3062 (online)
Organized by Electrical Engineering Department - Universitas Ahmad Dahlan
Published by Universitas Ahmad Dahlan
Email 1:
Email 2:
Office Address: Kantor Program Studi Teknik Elektro, Lantai 6 Sayap Barat, Kampus 4 UAD, Jl. Ringroad Selatan, Tamanan, Kec. Banguntapan, Bantul, Daerah Istimewa Yogyakarta 55191, Indonesia