#### Abstract

In this paper, we study the necessary conditions as well as sufficient conditions for optimality of stochastic SEIR model. The most distinguishing feature, compared with the well-studied SEIR model, is that the model system follows stochastic differential equations (SDEs) driven by Brownian motions. Hamiltonian function is introduced to derive the necessary conditions. Using the explicit formulation of adjoint variables, desired necessary conditions for optimal control results are obtained. We also establish a sufficient condition which is called verification theorem for the stochastic SEIR model.

#### 1. Introduction

New corona viruses are very harmful to people. Especially, COVID-19 is currently being spread around the world. It has seriously affected people’s lives. Many countries have made good efforts to deal with it and prevent it. At present, the COVID-19 epidemic in China has been basically controlled. It is well known that SEIR models are widely used to model the spreading of infectious diseases in a population. Up to now, many researchers from the world have achieved a variety of both theoretical results and applications, see [1, 2, 7, 9, 15, 16, 18, 20, 21] and the references therein.

However, it is worth pointing that out that SEIR models in the existing literatures are deterministic models. As we know the stochastic events are inevitable in practice, and the stochastic effects that may lead to significant changes, thus, the stochastic SEIR models maybe better to be applied to describe the COVID-19 epidemic. Motivated by the actual situation in reality and the lack of theory, this paper studies the optimal control of stochastic SEIR model. To the best of our knowledge, there were few literatures about the optimal control of epidemic model in the stochastic case. Our main objective is to derive necessary conditions for optimality of the stochastic SEIR model by using the stochastic maximum principle (SMP).

Stochastic optimal control problems have received considerable research attention in recent years due to wide applicability in a number of different fields such as physics, biology, economics, and management science. As it is well known, dynamic programming principle (DPP) and SMP are two main tools to study stochastic control problems. SMP, which provides a necessary condition of an optimal control in stochastic optimal control problems known as the stochastic version of Pontryagin’s type [3–6, 8, 11–14, 19], has been the tool predominantly used to study the stochastic optimal control problems and some stochastic differential game problems.

For example, by using SMP, Xu and Shi [17] obtain the feedback form of optimal control for linear-quadratic-Gaussian (LQG) problems to study stochastic large population system with jump diffusion processes. The standard SMP involves solving the adjoint equation and minimizing the Hamiltonian function. We also followed this in our paper. We should point out that the SEIR model studied in [10] is deterministic case, while our SEIR model is stochastic case, that is, the main difference between our model and the model studied in [10].

The organization of this paper is as follows. Section 2 is devoted to the problem formulation and assumptions. Necessary conditions for optimality are introduced in Section 3. Section 4 aims to prove that the necessary conditions presented in Section 3 are also the sufficient conditions for optimality. Finally, we end our work with some concluding remarks in Section 5.

#### 2. Problem Statement and Assumptions

Throughout this paper, let be a fixed time horizon and be a given complete filtered probability space, on which independent standard one-dimensional Brownian motions are defined. The superscript denotes the transpose of vectors or matrices. We suppose that the filtration is generated by the independent standard one-dimensional standard Brownian motions .

Let denote the set of Lebesgue measurable functions such that . We write if is an -adapted square-integrable process (i.e., ). Let be nonempty subsets of . We introduce the admissible control set as

Now, we introduce our stochastic SEIR model. Let , and represent the number of individuals in the susceptible, exposed, infectious, and recovered compartments at time , respectively. The total population is denoted by . Let denote the fraction of susceptible individuals being vaccinated per unit of time.

We input the random disturbance proportionally to each variable value in the model and get the following dynamical system:

The parameters in the disease transmission model is described as follows: is the natural birth rate, represents the natural death rate, denotes the death rate due to the disease, and represents the incidence coefficient of horizontal transmission, and let be the rate at which the exposed individuals become infectious, and is removal rate. Note that the rate of transmission of the disease is . In the above model, denotes the random disturbance proportionally to each variable value in the model. The parameters in the model are supposed to be constants for simplicity. For more information about the disease transmission model, we refer the reader to [2, 9, 13] and references within.

The expected cost functional is given bywhere and are given constants.

The optimal control problem under consideration is as follows. Problem (P): the objective of the control problem is to find admissible control such that A control that solves this problem is called optimal.

#### 3. Necessary Conditions for Optimality

This section focuses on the necessary optimality conditions of Problem (*P*).

In order to apply the necessary conditions for optimal control in the form of maximum principle, we first introduce some notations. Assume that

Therefore, stochastic SEIR model (2) can be written as

The corresponding cost functional is

Let be the optimal pair of Problem *P*. The standard Hamiltonian function is given bywhere the adjoint variable satisfies where .

Next, we want to obtain the adjoint variable explicitly. Let . According to (9), are explicitly given by

Next, we evaluate the necessary condition for the optimal control. By (8), we havewhich means

Now, we summarize the above discussion with the main result of this article.

Theorem 1. *Let be the optimal pair of Problem P with . Then, fulfills (12), where admits (10).*

#### 4. Sufficient Conditions for Optimality

In this section, we will establish the sufficient maximum principle (also called verification theorem) of Problem *P*. That is to say, given in (12) is also the sufficient condition of Problem *P*.

Theorem 2. *Assume that fulfills (12) with state trajectory which id given such that there exist solutions to the adjoint equation (10). Then, is the optimal pair of Problem P.*

*Proof. *For any , we considerApplying IÔ’s formula to, we obtainCombining (6), (9), (13), with (14), one haswhere, in the last step, we have used the condition of which fulfills (12).

Therefore, . Hence, we draw the desired conclusion.

#### 5. Conclusion

Maria do Rosário de et al. [10] considered an optimal control problem with mixed control-state constraint for a SEIR epidemic model of human infectious diseases. Motivated by their pioneering work and the lack of theory, this paper is concerned with the necessary conditions (also, the sufficient conditions) for optimality of the stochastic SEIR model. The model system follows SDEs driven by Brownian motions and with the corresponding cost. It is the first attempt to study this kind of control problem in our technical note, to the authors’ knowledge. Using the explicit formulation of adjoint variables, we obtain the desired necessary conditions for optimal control results.

Some interesting topics deserve further investigations. On the one hand, one may determine the optimal control strategies for the stochastic delayed SIR model and compare it with that presented in this work. On the other hand, we shall investigate some more realistic but complex models, such as considering the effects of impulsive perturbations on the system. We leave these investigations in our future work.

#### Data Availability

The data used to support the findings of the study are available from the corresponding author upon request.

#### Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

#### Acknowledgments

This research was partially supported by the Project of Shandong Province Higher Educational Science and Technology Program (Grant no. J18KA221), National Natural Science Foundation of China (Grant no. 61973185), Natural Science Foundation of Shandong Province (Grant no. ZR2018MF016), Development Plan of Young Innovation Team in Colleges and Universities of Shandong Province (Grant no.2019KJN011), Shandong Province Key Research and Development Program (Grant no. 2018GGX103054), and Young Doctor Cooperation Foundation of Qilu University of Technology (Shandong Academy of Sciences) (Grant no. 2018BSHZ2008).