Abstract
This paper presents a comparative analysis of deterministic and stochastic computational modeling approaches for the optimal control of COVID-19. We formulate a compartmental epidemic model with perturbation by white noise that incorporates various factors influencing disease transmission. By incorporating stochastic effects, the model accounts for uncertainties inherent in real-world epidemic data. We establish the mathematical properties of the model, such as well-posedness and the existence of stationary distributions, which are crucial for understanding long-term epidemic dynamics. Moreover, the study presents an optimal control strategies to mitigate the epidemic’s impact, both in deterministic and stochastic sceneries. Reported data from Algeria are used to parameterize the model, ensuring its relevance and applicability to practical satiation. Through numerical simulations, the study provides insights into the effectiveness of different control measures in managing COVID-19 outbreaks. This research contributes to advancing our understanding of epidemic dynamics and informs decision-making processes for epidemic controlling interventions.
Similar content being viewed by others
Introduction
Mathematical modeling and simulation are essential tools for informed decision-making in epidemic control1,2. Each epidemic exhibits a unique biological characteristics, necessitating the formulation of dynamical models to accurately capture the transmission processes and address real-world scenarios. The highly contagious Coronavirus infection which first arose in China in December 2019 and spread quickly to cover practically the whole world posing a serious threat to everyone on the globe3. The COVID-19 epidemic has created an unparalleled worldwide health crisis causing great human suffering and societal upheaval. The virus has been the target of multiple efforts to stop its spread, including non-pharmaceutical therapies, vaccination drives, and other public health measures. Mathematical models help to explore how a disease spreads through a population and suggest effective control interventions. These models can be applied to analyze public health measures’ efficacy and forecast the progression of epidemic. It’s a potent instrument that may be utilized to comprehend the spread of illness and formulate control methods4,5.
Although, several deterministic epidemic models have been discussed in previous studies6,7. Stochastic differential models are more effective than deterministic models for simulating biological phenomena, as they offer a higher level of realism8,9,10. Running a stochastic model multiple times generates a distribution of possible outcomes, providing deeper and more practical insights. In contrast, deterministic models yields only a single predicted value11,12. The transmission of infectious disease is inherently random, making it essential to incorporate environmental noise into models to capture environmental fluctuations. Different types of environmental noise, such as white noise13, Lévy noise14 and colored noise15, each contribute unique advantages to disease modeling. Whit noise in epidemic modeling captures random, uncorrelated fluctuations that address uncertainties in disease spread. It is frequently incorporated into deterministic models to account for variability in transmission processes, human behavior. It offers a practical approach to introducing randomness, improving the realism of epidemic predictions. In recent studies, many researchers have utilized white noise in epidemic modeling to better understand and simulate stochastic effects in disease dynamics16,17,18. A recent study on computer virus propagation using stochastic modeling approach has been presented in19.
The optimal control theory in epidemics plays a significant role in providing effective preventative control techniques20. Many researchers have applied optimal control theory to various epidemiological models for effetely mitigating the outbreaks. For example in21, the authors studied a deterministic SEIQR type optimal control model for mitigating COVID-19 in Nigeria. A novel stochastic optimal controlling model of hepatitis C was analyzed in22. In5 fractional control of coronavirus epidemic in Algeria was investigated. In6, the researchers analyzed COVID-19 spread in Indonesia, incorporating vaccination effects using real data.
This study aims to formulate a stochastic and deterministic optimal control frameworks for modeling and managing the dynamics of the COVID-19 epidemic. Our approach integrates mathematical modeling and optimization techniques to develop strategies that minimize the spread of the virus while considering the constraints imposed by limited resources and societal needs. The present study initiate by formulating a COVID-19 compartmental model that incorporates the effects of perturbations induced by white noise. The resulting stochastic problem helps to provide a more realistic scenario of the inherent uncertainties and random fluctuations observed in various real-world problems including epidemic dynamics. We aim to gain a deeper insights into the dynamics of the pandemic and identify optimal control measures. The impact of various control measures, such as vaccination campaigns, social distancing, and treatment strategies on reducing the incidence and new outbreaks of the epidemics are analyzed graphically. To ensure the practical applicability of our model, we parameterize it using real-world data reported in Algeria for a specific time period. We estimate the model parameters via a statistical tool that best fit the observed data, thereby enhancing the accuracy and reliability of our mathematical framework. To analyze the effectiveness of our proposed control measures, we employ numerical simulations to depict the analytical results obtained from our model. The numerical results demonstrate the efficacy of different control strategies in managing the COVID-19 pandemic. This knowledge can inform policymakers and public health authorities in making informed decisions regarding the implementation of control measures, resource allocation, and the optimization of public health interventions.
This study is mainly divided in six sections. Mathematical formulation of the stochastic model is provided in “Mathematical formulation of the model”. Some qualitative aspects are presented in “Qualitative analysis of our stochastic model”. Formulation and analysis of optimal control problem is presented in “Formulation of stochastic optimal control”. Numerical simulation and parameter estimation are presented in “Numerical simulations” to support our results. Finally, the work is concluded in “Conclusion”.
Mathematical formulation of the model
Motivated by the above, as well as by works6,7, we construct a stochastic mathematical model for the dynamics of the transmission of the COVID-19 epidemic. The classification of the totla population N(t) take place into four classes: S(t) susceptible, V(t) vaccinated, I(t) infected, R(t) recovered, at time \(t>0\) with \(N=S+V+I+R\).
According to the characteristics of COVID-19, the following presumptions are considered in our model: there are no negative parameters, the susceptible population gets vaccinated, infected people is able to transmit the infection to susceptible or vaccinated person, recovered persons have temporary immunity.
The assumption that white noise is proportional to the compartments is a widely used and practical approach for modeling random fluctuations in population dynamics16,17,18,23. This approach captures the notion that larger population undergo greater random variations.
Considering that white noise is in direct proportional to S, V, I, R. Thus, we get the following stochastic model:
where \(W_{j}\) \(\{j=1,..,4\}\) are independently Brownian motion. \(\rho _{j}\) \(\{j=1,..,4\}\) denotes the thew white noise intensity.
If we put \(\rho _{j}=0, \ j=1,2,3,4.\), the following deterministic version of model (1) will result:
Detail of the model embedded parameters are listed in the below table 1.
The dynamical characteristics of the COVID-19 model (2) can be thoroughly analyzed based on the threshold number, which, as referenced in24, and is defined as follows:
More precisely, if \(R_{0}^{d} < 1\), the disease-free equilibrium \(P_{0}=(\frac{\Delta }{k+\delta },\frac{k\Delta }{\delta (k+\delta )},0,0)\) is globally asymptotically stable (GAS). If \(R_{0}^{d} > 1\) the model posses an endemic equilibrium denoted \(P^{*} = (S^{*},V^{*}, I^{*}, R^{*})\), and it is further GAS.
In the subsequent section, we present a comprehensive qualitative study and dynamic analysis of compartmental model (1). In this study, we presume that \((\Omega ,{\mathcal {F}}, {\mathcal {P}})\) is a complete probability space coupled with a filtration \(({\mathcal {F}}_{t})_{t\ge 0}\) that meets the standard condition.
Qualitative analysis of our stochastic model
Existence of unique and global positive solution
In the following, we will demonstrate that the system (1) has a unique positive solution.
Theorem 1
For all \((S(0),V(0),I(0),R(0)) \in {\mathbb {R}}^{4}_{+}\), a unique solution of the system (1) can be determined. Moreover, the solution will remain in \({\mathbb {R}}^{4}_{+}\)\(\forall\) \(t\ge 0\) almost surely.
Proof
As the coefficients of the model are locally Lipschitz continues for all initial values in \(\in {\mathbb {R}}^{4}_{+}\), there exists a unique solution (S(t), V(t), I(t), R(t)) for \(t \in [0,\tau _{e})\), where \(\tau _{e}\) denotes the final time. To show that the aforementioned solution is global, it is necessary to prove that \(\tau _{e}=\infty\) a.s. Assuming that m is a sufficiently large non-negative number and S(0), V(0), I(0) and R(0) all lie within \([\frac{1}{m}, m]\). The stopping time is given by
where in the subsequent results, we set \(\inf \varnothing =\infty\) where, \(\varnothing\) is an empty set. It is clear that \(\tau _{l}\) has an increasing nature as \( l\rightarrow \infty\). Further, setting \(\tau _{\infty }=\lim _{l \rightarrow \infty }\tau _{l}\), with \(\tau _{e} \ge \tau _{\infty } \ a.s\).
Under the confirmation that \(\tau _{\infty }=\infty \ a.s.\), then, we have \(\tau _{e}=\infty\) and in a result \((S(t),V(t),I(t),R(t))\in {\mathbb {R}}^{4}_{+} \ a.s\)\(\forall\) \(t\ge 0\). Further, we proceed to prove that \(\tau _{\infty }=\infty\). Based on the assumption that \(\tau _{\infty }< \infty\), then there exists T greater than 0 and \(\varepsilon \in (0,1)\) satisfying \({\mathbb {P}}\{\tau _{\infty }\le T\}\ge \varepsilon\). Therefore, there exists an integer \(l_{1} \ge m\) such that
We define a \(C^{2}\)-function \(\Sigma : {\mathbb {R}}^{4}_{+}\) \(\rightarrow\) \({\mathbb {R}}_{+}\) as follows :
\(\Sigma\) is non-negativity as can verified via \(x^*-\ln x^*-1 \ge 0\), \(\forall x^*>0.\) Moreover, the implementation of Itô formula gives
where \(L\Sigma : \ {\mathbb {R}}^{4}_{+} \rightarrow {\mathbb {R}}_{+}\) is given by
In the given context, M denotes a constant that is independent of t, S, I, V, and R.
Integration from 0 to \(\tau _{l} \wedge T = \min \{ \tau _{l},T\}\) gives
Taking expectation on both sides, We obtain
Let \(\Gamma _{l}=\{\tau _{l}\le T\}\) \(\forall \ l\ge l_{1}\) and by the result stated in (3) we have \({\mathbb {P}}(\Gamma _{l})\ge \varepsilon\). It is worth noticing that for every \(\omega\) in \(\Gamma _{l}\), we can find at least one \(S(\tau _{l},\omega )\), \(V(\tau _{l},\omega )\), \(I(\tau _{l},\omega )\), and \(R(\tau _{l} \wedge T)\) that are equal to l or \(\frac{1}{l}\), consequently
Therefore,
\({\mathbb {I}}_{\Gamma _{l}(\omega )}\) denotes the corresponding indicator function for \(\Gamma _{l}\).
If \(l \rightarrow \infty\), then \(\infty > \Sigma \big (S(0),V(0),I(0),R(0)\big )+ MT = \infty\) is a contradiction. Hence, we conclude that \(\tau _{\infty }=\infty\) a.s.. \(\square\)
Extinction criterions of the infection
In this part of the study, we focus on investigating the sufficient conditions that lead to infection extension in the system (1). This remains a fundamental problem in epidemiology.
Define a parameter
Theorem 2
(S, V, I, R) be a solution of the model (1) with \((S(0), V(0), I (0), R(0))\in {\mathbb {R}}^{4}\), if\(R_{0}<1\) then \(\lim \limits _{t\rightarrow \infty }\sup \dfrac{\ln I(t)}{t}<0 \ a.s.\), namely, \(I(t) \longrightarrow 0\) exponentially a.s.
Proof
Make use of Itô formula we have
Integrating over [0, t] and then with the division with t yields
Moreover \(\frac{1}{t}\int _{0}^{t}dW_{3}(r)\) is a continuous local martingale. By lemma (Strong Laws of a Large Numbers), we obtain
Taking \(\lim \limits _{t\rightarrow \infty }\sup\) of (5) and if \(R_{0}<1\) we get
which further simplifies \(\lim \limits _{t\rightarrow \infty } I(t)=0 \hspace{0.3cm} a.s.\) \(\square\)
Stationary distribution and ergodicity
Studying how diseases stay or die out in epidemiology is a crucial problem. In this part we will demonstrate that system described in (1) posses a stationary distribution with some specific conditions.
Let \({\mathcal {Z}}(t)\) follows the homogeneous Markov process in \({\mathbb {R}}^{n}\) which ca be shown by the SDE
The diffusion matrix is descried as
Lemma 1
25 The Markov process \({\mathcal {Z}}(t)\) possesses a unique stationary distribution \(\pi (\cdot )\) if there we can find a bounded domain \(U \subset {\mathbb {R}}^{n}\) with a regular boundary \(\Gamma\).
-
(a)
There exists a positive constant \({\mathcal {M}}\) such that
$$\begin{aligned}\sum _{i,j=1}^{n} d_{ij}(y)\Theta _{i}\Theta _{j}\ge {\mathcal {M}}\vert \Theta \vert ^{2} \ y\in U, \ \Theta \in {\mathbb {R}}^{n}. \ \ \end{aligned}$$ -
(b)
A non-negative \(C^{2}\)-function V and a neighborhood U exists, where LV is negative for any \({\mathbb {R}}^{n}\setminus U\).
Theorem 3
Under the assumption
the solution of (1) posses a unique stationary distribution \(\pi (.)\), and it is ergodic.
Proof
To prove Theorem 3, it is sufficient to verify the conditions of Lemma 1.
First we investigate a condition (b), We will constructing a non-negative \(C^{2}\)-function \(\chi : {\mathbb {R}}^{4}_{+}\longrightarrow {\mathbb {R}}_{+}\).
We define
where \(\omega _{1}, \omega _{2}, \omega _{3}\) are positive constants we will define later.
Utilizing the Itô formula we obtain
Consequently,
using the inequality \(\root 4 \of {a_{1}a_{2}a_{3}a_{4}}\le \frac{1}{4}(a_{1}+a_{3}+a_{2}+a_{4}) \ \ \, a_{1}, a_{3} a_{2}, a_{4} >0\).
Putting
then
As a result
We define
Obviously
where \(U_{q}=]\frac{1}{q},q[\times ]\frac{1}{q},q[\times ]\frac{1}{q},q[\times ]\frac{1}{q},q[\).
On the other hand
the function \(\Upsilon _{2}\) has a unique stagnation point that is
The Hessian matrix of \(\Upsilon _{2}\) at \((S_{*},V_{*},I_{*},R_{*})\) is given by
The Hessian matrix is positive definite and \(\Upsilon _{2}\) is continuous function then we can conclude that \(\Upsilon _{2}\) has a unique minimum \((S_{*},V_{*},I_{*},R_{*}) \in {\mathbb {R}}^{4}_{+}\).
Let
Applying Itô formula we obtain
Let \(\varepsilon _{l}>0, l=1,2,...,8\), we state a bounded closed set
We can choose \(\varepsilon _{l}\) and \(w_{4}\) positive constant such that the subsequent conditions fulfilled
-
\(w_{4}w_{1}\beta +w_{4}w_{2}(1-\tau )\beta +\Delta +\beta +\dfrac{\rho _{1}^{2}}{2}+k+3\delta +\mu +\dfrac{\rho _{4}^{2}}{2}+\dfrac{\rho _{2}^{2}}{2}-\dfrac{\Delta }{\varepsilon _{1}}<0,\)
-
\(w_{4}w_{1}\beta +w_{4}w_{2}(1-\tau )\beta +\Delta +k+3\delta +\mu +\dfrac{\rho _{4}^{2}+\rho _{2}^{2}+\rho _{1}^{2}}{2}-\dfrac{k}{\varepsilon _{1}}<0,\)
-
\(w_{4}w_{1}\beta +w_{4}w_{2}(1-\tau )\beta +\Delta +k+3\delta +\mu +\dfrac{\rho _{1}^{2}+\rho _{2}^{2}+\rho _{4}^{2}}{2}-\delta \varepsilon _{1}+\dfrac{\beta }{\varepsilon _{1}^{2}}<0,\)
-
\(w_{4}w_{1}\beta +w_{4}w_{2}(1-\tau )\beta +\Delta +\beta +k+3\delta +\mu +\dfrac{\rho _{1}^{2}+\rho _{2}^{2}+\rho _{4}^{2}}{2}-\dfrac{\alpha }{\varepsilon _{5}}<0,\)
-
\(w_{4}w_{1}\beta +w_{4}w_{2}\beta (1-\tau )+\Delta +\beta +k+3\delta +\mu +\dfrac{\rho _{1}^{2}+\rho _{2}^{2}+\rho _{4}^{2}}{2}-\dfrac{\delta }{\varepsilon _{2}} <0\),
-
\(w_{4}w_{1}\beta +w_{4}w_{2}\beta (1-\tau )+\Delta +\beta +k+3\delta +\mu +\dfrac{\rho _{1}^{2}+\rho _{2}^{2}+\rho _{4}^{2}}{2}-\dfrac{\delta }{\varepsilon _{4}}<0,\)
-
\(w_{4}w_{1}\beta +w_{4}w_{2}\beta (1-\tau )+\Delta +\beta +k+3\delta +\mu +\dfrac{\rho _{4}^{2}+\rho _{2}^{2}+\rho _{1}^{2}}{2}-\dfrac{\delta }{\varepsilon _{6}} <0,\)
-
\(w_{4}w_{1}\beta +w_{4}w_{2}\beta (1-\tau )+\Delta +\beta +k+3\delta +\mu +\dfrac{\rho _{1}^{2}+\rho _{2}^{2}+\rho _{4}^{2}}{2}-\dfrac{\delta }{\varepsilon _{8}} <0.\)
Next step we show that \(L\chi <0\) on \({\mathbb {R}}^{4}_{+}\setminus U\), \({\mathbb {R}}^{4}_{+}\setminus U=\bigcup _{j=1}^{8}U_{j}\) where
Case 1. For \((S,V,I,R)\in U_{1}\)
Case 2. For \((S,V,I,R)\in U_{2}\)
Case 3. Let \((S,V,I,R)\in U_{3}\)
Case 4. Considering \((S,V,I,R)\in U_{4}\)
Case 5. For \((S,V,I,R)\in U_{5}\)
Case 6. For \((S,V,I,R)\in U_{6}\)
Case 7. For \((S,V,I,R)\in U_{7}\)
Case 8. For \((S,V,I,R)\in U_{8}\)
According to the above \(L\chi <0\) for all \((S,V,I,R)\in {\mathbb {R}}^{4}_{+}\setminus U\) therefor, the condition (b) of 1 satisfied.
Next, we show a condition (a). The diffusion matrix of the problem (1) is determined by
and
where \(m=\min \{\rho _{1}^{2}S^{2}, \rho _{2}^{2}V^{2}, \rho _{3}^{2}I^{2}, \rho _{4}^{2}R^{2}\}\), thus, the condition (a) is verified. Therefore, the transmission model (1) admits a uniquely determined ergodic stationary distribution, denoted as \(\pi (\cdot )\). \(\square\)
Formulation of stochastic optimal control
This section aims to determine the optimally intervention measures for minimizing the transmission of illness via a mathematical optimization techniques. The main goal is to identify the controls that, while taking into account a variety of constraints, reduce the overall impact of the epidemic. In order to do this, the epidemic model is constructed and then control variables are included to reflect the various interventions that can be employed to stop the disease’s spread. Measures such as social isolation, immunization, quarantine and treatment are examples of these control variables.
The following two control variables \(c_{1}(t),\) and \(c_{2}(t)\) will be applied in this work to analyze our suggested models (1)and (2), where
-
The control variable \(c_{1}(t)\) is the COVID-19 time-dependent vaccine.
-
The control variable \(c_{2}(t)\) is the time-dependent treatment effects.
The objective in this study is to reduce susceptibility and infection burden and to maximize the recovered individuals at the lowest cost of control variants.
Analysis of deterministic optimal control problem
In this part, we introduced a control scheme that is considered to be optimal if it reduce the cost function
subject to
along with the following initial values of the state variables
In cost function (6), the positive constants \(a_{1},a_{2}\) represent the balancing factors to maintain a balance of the size of susceptible, infected individuals respectively. The positive coefficients \(p_{1}\) and \(p_{2}\) are the cost on vaccination and treatment respectively and \(T_{e}\) is the end time. From the expression of the cost function (6), our main goal is to reduce the number of the susceptible and the infected while reducing the cost of controls \(c_{1}\) and \(c_{2}\). Hence, we are intendment to evaluate optimal variables \((c^{*}_{1},c^{*}_{2})\in \Omega\) such that
subject to the system (7) with (8), where \(\Omega\) is control admissible set
Existence of optimal control problem
This section present the necessary condition for the existence of a solution of problem (6)-(8), and then we prove the existence of optimal control variables. The control variables \(c_{1}\) and \(c_{2}\) are positive, bounded, and Lebesgue measurable. With a positive initial value, the solution remains positive and bounded.
Let
, where
where \(b = \max \{b_{1}, b_{2}, b_{3}, b_{4}\}\) denotes a positive constant that remains independent of the model’s state variables.
and \(M=\max \{b,\Vert A\Vert \}<\infty\)n, then F is uniformly Lipshitz continuous. The control and state parameters are clearly positive hence, we conclude that the solution of model (7) exist.
Now, we show the result that ensures that we have the optimal control that minimizes the cost function
Theorem 4
There is a control variable \(c^{*}=(c^{*}_{1},c^{*}_{2})\) \(\in \Omega\) satisfying
for all \((S(0),V(0),I(0),R(0)) \in {\mathbb {R}}^{4}_{+}\).
Proof
We need to verify the conditions of Corollary (4.1) in26 for the necessary result
-
The set of admissible control with the respective state variables is nonempty, because the solution of system exist.
-
The set \(\Omega\) is closed and convex and therefore, by definition \(\Omega\) is closed. Let \(u_{1}, u_{2} \in \Omega\) and \(0\le \lambda \le 1\) such that \(u_{1}=(c_{1},c_{2})\) and \(u_{2}=(c_{1}^{\prime },c_{2}^{\prime })\). Hence, \(\lambda u_{1}+(1-\lambda )u_{2}=(\lambda c_{1}+(1-\lambda )c_{1}^{\prime },\lambda c_{2}+(1-\lambda )c_{2}^{\prime })\) \(\in \Omega\). Thus \(\Omega\) is convex.
-
The optimal control system is bounded by a linear function in the state and control variables. Our system is linear in \(c_{1}\) and \(c_{2}\), in addition, the solution is absolutely continuous and from it we conclude the boundness of the solution, hence, the condition is fulfilled.
-
The integrand \({\mathcal {L}}_{1}\) of the cost function is strictly convex on \(\Omega\), because the Hessian matrix of \({\mathcal {L}}_{1}\) on \(\Omega\) is given by
$$\begin{aligned}\begin{bmatrix} p_{1}& 0\\ 0& p_{2} \\ \end{bmatrix} \end{aligned}$$is definite positive.
-
There exist \(m_{1}>0,m_{2}>0\) and \(m_{3}>1\) such that
$$\begin{aligned} {\mathcal {L}}_{1}(c_{1},c_{2})\ge m_{1}\vert (c_{1},c_{2})\vert ^{m_{3}}-m_{2}, \end{aligned}$$$$\begin{aligned} {\mathcal {L}}_{1}(c_{1},c_{2})&= a_{1}S+a_{2}I+\frac{1}{2}(p_{1}c^{2}_{1}(t)+p_{2}c^{2}_{2}(t)\\ &\ge \frac{1}{2}min\{p_{1},p_{2}\} (c^{2}_{1}(t)+c^{2}_{2}(t))\\&\ge \frac{1}{2}min\{p_{1},p_{2}\} (c^{2}_{1}(t)+c^{2}_{2}(t))-1\\&=\frac{1}{2}min\{p_{1},p_{2}\} \vert (c_{1},c_{2})\vert ^{2}-1. \end{aligned}$$Let \(m_{1}=\frac{1}{2}min\{p_{1},p_{2}\}\) , \(m_{2}=1\) and \(m_{3}=2\).
Thus, the above conditions guarantee the existence of the optimal set \((c^{*}_{1},c^{*}_{2})\). \(\square\)
Solution of the optimal control system
This section investigate the necessary optimality criterion and the characterization of control optimal for our control problem, by using Pontryagin’s principle26. This principle shifts the problem (6)–(8) into a problem of minimizing point-wise a Hamiltonian \({\mathcal {H}}_{1}\) corresponds to the controls \(c_{1},c_{2}\). We define the Lagrangian \({\mathcal {L}}_{1}\) associated to the control problem (7)
and the Hamiltonian function \({\mathcal {H}}_{1}\) is given by
where
So the Hamiltonian will have this forme
To find the characterization of \((c^{*}_{1}(t),c^{*}_{2}(t))\), we apply Pontryagin minimum principle which states that if \((z^{\star },c^{\star })\) be an optimality solution for the control system, we can determine a non-trivial vector say \(\gamma\) such that
with transversality condition
and the maximality condition
Theorem 5
Let \((S^{\star }V^{\star }I^{\star }R^{\star })\) be the optimal solution associated to the optimal control \(c^{\star }_{1}\) and \(c^{\star }_{2}\) of the proposed problem, then \(\exists\) adjoint function \(\gamma _{j}(t)\ne 0, \ \text {for} \ j=1...4\) that satisfies the following
with terminal conditions
and
Proof
Applying the adjoint system (10) of the Pontryagin Minimum Principle, it gives us the system (13), and the condition (14) is a direct result of terminal condition (11).
In order to get the formula of the optimal control \(c^{\star }_{1},c^{\star }_{2}\) which is given by (15), we solve the following system
by considering the upper and lower limits of the control. Thus, we obtain the result (15) \(\square\)
After that, we will discuss the control analysis of stochastic case of problem (2) with the application of the same measures mentioned above.
Stochastic optimal control strategy
In this part, we formulate and study the stochastic control version of model (1) by considering the same control function. The proposed stochastic control system as following
To simplify writhen, we put
then system (16) become
where
and
The Cost function is given by
where \(a_{i},p_{i}\ \ i=1,...,4\) are non-negative real numbers.
Our objective to find optimal controls \(c^{\star }=(c^{\star }_{1},c^{\star }_{2})\), such that
where
We define the Hamiltonian function
where \(\langle .,.\rangle\) represent the inner product in Euclidean space and \(v = (v_{1},v_{2},v_{3},v_{4})\) and \(\eta =(\eta _{1},\eta _{2},\eta _{3},\eta _{4})\) represent the vectors adjoint respectively.
Then
The stochastic maximum principle confirmed that the following relation hold:
with initial and terminal condition
where
and \(z^{*}(t)\) represent the optimal trajectory of z(t).
Theorem 6
Our control problem has an optimal control as the following form
Proof
Applying the well-know minimum principle in stochastic case, we get the adjoint system
with terminal condition
and we have
Then
From the lower and upper bounds of \(c_{1},c_{2}\), we derived
\(\square\)
Numerical simulations
Parameter estimation
In this section, we discuss the process used to estimate the parameters of our model, employing the nonlinear least-squares method. This approach is a widely recognized statistical technique that is commonly used for estimating parameters in mathematical models. It operates by minimizing the sum of the squared differences between observed data and the corresponding model predictions, ensuring the best possible fit of the model to the given data. Nonlinear least squares is particularly advantageous in regression analysis and curve fitting. To obtain accurate parameter values, we utilized a combination of previously established data and real-world COVID-19 case reports. Some of the model parameters were directly obtained from the reference5. The remaining parameters were determined by fitting our model to actual COVID-19 case data reported in Algeria during the period from October 22, to March 14, 2022. These data were sourced from the website27.
The parameters values are listed in Table 2 and the fitted plot is depicted in figure 1.
Sensitivity analysis
Sensitivity analysis plays a crucial role in epidemic modeling, helping to assess the impact of specific parameters on variations in the model’s variables. It quantifies the extent to which \(R_{0}\) responds to changes in the model’s inherent parameters. We use the normalized sensitivity procedure to evaluate the relative indices of crucial parameters. This approach is expressed by the following formula28:
Mathematical expressions for the normalized sensitivity indexes can be expressed as follows:
As shown in Table 3 and Figure 2, model parameters with positive index suggest a direct relation with \(R_{0}\). In other words raising the values of these parameters while maintaining the others unchanged will lead to an increase in \(R_{0}\) indicating that COVID-19 would spread more widely within the population. Conversely, parameters with negative index imply a reduction in the infection rate. Based on the sensitivity indixes presented in Table 3, the most critical factors influencing the spread of COVID-19 include the transmission rate \(\beta\), which accelerates the virus’s spread. Also, one of the most important parameters contributing to the reduction of prevalence is \(\alpha\). To more effectively combat the virus, it is essential to implement an optimal strategy that focuses on improving the recovery rate \(\alpha\) while simultaneously reducing the transmission rate \(\beta\).
Sensitivity analysis results of \(R_{0}\) for model (1).
Numerical simulation examples
To show the theoretical findings, we perform simulations of the problem in this part. We applied stochastic Range-Kutta method to discretize system (1) as follows:
where \(B_{j} \ (j=1,..,4)\) are normally-distributed \({\mathcal {N}}(0,1)\) independent random variables and dt is step size.
The following aspects will be highlighted through a number of empirical examples:
-
The dynamical behavior of model (1) if \(R_{0}<1\).
-
The existence of stationary distributin of (1) if \(\bar{R}_{0}>1\).
-
The impact of control strategies on COVID-19 dynamics.
Numerical examples for extinction and stationary distribution
We assumed the values of the parameters shown in the two examples to verify the extinction and stationary distribution. The values in example 1 are used to demonstrate Theorem 2 numerically. According to this theorem, the disease will die out with probability one if \(R_{0}<1\) . Figure 3 confirms this, as the parameters in this case satisfy the theorem’s condition.
We use another set of parameter values in example 2 to show the results implied by theorem 3. This set of parameters ensures that \({\bar{R}}_{0}>1\) as can be seen in Figure 4.
Example 1
We assume that: \(\Delta =1530\), \(\beta =0.451\), \(k=0.664\) , \(\mu =0.01\), \(\tau =0.576\), \(\delta _{0}=0.795\), \(\delta =0.65\), \(\alpha =0.791\), \(\rho _{1}=0.2,\rho _{2}=0.1, \rho _{3}=0.3, \rho _{4}=0.2\), and initial values \(S(0)=500 , V(0)=50 , I(0)=30 , R(0)=0\), we get \(R_{0}<1\), then the epidemic will be extinct from the population.
Example 2
Taking another parameter’s values : \(\Delta =1530\), \(\beta =0.451\), \(k=0.664\), \(\tau =0.057\), \(\delta _{0}=0.127\), \(\mu =0.01\), \(\delta =0.65\), \(\alpha =0.179\) and we reduce the noise intensity values: \(\rho _{1}=0.1;\rho _{2}=0.1;\rho _{3}=0.1;\rho _{4}=0.1\), and the same initial values of example 1. Based on these parameters we find \({\bar{R}}_{0}>1\), by theorem 3 model (1) has a unique stationary distribution, biologically this means that the disease will persist in the population and will not be naturally eliminated under the present condition.
Through the integration of theoretical analysis and numerical simulations, we discovered that smaller white noise enables model (1) to exhibit a unique ergodic stationary distribution when \({\bar{R}}_{0}>1\). Conversely, larger white noise can lead to disease extinction in model (1) when \(R_{0}<1\). In comparison to the deterministic model, the inclusion of random white noise in the epidemic model significantly influences the persistence and extinction of the desease, thereby enriching the dynamic behavior of the epidemic model.
Numerical example on control strategies of COVID-19
In this part, we will present the simulation results of the optimal control model. The Rung-Kutta method will be used to provide the numerical solution for the control problem. In paticular, we will discretize the models, the adjoint systems and the control models while adding the control caracterisation and saubsidiary conditions.
The parameters in Table 1 were used for the simulation in the presence and absence of control. The results are as shown in Figs. 5 and 6.
Figures 5 and 6 show simulation of deterministic and stochastic models describing the dynamics of S, V and I, R classes respectively, both with and without optimal control strategies (\(c^{*}_{1}\) and \(c^{*}_{2}\)). We note that the implementation of vaccine control and treatment control leads to a decline in the S and I populations while increasing the V and R groups. We can interpret this as the vaccination reduces the number of susceptible by moving them into the vaccinated class. Simultaneously, the optimal treatment helps I individuals recover more quickly, decreasing the I population and increasing the number of R.
Through these results we concluded that time dependent treatment control and vaccine control play crucial roles in COVID-19 epidemic models, shaping efficient public health strategies to mitigate the virus’s impact. Treatment control, which includes antiviral drugs and supportive care, reduces disease severity and shortens recovery time, thereby alleviating pressure on healthcare systems. On the other hand, vaccine control decreases the number of S, lowers transmission rates, and prevents severe cases, contributing to herd immunity and long-term epidemic control. Public health policies must integrate both approaches, ensuring widespread vaccination while maintaining effective treatments to manage emerging variants and protect high-risk populations. A balanced strategy combining vaccination and treatment is essential for sustainable disease control and preparedness for future pandemic.
Conclusion
This paper aimed to presents a comprehensive mathematical framework for optimal control of the COVID-19 in stochastic case using a robust computational mathematical modeling approach. By integrating stochastic elements, implementation with empirical data, and sophisticated optimization techniques, our approach offers a potent tool for modeling, analyzing, and effectively minimizing the spread of COVID-19 outbreaks. The model in stochastic case is rigorously analyzed in theoretical point of view. The theoretical results are validated graphically using the estimated parameters. Moreover, a stochastic optimal control model was developed by incorporating time-dependent control variables for the necessary mitigation of future outbreaks. The necessary optimality conditions and solution of the stochastic control system was presented in detail. The insights gleaned from this study hold immense value for policymakers and public health authorities, empowering them to devise evidence-driven strategies aimed at curbing the transmission of the virus, safeguarding public health, and fostering societal well-being.
Data availability
The datasets used and/or analysed during the current study available from the corresponding author on reasonable request.
References
Brauer, F., Castillo-Chavez, C. & Castillo-Chavez, C. Mathematical Models in Population Biology and Epidemiology. Vol. 2(No. 40). (Springer, 2012).
Capasso, V. Mathematical Structures of Epidemic Systems Vol. 97 (Springer, 2008).
Wang, C., Horby, P. W., Hayden, F. G. & Gao, G. F. A novel coronavirus outbreak of global health concern. Lancet 395(10223), 470–473 (2020).
Khan, A. A., Ullah, S. & Amin, R. Optimal control analysis of COVID-19 vaccine epidemic model: A case study. Eur. Phys. J. Plus 137(1), 1–25 (2022).
El Hadj Moussa, Y., Boudaoui, A., Ullah, S., Muzammil, K. & Bilal Riaz, M. Application of fractional optimal control theory for the mitigating of novel coronavirus in Algeria. Results Phys. 39, 105651 (2022).
Parhusip, H. A., Trihandaru, S., Wicaksono, B. A. A., Indrajaya, D., Sardjono, Y., & Vyas, O. P. Susceptible vaccine infected removed (SVIR) model for COVID-19 cases in Indonesia. Sci. Technol. Indonesia 7(3) (2022).
Al-arydah, M. Mathematical modeling and optimal control for COVID-19 with population behavior. Math. Methods Appl. Sci. 46, 19184–19198 (2023).
Amir, K., Ghulam, H., Mostafa, Z., Gul, Z. & Wan-nasingha, H.U. A stochastic SACR epidemic model for HBV transmission. J. Biol. Dyn. 14(1), 788–801 (2020).
Anwarud, D. & Yongjin, L. Lévy noise impact on a stochastic hepatitis B epidemic model under real statistical data and its fractal-fractional Atangana-Baleanu order model. Phys. Scr. (2021).
Din, Anwarud & Li, Yongjin. Stationary distribution extinction and optimal control for the stochastic hepatitis B epidemic model with partial immunity. Phys. Scr. 96, 074005 (2021).
Alqahtani, R. T. & Ajbar, A. Study of dynamics of a COVID-19 model for Saudi Arabia with vaccination rate, saturated treatment function and saturated incidence rate. Mathematics 9, 3134 (2021).
Alshehri, A. & Ullah, S. A numerical study of COVID-19 epidemic model with vaccination and diffusion. Math. Biosci. Eng 20(3), 4643–4672 (2023).
Mao, X., Marion, G. & Renshaw, E. Environmental Brownian noise suppresses explosions in population dynamics. Stoch. Process. Heir Appl. 97(1), 95–110 (2002).
Settati, A. & Lahrouz, A. Stationary distribution of stochastic population systems under regime switching. Appl. Math. Comput. 244, 235–243 (2014).
El Koufi, A., Adnani, J., Bennar, A., & Yousfi, N. Dynamics of a stochastic SIR epidemic model driven by Levy jumps with ‘ saturated incidence rate and saturated treatment function. Stoch. Anal. Appl. 1–19 (2021).
Rajasekar, S. P. & Pitchaimani, M. Ergodic stationary distribution and extinction of a stochastic SIRS epidemic model with logistic growth and nonlinear incidence. Appl. Math. Comput. 377, 125143 (2020).
Alshammari, F. S., Akyildiz, F. T., Khan, M. A., Din, A. & Sunthrayuth, P. A stochastic mathematical model for understanding the COVID-19 infection using real data. Symmetry 14, 2521 (2022).
Liu, P. & Tan, X. Dynamics analysis of a class of stochastic SEIR models with saturation incidence rate. Symmetry 14, 2414 (2022).
Zhu, J. et al. A novel numerical solution of nonlinear stochastic model for the propagation of malicious codes in wireless sensor networks using a high order spectral collocation technique. Sci. Rep. 15(1), 228 (2025).
Din, Anwarud, Li, Yongjin, Khan, Tahir & Zaman, Gul. Mathematical analysis of spread and control of the novel corona virus (COVID-19) in China. Chaos Solitons Fract. 141, 110286 (2020).
Abioye, A.I. et al Mathematical model of COVID-19 in Nigeria with optimal control. Results Phys. 28, 104598 (2021).
Lestari, D. et al. A minimum principle for stochastic control of hepatitis C epidemic model. Bound Value Probl. 2023, 52 (2023).
Jia, Panpan Wangand Jianwen. Stationary distribution of a stochastic SIRD epidemic model of Ebola with double saturated incidence rates and vaccination. Adv. Differ. Equ. 2019, 433 (2019).
Driessche,, P. & Watmough, J. Reproduction numbers and sub-threshold endemic equilibria for compartmental models of disease transmission. Math. Biosci. 180, 29–48 (2002).
Rihan, F. A., Alsakaji, H. J., & Rajivganthi, C. Stochastic SIRC epidemic model with time-delay for COVID-19. Adv. Differ. Equ. (2020).
Fleming, W. H., & Rishel, R. W. Deterministic and Stochastic Optimal Control (Springer, 1975).
COVID-19 in Algeria. https://www.worldometers.info/coronavirus/country/algeria/.
Samsuzzoha, Md., Singh, M. & Lucy, D. Uncertainty and sensitivity analysis of the basic reproduction number of a vaccinated epidemic model of influenza. Appl. Math. Model. 37, 903–915 (2013).
Acknowledgements
The authors extend their appreciation to the Deanship of Research and Graduate Studies at King Khalid University, KSA for funding this work through Large Research Project under grant number RGP.2/63/45. This research also received financial support from the European Union under the REFRESHResearch Excellence for Regional Sustainability and High-Tech Industries project, number CZ.10.03.01/00/22 003/0000048, through the Operational Programme Just Transition.
Author information
Authors and Affiliations
Contributions
A.K. and A.B. conceptualization, wrote the original manuscript, theoretical results, simulation and data analysis. S.U. simulation, validation, Wrote the manuscript. M.B.R. supervision, basic mathematical results, validations, formal analysis, A.B.S. conceptualization, validation, data analysis, M.A. validation, reviewed the entire results, formal analysis.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Kadri, A., Boudaoui, A., Ullah, S. et al. A comparative study of deterministic and stochastic computational modeling approaches for analyzing and optimizing COVID-19 control. Sci Rep 15, 11710 (2025). https://doi.org/10.1038/s41598-025-96127-y
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-025-96127-y