Volume 6 • Issue 2 • PP: 01–10 • 2026
Comparative Study of Two Optimization Algorithms for Solving Nonlinear Differential Equations: A Performance Analysis
Open Access & Copyright
© 2026 The Author(s). Published by ASPG. This article is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
Abstract
The purpose of this work was to benchmark three population-based metaheuristic optimizers—Particle Swarm Optimization, Differential Evolution, and Grey Wolf Optimizer—when used to solve nonlinear ordinary differential equations within the Neural Network Trial Solution methodology. Problems used for testing were the Riccati initial value problem, the nonlinear pendulum IVP, the Bratu boundary value problem, and the Lane-Emden equation with index five. All problems were implemented such that their boundary/initial conditions were satisfied exactly through analytical construction while their residuals at collocation points were minimized through unconstrained optimization. Thirty Monte Carlo runs of each algorithm were performed with same underlying settings to facilitate statistical comparisons between algorithms. Metrics used for comparisons were mean absolute error (MAE), root mean square error (RMSE), maximum error at any point, and rate of convergence. All significant testing was performed with the Wilcoxon signed-rank test. PSO is shown to consistently provide the smallest mean absolute error across three of the four problems, with an MAE as small as 2.78×10−5 on the Bratu BVP, while GWO was shown to stagnate prematurely when solving boundary value problems.
Keywords
References
[1] I. E. Lagaris, A. Likas, and D. I. Fotiadis, "Artificial Neural Networks for Solving Ordinary and Partial Differential Equations," IEEE Transactions on Neural Networks, vol. 9, no. 5, pp. 987–1000, Sep. 1998.
[2] J. Kennedy and R. C. Eberhart, "Particle Swarm Optimization," in Proc. IEEE International Conference on Neural Networks, Perth, Australia, 1995, vol. 4, pp. 1942–1948.
[3] R. Storn and K. Price, "Differential Evolution—A Simple and Efficient Heuristic for Global Optimization overContinuous Spaces," Journal of Global Optimization, vol. 11, no. 4, pp. 341–359, Dec. 1997.
[4] M. Clerc and J. Kennedy, "The Particle Swarm—Explosion, Stability, and Convergence in a Multidimensional Complex Space," IEEE Transactions on Evolutionary Computation, vol. 6, no. 1, pp. 58–73, Feb. 2002.
[5] S. Mirjalili, S. M. Mirjalili, and A. Lewis, "Grey Wolf Optimizer," Advances in Engineering Software, vol. 69, pp. 46–61, Mar. 2014.
[6] J. Derrac, S. García, D. Molina, and F. Herrera, "A Practical Tutorial on the Use of Nonparametric Statistical Tests as a Methodology for Comparing Evolutionary and Swarm Intelligence Algorithms," Swarm and Evolutionary Computation, vol. 1, no. 1, pp. 3–18, Mar. 2011.
[7] M. Raissi, P. Perdikaris, and G. E. Karniadakis, "Physics-Informed Neural Networks: A Deep Learning Framework for Solving Forward and Inverse Problems Involving Nonlinear Partial Differential Equations," Journal of Computational Physics, vol. 378, pp. 686– 707, Feb. 2019.
[8] Z. Sabir, M. A. Z. Raja, M. Umar, and M. Shoaib, "Neuro-Swarm Intelligent Computing to Solve the Second-Order Singular Functional Differential Model," The European Physical Journal Plus, vol. 135, no. 6, p. 474, Jun. 2020.
[9] Z. Sabir, C. M. Khalique, M. A. Z. Raja, and D. Baleanu, "Evolutionary Computing for Nonlinear Singular Boundary Value Problems Using Neural Network, Genetic Algorithm and Active-Set Algorithm," The European Physical Journal Plus, vol. 136, no. 2, p. 195, Feb. 2021.
[10] Z. Sabir, "Neuron Analysis Through the Swarming Procedures for the Singular Two-Point Boundary Value Problems Arising in the Theory of Thermal Explosion," The European Physical Journal Plus, vol. 137, no. 5, p. 638, May 2022.
[11] Z. Sabir, S. B. Said, Q. Al-Mdallal, et al., "A NeuroSwarm Procedure to Solve the Novel Second Order Perturbed Delay Lane–Emden Model Arising in Astrophysics," Scientific Reports, vol. 12, p. 22607, Dec. 2022.
[12] A. P. Piotrowski, J. J. Napiorkowski, and A. E. Piotrowska, "Particle Swarm Optimization or Differential Evolution—A Comparison," Engineering Applications of Artificial Intelligence, vol. 121, p. 106008, May 2023.
[13] S. u. I. Ahmad, F. Faisal, M. Shoaib, and M. A. Z. Raja, "A New Heuristic Computational Solver for Nonlinear Singular Thomas–Fermi System Using Evolutionary Optimized Cubic Splines," The European Physical Journal Plus, vol. 135, no. 1, p. 55, Jan. 2020.
[14] S. Cuomo, V. Schiano Di Cola, F. Giampaolo, G. Rozza, M. Raissi, and F. Piccialli, "Scientific Machine Learning Through Physics-Informed Neural Networks: Where We Are and What’s Next," Journal of Scientific Computing, vol. 92, p. 88, 2022.
[15] W. Gao, Y. Luo, J. Xu, and S. Zhu, "Evolutionary Algorithm with Multiobjective Optimization Technique for Solving Nonlinear Equation Systems," Information Sciences, vol. 541, pp. 345–361, 2020.
[16] M. Kaveh and M. S. Mesgari, "Application of Meta- Heuristic Algorithms for Training Neural Networks and Deep Learning Architectures: A Comprehensive Review," Neural Processing Letters, vol. 55, pp. 4519– 4622, 2023.
[17] W. Gao, G. Li, Q. Zhang, Y. Luo, and Z.Wang, "Solving Nonlinear Equation Systems by a Two-Phase Evolutionary Algorithm," IEEE Transactions on Systems, Man, and Cybernetics: Systems, vol. 51, no. 9, pp. 5652– 5663, 2021.
[18] V. Venkatachalapathy and S. M. Mallikarjunaiah, "A Deep Learning Neural Network Framework for Solving Singular Nonlinear Ordinary Differential Equations," International Journal of Applied and Computational Mathematics, vol. 9, no. 3, p. 68, Jun. 2023.
[19] J. Derrac, S. García, D. Molina, and F. Herrera, "A Practical Tutorial on the Use of Nonparametric Statistical Tests as a Methodology for Comparing Evolutionary and Swarm Intelligence Algorithms," Swarm and Evolutionary Computation, vol. 1, no. 1, pp. 3–18, Mar. 2011.
[20] M. F. Ahmad, N. A. Mat Isa, W. H. Lim, and K. M. Ang, "Differential Evolution: A Recent Review Based on State-of-the-Art Works," Alexandria Engineering Journal, vol. 61, no. 5, pp. 3831–3872, 2022.
[21] Z. Sabir, D. Baleanu, M. R. Ali, and R. Sadat, "Neuron Analysis of the Two-Point Singular Boundary Value Problems Arising in the Thermal Explosion’s Theory," Neural Processing Letters, vol. 54, pp. 5297–5324, 2022.
[22] K. Meidani, A. Hemmasian, S. Mirjalili, and A. Barati Farimani, "Adaptive Grey Wolf Optimizer," Neural Computing and Applications, vol. 34, no. 10, pp. 7711– 7731, 2022.
[23] J. Carrasco, S. García, M. M. Rueda, S. Das, and F. Herrera, "Recent Trends in the Use of Statistical Tests for Comparing Swarm and Evolutionary Computing Algorithms: Practical Guidelines and a Critical Review," Swarm and Evolutionary Computation, vol. 54, p. 100665, 2020.
Cite This Article
Choose your preferred format
Publisher's Note
The statements, opinions, and data presented in this article are solely those of the author(s) and do not necessarily represent those of ASPG, the journal, or its editors. ASPG and the editors disclaim responsibility for any harm arising from the use of any ideas, methods, instructions, or products described in this article, to the fullest extent permitted by applicable law.