https://doi.org/10.65770/BCLG4677
ABSTRACT
Mathematical modeling, particularly the SEIR (Susceptible, Exposed, Infected, Recovered) compartmental model, has become an essential tool for understanding the dynamics of infectious disease spread. However, the resulting system of nonlinear ordinary differential equations (ODE) generally lacks analytical solutions, thus requiring numerical approaches. This study analyzes the numerical stability limit and the positivity condition of the fourth-order Runge-Kutta method (RK4) when applied to the SEIR epidemiological model with vaccination intervention. Through a local linearization approach using the Jacobian matrix, the dominant eigenvalues of the system are computed to formulate the RK4 stability limit. Additionally, a more restrictive positivity condition is formulated to prevent the emergence of negative populations, which are biologically meaningless. Numerical simulations are conducted using epidemiological parameters representing an aggressive disease transmission and various time step sizes. The results show that the RK4 numerical stability limit provides a relatively loose upper bound on the step size, whereas the positivity condition yields a much stricter bound. Simulations with small step sizes produce stable and positive solutions; however, when the step size exceeds the positivity limit, sharp oscillations emerge, eventually leading to negative population values, causing the solution to lose its biological meaning. This study concludes that satisfying the numerical stability limit alone is insufficient, and the positivity condition must be prioritized as a criterion in selecting the time step size for epidemiological simulations using the RK4 method.
References
- [1] Yavuz, M., CoĹźar, F., GĂĽnay, F., & Ă–zdemir, F. (2021). A new mathematical modeling of the COVID-19 pandemic including the vaccination campaign. Open Journal of Modelling and Simulation, 9(4), 299-321. https://doi.org/10.4236/ojmsi.2021.93020
- [2] Asif, M., Ali Khan, Z., Haider, N., & Al-Mdallal, Q. (2020). Numerical simulation for solution of SEIR models by meshless and finite difference methods. Chaos, Solitons and Fractals, 141, 110340.
- [3] Farman, M., Saleem, M. U., Ahmad, A., & Ahmad, M. O. (2018). Analysis and numerical solution of SEIR epidemic model of measles with non-integer time fractional derivatives by using Laplace Adomian Decomposition Method. Ain Shams Engineering Journal, 9, 3391–3397.
- [4] Inayaturohmat, F., Zikkah, R. N., Supriatna, A. K., et al. (2021). Mathematical model of COVID-19 transmission in the presence of waning immunity. Journal of Physics: Conference Series, 1722, 012038. https://doi.org/10.1088/1742-6596/1722/1/012038
- [5] Wang, Q., Xiang, K., Zhu, C., & Zou, L. (2023). Stochastic SEIR epidemic models with virus mutation and logistic growth of susceptible populations. Mathematics and Computers in Simulation, 212, 289–309.
- [6] Carcione JM, Santos JE, Bagaini C and Ba J (2020) A Simulation of a COVID-19 Epidemic Based on a Deterministic SEIR Model. Front. Public Health 8:230. https://doi.org/10.3389/fpubh.2020.00230
- [7] Ashgi, R., Pratama, M. A. A., & Purwani, S. (2021). Comparison of Numerical Simulation of Epidemiological Model between Euler Method with 4th Order Runge Kutta Method. International Journal of Global Operations Research, 2(1), 37-44.
- [8] Aakash, M., Gunasundari, C., & Al-Mdallal, Q. M. (2023). Mathematical modeling and simulation of SEIR model for COVID-19 outbreak: A case study of Trivandrum. Frontiers in Applied Mathematics and Statistics, 9, 1124897. https://doi.org/10.3389/fams.2023.1124897
- [9] Hurit, R. U., & Mungkasi, S. (2021). The Euler, Heun, and Fourth Order Runge-Kutta Solutions to SEIR Model for the Spread of Meningitis Disease. Mathline: Jurnal Matematika dan Pendidikan Matematika, 6(2), 140–153.
- Begum, S., Mahmud, F., Hasan, M. Z., Kawsar, H. M. N., & Akbar, M. A. (2026). A computationally efficient RK4-FNN hybrid approach for high-precision tuberculosis dynamics modeling: SIR/SEIR model applications. Arab Journal of Basic and Applied Sciences, 33(1), 134-151.
- MacĂas-DĂaz, J. E. (2021). Analysis of a nonstandard computer method to simulate a nonlinear stochastic epidemiological model of coronavirus-like diseases. Results in Physics, 22, 103866. https://doi.org/10.1016/j.cmpb.2021.106054
- Msmali, A.H., Dayan, F., Rafiq, M., Ahmed, N., Ahmadini, A.A.H. et al. (2023). A Nonstandard Computational Investigation of SEIR Model with Fuzzy Transmission, Recovery and Death Rates. Computers, Materials & Continua, 77(2), 2251–2269. https://doi.org/10.32604/cmc.2023.040266
- Dayan, F., Ahmed, N., Rafiq, M., Raza, A., Khan, I., & eldin, E. M. T. (2023). A reliable numerical investigation of an SEIR model of measles disease dynamics with fuzzy criteria. Scientific Reports, 13(1), 15840. https://doi.org/10.1038/s41598-023-42953-x
- Yousuf, M., & Alshakhoury, N. (2026). Stability analysis and numerical simulation of nonlocal extended epidemic models using positivity-preserving scheme. Scientific Reports. https://doi.org/10.1038/s41598-026-36463-9
- Purwani, S., Inayaturohmat, F., & Tresna, S. T. (2022). COVID-19 epidemic model: Study of numerical methods and solving optimal control problem through forward-backward sweep method. Communications in Mathematical Biology and Neuroscience, 2022, 123. https://doi.org/10.28919/cmbn/7775
Download all article in PDF
![]()


