Hybrid Particle Swarm and Grey Wolf Optimization for Robust Feedback Control of Nonlinear Systems
Abstract
1. Introduction
Motivation for the PSO-GWO Hybrid Approach
- PSO-based PID tuning, which relies on swarm intelligence and velocity-guided refinement for efficient local exploitation;
- GWO-based PID tuning, which employs hierarchical search mechanisms to maintain diversity and enhance global exploration;
- Hybrid PSO-GWO tuning, which integrates both mechanisms to balance exploration and exploitation and to improve convergence performance under strong nonlinearities.
2. Problem Formulation
3. Optimization Framework
3.1. Particle Swarm Optimization (PSO)
3.2. Grey Wolf Optimizer (GWO)
3.3. Hybrid Strategy: PSO-GWO
- The first sub-swarm updates positions using PSO velocity and position rules, enabling efficient local exploitation.
- The second sub-swarm evolves according to GWO’s hierarchical encircling and hunting behavior, ensuring effective global exploration.
- At each iteration, elite and global best information is exchanged between the sub-swarms to preserve diversity and guide convergence toward the global optimum.
3.4. Complementarity of PSO and GWO
3.5. Expected Benefits of the Hybrid PSO-GWO Approach
- Complementary Search Dynamics: GWO promotes broad global exploration, while PSO provides rapid and precise local refinement in smooth or well-structured regions of the cost landscape.
- Robustness Against Local Minima: The hybrid structure mitigates premature convergence by combining the memory-driven exploitation of PSO with the stochastic encircling and leadership mechanisms of GWO.
- Enhanced Population Diversity: Exchange of elite and global-best information between the sub-swarms helps maintain diversity and prevents stagnation throughout the optimization process.
- Improved Convergence Efficiency: Hybridization accelerates convergence by allowing PSO to intensify the search around promising areas identified through exploratory behavior of GWO.
- Flexibility for Multi-Objective Tuning: The framework can be readily extended to handle multiple conflicting objectives, such as simultaneously minimizing ITAE and overshoot, without modifying the underlying hybrid structure.
3.6. General Procedure
- Initialization: Define the search space for PID parameters , generate the initial population (particles or wolves) randomly within these bounds, and initialize historical records for tracking cost evaluations.
- Simulation: For each candidate solution, simulate the second-order nonlinear system using the augmented first-order form of the dynamics, integrating the ODEs with a Runge–Kutta solver (RK45) over the simulation horizon.
- Cost Evaluation: Compute the performance index as the sum of ITAE and ISO terms, storing each evaluation for convergence analysis.
- Position Update:
- In PSO, update particle velocities and positions according to the standard PSO rules, taking into account the inertia, cognitive, and social components.
- In GWO, update the wolf positions using the encircling, hunting, and attacking strategies defined by the leader hierarchy.
- Global Best Update: Identify the best-performing solution across the population (global best) and update personal or elite records as needed.
- Iteration and Convergence Check: Repeat the simulation, evaluation, and update steps for the specified number of generations or until an early stopping criterion is satisfied (e.g., cost improvement below a threshold ).
- Output: The optimal PID parameters , the associated cost , and the total number of cost function evaluations are reported to quantify the performance and computational effort of each optimization strategy.
- Initialization: Define the search space for PID parameters . Initialize the PSO swarm and GWO population randomly within these bounds. Set personal bests for PSO particles and the leader hierarchy for GWO (). Initialize historical records for cost evaluations.
- Simulation: For each candidate solution (particle or wolf), simulate the second-order nonlinear system in augmented first-order form. Integrate the ODEs over the simulation horizon using a Runge–Kutta solver (RK45) to obtain the system response .
- Cost Evaluation: Compute the performance index as the sum of ITAE and ISO terms. Store each evaluation in a history log for convergence analysis and potential CSV export.
- PSO Update: Update particle velocities and positions using the PSO formulaHere, w is the inertia weight, and are the cognitive and social coefficients, and are independent random numbers uniformly distributed in , and x denotes the current particle position in the search space. Clip positions to remain within bounds. Update personal and global bests as necessary.
- GWO Iteration: Execute a single iteration of GWO for the current population. Evaluate costs, update positions based on encircling and hunting mechanisms guided by leaders , and identify the best GWO solution.
- Hybrid Global Best Update: Compare the global best solution from PSO and the best solution from GWO. Update the PSO global best if the GWO solution is superior.
- Iteration and Convergence Check: Repeat PSO and GWO update steps for the specified number of epochs or until the early stopping criterion is satisfied (e.g., improvement below ).
- Output: Report the optimal PID parameters , the associated cost , the total number of cost function evaluations, and the convergence history.
4. Benchmark Nonlinear Systems and Simulation Results
4.1. Benchmark Nonlinear Systems
- System 1: Pendulum-like nonlinear systemwith parameters , . This system exhibits moderate nonlinearity and resembles the dynamics of a simple pendulum with damping (for ). It is suitable for testing the convergence and robustness of PID tuning algorithms.
- System 2: Duffing oscillatorwith parameters , , . This system is commonly used to test control strategies for stiff and highly nonlinear systems due to the cubic stiffness term, which can produce multiple equilibria and nonlinear oscillatory behavior.
- System 3: Nonlinear damping systemwith parameters , , . This system introduces a velocity-dependent nonlinear damping term , creating asymmetric transient responses and testing the adaptability of metaheuristic PID tuning.
4.2. PSO Parameters
4.3. GWO Parameters
4.4. Hybrid PSO-GWO Parameters
4.5. Closed-Loop Response Under PSO, GWO, and Hybrid PSO-GWO PID Control
- System 1: Pendulum-like nonlinear systemFigure 2 presents the simulation results obtained for the pendulum-like nonlinear system. The figure is organized into three rows and two columns. The left column illustrates the closed-loop time responses to a unit-step reference input under the PID gains optimized by the PSO, GWO, and hybrid PSO–GWO algorithms, respectively. All three metaheuristic methods successfully stabilize the nonlinear system, while the hybrid PSO-GWO algorithm demonstrates faster convergence and a reduced overshoot compared to the individual approaches. The right column of Figure 2 illustrates the evolution of the cost function over successive evaluations, providing insight into the convergence behavior of each optimization strategy. For each case, the achieved minimum cost and the number of evaluations required to reach it are depicted graphically.
- System 2: Duffing oscillatorThe response of the Duffing oscillator is presented in Figure 3. Due to the presence of the cubic stiffness term, the system exhibits pronounced nonlinear and potentially oscillatory behavior. The left column of Figure 3 displays the time-domain responses of obtained using PID gains optimized by the PSO, GWO, and hybrid PSO-GWO algorithms. All three controllers are able to regulate the system effectively; however, the hybrid PSO-GWO algorithm produces a noticeably higher overshoot compared to PSO and GWO. This behavior can be mitigated by increasing the weight of the ISO term in the performance function. For instance, when , a significant suppression of overshoot is observed as illustrated in the first row of Figure 4. The right column of Figure 3 provides insights into the convergence of the cost function across iterations.
- System 3: Nonlinear damping systemFigure 5 illustrates the closed-loop behavior of the nonlinear damping system for the PID controllers optimized by PSO, GWO, and the hybrid PSO-GWO algorithm. The left column shows the system responses to a unit-step input. The presence of the velocity-dependent damping term introduces asymmetric transient dynamics and nonlinear dissipation effects. All optimized PID controllers are capable of stabilizing the system; however, the hybrid PSO-GWO approach again exhibits a relatively higher overshoot compared to the standalone PSO and GWO methods. Nevertheless, this increased transient excitation occurs at a substantially lower number of cost function evaluations, indicating a more efficient search process. As in the case of the Duffing oscillator, this overshoot can be mitigated by appropriately increasing the weighting coefficient of the ISO component in the performance index as can be observed in the second row of Figure 4, thereby emphasizing steady-state accuracy. The right column of Figure 5 depicts the evolution of the cost function during the optimization process, further highlighting the convergence characteristics and trade-offs in exploration and exploitation among the three algorithms.
5. Discussion
- Computational efficiency: The hybrid PSO-GWO algorithm achieves the target cost values with a substantially smaller number of cost function evaluations—approximately 10% of those required by standalone PSO or GWO. This remarkable reduction can be attributed to the synergy between the exploration capability of GWO and the exploitation behavior of PSO, which enables faster convergence toward promising regions of the search space. The hybrid structure effectively combines global and local search mechanisms, resulting in a rapid decrease in the cost function even in highly nonlinear conditions.
- System performance and overshoot behavior: Although the hybrid PSO-GWO demonstrates excellent convergence speed, its time-domain responses for Systems 2 and 3 exhibit pronounced overshoot and oscillations during the transient phase. This behavior suggests that the algorithm tends to generate aggressive control actions due to a strong emphasis on the integral and derivative gains during the optimization process. The observed overshoot can be mitigated by increasing the weighting factor in the ISO term of the performance function. Numerical experiments show that setting effectively suppresses overshoot without significantly affecting the total number of cost function evaluations, indicating a favorable trade-off between control smoothness and optimization efficiency.
- Comparison of PSO and GWO: Both standalone PSO and GWO algorithms achieve stable control performance with low cost values, though at the expense of considerably higher computational effort. GWO, in particular, exhibits consistent but slower convergence, reflecting its exploratory nature. PSO maintains fast convergence and strong exploitation of promising regions but requires more evaluations to achieve comparable performance to the hybrid approach.
- Sensitivity to the performance index parameters: The results further confirm that the design of the performance function, particularly the weighting of its integral and overshoot (ISO) components, plays a critical role in shaping controller behavior. For the hybrid PSO-GWO, an insufficiently penalized overshoot term (small ) leads to aggressive transient responses, whereas larger values produce smoother trajectories without degrading the convergence rate. Hence, the parameterization of the performance function directly governs the trade-off between control aggressiveness and robustness.
5.1. Practical Considerations and Mitigation of Common Risks in Metaheuristic PID Tuning
5.2. Remark on Stochastic Variability of Optimization Results
5.3. Robustness Test on the Chaotic Duffing Oscillator
6. Conclusions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Appendix A. PID Tuning of Second-Order Nonlinear Systems Using PSO
| Algorithm A1 PID tuning of second-order nonlinear systems using PSO. |
|
Appendix B. PID Tuning of Second-Order Nonlinear Systems Using GWO
| Algorithm A2 PID tuning of second-order nonlinear systems using GWO. |
|
Appendix C. PID Tuning of Second-ORDER Nonlinear Systems Using Hybrid PSO-GWO
| Algorithm A3 PID tuning of second-order nonlinear systems using Hybrid PSO-GWO. |
|
References
- Åström, K.J.; Hägglund, T. Advanced PID Control; ISA—The Instrumentation, Systems, and Automation Society: Research Triangle Park, NC, USA, 2006. [Google Scholar]
- Nise, N.S. Control Systems Engineering, 6th ed.; Wiley: Hoboken, NJ, USA, 2011. [Google Scholar]
- Ogata, K. Modern Control Engineering, 5th ed.; Pearson: Upper Saddle River, NJ, USA, 2010. [Google Scholar]
- Çelik, D.; Khosravi, N.; Khan, M.A.; Waseem, M.; Ahmed, H. Advancements in nonlinear PID controllers: A comprehensive review. Comput. Electr. Eng. 2026, 129, 110775. [Google Scholar] [CrossRef]
- Cao, Y.; Zhang, M.; Huang, J.; Mohammed, S. Load-Transfer Suspended Backpack With Bioinspired Vibration Isolation for Shoulder Pressure Reduction Across Diverse Terrains. IEEE Trans. Robot. 2025, 41, 3059–3077. [Google Scholar] [CrossRef]
- Yin, M.; Wang, H.; Shang, D.; Li, M.; Xu, T. Disturbance Compensation Control for Humanoid Robot Hand Driven by Tendon–Sheath Based on Disturbance Observer. IEEE Trans. Autom. Sci. Eng. 2025, 22, 13387–13397. [Google Scholar] [CrossRef]
- Cao, Y.; Ma, S.; Zhang, M.; Liu, J.; Huang, J.; Zhang, Z.-Q. Neuro-Fuzzy Musculoskeletal Model-Driven Assist-as-Needed Control via Impedance Regulation for Rehabilitation Robots. IEEE Trans. Fuzzy Syst. 2025, 33, 4277–4288. [Google Scholar] [CrossRef]
- Witte, K.A.; Fiers, P.; Sheets-Singer, A.L.; Collins, S.H. Improving the Energy Economy of Human Running With Powered and Unpowered Ankle Exoskeleton Assistance. Sci. Robot. 2020, 5, eaay9108. [Google Scholar] [CrossRef] [PubMed]
- Prity, F.S. Nature-inspired optimization algorithms for enhanced load balancing in cloud computing: A comprehensive review with taxonomy, comparative analysis, and future trends. Swarm Evol. Comput. 2025, 97, 102053. [Google Scholar] [CrossRef]
- Eberhart, R.C.; Kennedy, J. Particle swarm optimization. In Proceedings of the IEEE International Conference on Neural Networks, Perth, Australia, 27 November–1 December 1995; Volume 4, pp. 1942–1948. [Google Scholar]
- Kennedy, J.; Eberhart, R.C. A discrete binary version of the particle swarm algorithm. In Proceedings of the IEEE International Conference on Systems, Man, and Cybernetics, Orlando, FL, USA, 12–15 October 1997; Volume 5, pp. 4104–4108. [Google Scholar]
- Shi, Y.; Eberhart, R.C. A modified particle swarm optimizer. In Proceedings of the IEEE International Conference on Evolutionary Computation, Anchorage, AK, USA, 4–9 May 1998; pp. 69–73. [Google Scholar]
- Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey wolf optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef]
- Lu, S.; Wang, H.; Zhao, G.; Zhou, G. Grey Wolf Particle Swarm Optimized Pump–Motor Servo System Constant Speed Control Strategy. Machines 2023, 11, 178. [Google Scholar] [CrossRef]
- Portillo, P.; Garza-Castañón, L.E.; Minchala-Avila, L.I.; Vargas-Martínez, A.; Puig Cayuela, V.; Payeur, P. Robust Nonlinear Trajectory Controllers for a Single-Rotor UAV with Particle Swarm Optimization Tuning. Machines 2023, 11, 870. [Google Scholar] [CrossRef]
- Vargas, M.; Cortes, D.; Ramirez-Salinas, M.A.; Villa-Vargas, L.A.; Lopez, A. Random Exploration and Attraction of the Best in Swarm Intelligence Algorithms. Appl. Sci. 2024, 14, 11116. [Google Scholar] [CrossRef]
- Zambou, M.C.Z.; Kammogne, A.S.T.; Siewe, M.S.; Azar, A.T.; Ahmed, S.; Hameed, I.A. Optimized Nonlinear PID Control for Maximum Power Point Tracking in PV Systems Using Particle Swarm Optimization. Math. Comput. Appl. 2024, 29, 88. [Google Scholar]
- Solaiman, O.S.; Sihwail, R.; Shehadeh, H.; Hashim, I.; Alieyan, K. Hybrid Newton–Sperm Swarm Optimization Algorithm for Nonlinear Systems. Mathematics 2023, 11, 1473. [Google Scholar] [CrossRef]
- Yang, J.; Li, X.; Zheng, Q.; Liu, L. Particle Swarm Optimization-Enhanced Fuzzy Control for Electrical Conductivity Regulation in Integrated Water–Fertilizer Irrigation Systems. Automation 2025, 6, 76. [Google Scholar] [CrossRef]
- Dillen, W.; Lombaert, G.; Schevenels, M. Performance assessment of metaheuristic algorithms for structural optimization taking into account the influence of algorithmic control parameters. Front. Built Environ. 2021, 7, 618851. [Google Scholar]
- Juan, A.A.; Keenan, P.; Martí, R.; McGarraghy, S.; Panadero, J.; Carro, P.; Oliva, D. A review of the role of heuristics in stochastic optimisation: From metaheuristics to learnheuristics. Ann. Oper. Res. 2023, 320, 831–861. [Google Scholar] [CrossRef]







| Parameter | Symbol | Value |
|---|---|---|
| Population size | N | 30 |
| Inertia weight | 0.7 | |
| Cognitive coefficient | 1.5 | |
| Social coefficient | 1.5 | |
| Max iterations | 50 |
| Parameter | Symbol | Value |
|---|---|---|
| Population size | N | 30 |
| Max epochs | 50 | |
| Alpha, Beta, Delta weights | – | 1.0 (default) |
| Algorithm/Metric | System 1 | System 2 | System 3 |
|---|---|---|---|
| PSO | |||
| (10.0, 3.5195, 4.6762) | (10.0, 0.0, 4.6680) | (10.0, 4.3042, 4.0480) | |
| 0.1984 | 0.1906 | 0.1797 | |
| # cost function evaluations | 1530 | 506 | 1530 |
| Stop condition | max iter | early stop | max iter |
| GWO | |||
| (10.0, 3.5028, 4.6937) | (10.0, 0.0, 4.6677) | (9.9926, 4.3345, 4.0171) | |
| 0.1983 | 0.1906 | 0.1800 | |
| # cost function evaluations | 1502 | 1449 | 1502 |
| Stop condition | early stop | early stop | early stop |
| Hybrid PSO-GWO | |||
| (9.6576, 2.7922, 5.1320) | (8.5056, 8.4692, 3.1393) | (5.3803, 3.6523, 2.7344) | |
| 0.4205 | 0.8646 | 0.3942 | |
| # cost function evaluations | 105 | 105 | 105 |
| Stop condition | early stop | early stop | early stop |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Vrabel, R. Hybrid Particle Swarm and Grey Wolf Optimization for Robust Feedback Control of Nonlinear Systems. Automation 2025, 6, 89. https://doi.org/10.3390/automation6040089
Vrabel R. Hybrid Particle Swarm and Grey Wolf Optimization for Robust Feedback Control of Nonlinear Systems. Automation. 2025; 6(4):89. https://doi.org/10.3390/automation6040089
Chicago/Turabian StyleVrabel, Robert. 2025. "Hybrid Particle Swarm and Grey Wolf Optimization for Robust Feedback Control of Nonlinear Systems" Automation 6, no. 4: 89. https://doi.org/10.3390/automation6040089
APA StyleVrabel, R. (2025). Hybrid Particle Swarm and Grey Wolf Optimization for Robust Feedback Control of Nonlinear Systems. Automation, 6(4), 89. https://doi.org/10.3390/automation6040089
