alphaFeedback

WorksMathematics

Optimal Feedback Control of the Fokker-Planck Equation for an SIRS Epidemic Model

AI contributions
Not recorded for this paper
View details

Abstract

We develop a Fokker–Planck feedback control framework for a stochastic susceptible–infected–recovered–susceptible (SIRS) epidemic model with three intervention mechanisms targeting disease transmission, loss of immunity, and recovery. The interventions are formulated as space- and time-dependent feedback controls that influence both the drift and diffusion coefficients of the underlying stochastic differential equations, allowing control of the probability distribution of epidemic states. We investigate the existence of optimal controls and derive first-order necessary optimality conditions involving a forward Fokker–Planck equation, a backward adjoint equation, and a Hamiltonian minimization condition. For numerical approximation, we combine a Chang–Cooper discretization of the diagonal drift–diffusion terms with a finite-difference treatment of cross-diffusion and a sequential quadratic Hamiltonian (SQH) algorithm for computing the optimal feedback policies. We also examine sufficient-decrease and convergence properties of the SQH iteration. Numerical experiments consider four epidemiological objectives involving cumulative infection burden, infection-threshold exceedance, terminal susceptible population, and a combination of running and terminal costs. The resulting feedback policies exhibit distinct spatial and temporal structures depending on the epidemiological objective. Monte Carlo simulations of the underlying stochastic system illustrate that the optimized interventions can substantially reduce infection growth and undesirable epidemic outcomes relative to uncontrolled dynamics. The proposed framework provides a distribution-based approach to stochastic epidemic control that integrates mathematical analysis, numerical optimization, and state-dependent intervention design.

Introduction

Mathematical modeling has long played an important role in understanding the transmission of infectious diseases and evaluating strategies for epidemic prevention and control. Beginning with the classical work of Kermack and McKendrick [16], compartmental epidemic models have provided a systematic framework for describing the evolution of susceptible, infected, and recovered populations. Among these, the susceptible–infected–recovered–susceptible (SIRS) model is particularly relevant to infectious diseases for which immunity is temporary or incomplete. By allowing recovered individuals to return to the susceptible class, the SIRS model accounts for reinfection and the possibility of recurrent epidemic outbreaks. Such dynamics motivate the development of intervention strategies that reduce transmission, limit the loss of immunity, and enhance recovery while accounting for the costs associated with implementing these measures.

Although deterministic epidemic models provide valuable insights into disease transmission, their predictions are based on prescribed parameter values and initial conditions. In practice, epidemic dynamics are influenced by substantial uncertainty arising from variations in contact patterns, transmission rates, recovery mechanisms, immunity duration, and environmental or behavioral factors. Stochastic epidemic models address these uncertainties by incorporating random perturbations into the governing dynamics. Several authors investigated stochastic epidemic dynamics using stochastic differential equations and established important results concerning positivity, extinction, persistence, stationary distributions and the effects of different types of noise [9, 13, 18, 23, 27]. See [1] for an overview of such models. Generally, stochastic differential equation models describe ensembles of possible epidemic trajectories rather than a single deterministic evolution. This distinction is particularly important when intervention strategies must account for the probability of severe outbreaks or other undesirable epidemiological outcomes.

Optimal control theory provides a mathematical framework for determining intervention strategies that balance epidemiological benefits against economic, logistical, and societal costs. In compartmental epidemic models, controls may represent nonpharmaceutical interventions that reduce transmission, vaccination or other measures that influence immunity, and treatment strategies that accelerate recovery [7, 20], and researchers have analyzed models incorporating confounding effects ranging from noncompliance with control measures [3, 21] to media coverage [8] to limited resources [14]. Classical optimal control formulations typically determine time-dependent interventions by minimizing a prescribed objective functional subject to the epidemic dynamics. In stochastic settings, optimal control can also be formulated through controlled diffusion processes and dynamic programming, as developed in the general theory of stochastic control [12]. However, time-dependent interventions do not explicitly adapt to the current epidemic state. Moreover, when the objective involves the likelihood of undesirable outcomes rather than only expected population levels, it is useful to consider the evolution of the entire probability distribution of epidemic states.

The Fokker–Planck (FP) equation offers a natural framework for this purpose. Associated with an underlying stochastic differential equation, the FP equation describes the temporal evolution of the probability density of the stochastic state variables. Consequently, an optimal control problem constrained by the FP equation allows interventions to influence the distribution of possible epidemic outcomes. This density-based perspective provides a direct way to incorporate objectives involving expected infection burden, probability mass in high-infection regions, and desirable terminal epidemic states. Furthermore, by allowing the controls to depend on both the epidemic state and time, the resulting formulation accommodates feedback intervention policies. Unlike purely time-dependent controls, these policies can assign different intervention intensities to different regions of the epidemic state space. While FP control has been applied biological and ecological models such as those for pedestrian motion [24] and biological imaging [2], it has not been broadly applied to epidemiological models with the exception of [22] where time-dependent controls were considered. Indeed, most work regarding FP control assumes time-dependent control or specially parameterized control ansatzes and, notably, does not consider control of the diffusive terms in the FP equation [5, 11].

Despite the modeling advantages, FP optimal control problems introduce mathematical and computational challenges. The probability density satisfies a time-dependent partial differential equation whose coefficients depend on the control variables. When the controls influence both the drift and diffusion coefficients, the resulting control-to-state mapping is highly nonlinear, and the diffusion operator may contain mixed spatial derivatives. Establishing existence of optimal controls and deriving necessary optimality conditions therefore requires an appropriate analytical framework for the controlled FP equation. The numerical approximation must also account for the nonnegativity and conservation properties of probability densities. The classical Chang–Cooper method [6] provides a useful structure-preserving discretization for drift–diffusion equations, although additional treatment is required for multidimensional systems with cross-diffusion.

Motivated by these considerations, we develop a FP optimal control framework for a stochastic SIRS epidemic model with three distinct intervention mechanisms. Stochastic perturbations are introduced into transmission, loss of immunity, and recovery, and the corresponding feedback controls modify both the deterministic transition rates and the stochastic fluctuations. The first control reduces transmission through nonpharmaceutical interventions, the second reduces loss of immunity, and the third increases the recovery rate. The resulting stochastic system induces a two-dimensional FP equation with a control-dependent diffusion matrix and nonzero cross-diffusion terms.

The principal contributions of this work are as follows. First, we formulate a distribution-based optimal control problem with space- and time-dependent feedback controls and a general objective functional incorporating intervention costs, running epidemic costs, and terminal costs. In particular, our problem includes controls in the diffusion terms of the FP equation. Second, we investigate the analytical properties of the associated control-to-state operator and develop existence and first-order optimality results using a forward FP equation, a backward adjoint equation, and a Hamiltonian minimization condition. Third, we construct a numerical framework combining Chang–Cooper discretization of the diagonal drift–diffusion terms, finite-difference approximation of the mixed diffusion term, and a sequential quadratic Hamiltonian (SQH) algorithm for computing feedback controls. We also investigate sufficient-decrease and convergence properties of the SQH iteration.

The numerical experiments consider four epidemiological objectives that demonstrate the flexibility of the proposed framework. The first minimizes cumulative infection burden, while the second penalizes epidemic states in which the infected fraction exceeds a prescribed threshold. The third introduces a terminal reward for maintaining a sufficiently large susceptible population, and the fourth combines threshold-based infection regulation with a terminal susceptible-state objective. For each scenario, we compute the evolving probability density and the corresponding feedback control maps. Monte Carlo simulations of the underlying controlled and uncontrolled stochastic differential equations are then used to examine the effects of the optimized interventions on individual epidemic trajectories and their ensemble behavior.

The remainder of the paper is organized as follows. Section 2 introduces the controlled stochastic SIRS model, derives the associated FP equation, and formulates the feedback optimal control problem. Section 3 develops the analytical framework, including existence of an optimal control and first-order necessary optimality conditions. Section 4 presents the numerical approximation of the forward FP and backward adjoint equations together with the SQH algorithm and its convergence analysis. Section 5 presents numerical experiments under different epidemiological objectives and compares the resulting controlled and uncontrolled stochastic dynamics.

A controlled stochastic SIRS model and FP equation

We begin from the following controlled Susceptible-Infected-Recovered-Susceptible (SIRS) dynamics which model the spread of a generic disease in a generic region:

S′=b−(1−u1)βSI+(1−u2)λR−δS,I′=(1−u1)βSI−((1+u3)γ+δ)I,R′=(1+u3)γI−((1−u2)λ+δ)R.(1)\begin{aligned} S' &= b-(1-u_1)\beta SI+(1-u_2)\lambda R-\delta S,\\ I' &= (1-u_1)\beta SI-\left((1+u_3)\gamma+\delta\right)I,\\ R' &= (1+u_3)\gamma I-\left((1-u_2)\lambda+\delta\right)R. \tag*{(1)} \end{aligned}

Here bb represents the constant introduction of new members into the population, and δ\delta represents the natural death rate. A basic assumption of this model is that the population is homogeneous and well-mixed so that infection spreads via mass action with rate β\beta and infected individuals recover at rate γ\gamma. The parameter λ\lambda represents loss of immunity whereby recovered individuals become susceptible again. We supply the policy-maker with three control variables u:=(u1,u2,u3)u := (u_1,u_2,u_3) by which they may inhibit disease spread:

  • (a) u1∈[0,u1max⁡]u_1 \in[0,u_1^{\max}] for some u1max⁡∈[0,1]u_1^{\max} \in[0,1] - this is reduction in infectivity due to governmentally enacted non-pharmaceutical intervention measures,

  • (b) u2∈[0,u2max⁡]u_2 \in[0,u_2^{\max}] for some u2max⁡∈[0,1]u_2^{\max} \in[0,1] - reduction in loss of immunity (perhaps due to vaccination or other treatment efforts),

  • (c) u3∈[0,u3max⁡]u_3 \in[0,u_3^{\max}] for some u3max⁡∈[0,1]u_3^{\max} \in[0,1] - increase in recovery rate due to treatment efforts.

Due to the highly volatile nature of epidemic disease spread, we also add stochasticity to the model, and specifically following [13, 23], we assume that there is some uncertainty in the rate parameters β,γ,λ\beta,\gamma,\lambda. Thus we formally replace β\beta with β+σβW\beta+\sigma_\beta W, and likewise with γ,λ\gamma,\lambda. Finally, we assume that b=δb=\delta and that the initial conditions are normalized so that S(0)+I(0)+R(0)=1S(0)+I(0)+R(0)=1. Under these conditions, we see that the total population N=S+I+RN=S+I+R described by (1) (and indeed by the stochastic generalization) will be constant: N(t)=1N(t)=1. Thus we can write R=1−S−IR=1-S-I, and drop this compartment. With all these assumptions, we introduce the controlled, stochastic SIRS model:

dS=(b−(1−u1)βSI+(1−u2)λ(1−S−I)−δS)dt−(1−u1)σβSI dW1+(1−u2)σλ(1−S−I) dW2,dI=((1−u1)βSI−(1+u3)γI−δI)dt+(1−u1)σβSI dW1−(1+u3)σγI dW3.(2)\begin{aligned} dS &= \left(b-(1-u_1)\beta SI+(1-u_2)\lambda(1-S-I)-\delta S\right)dt\\ &\quad-(1-u_1)\sigma_\beta SI\,dW_1+(1-u_2)\sigma_\lambda(1-S-I)\,dW_2,\\ dI &= \left((1-u_1)\beta SI-(1+u_3)\gamma I-\delta I\right)dt+(1-u_1)\sigma_\beta SI\,dW_1-(1+u_3)\sigma_\gamma I\,dW_3. \tag*{(2)} \end{aligned}

We write the dynamics in the general form in the form

dx=F(x,u)dt+Σ(x,u)dW(3)dx=F(x,u)dt+\Sigma(x,u)dW \tag*{(3)}

where x=(S,I)x=(S,I), u=(u1,u2,u3)u=(u_1,u_2,u_3), and WW is a 3 dimensional Brownian motion with independent components. In this notation, the drift and diffusion functions are

F(x,u)=[b−(1−u1)βSI+(1−u2)λ(1−S−I)−δS(1−u1)βSI−(1+u3)γI−δI],F(x,u)=\begin{bmatrix} b-(1-u_1)\beta SI+(1-u_2)\lambda(1-S-I)-\delta S \\ (1-u_1)\beta SI-(1+u_3)\gamma I-\delta I \end{bmatrix},
12Σ(x,u)Σ(x,u)T=12[((1−u1)σβSI)2+((1−u2)σλ(1−S−I))2−((1−u1)σβSI)2−((1−u1)σβSI)2((1−u1)σβSI)2+((1+u3)σγI)2].\frac{1}{2}\Sigma(x,u)\Sigma(x,u)^{T}=\frac{1}{2}\begin{bmatrix} ((1-u_1)\sigma_\beta SI)^2+((1-u_2)\sigma_\lambda(1-S-I))^2 & -((1-u_1)\sigma_\beta SI)^2 \\ -((1-u_1)\sigma_\beta SI)^2 & ((1-u_1)\sigma_\beta SI)^2+((1+u_3)\sigma_\gamma I)^2 \end{bmatrix}.

For notational convenience, we set D(x,u)=12Σ(x,u)Σ(x,u)TD(x,u)=\frac{1}{2}\Sigma(x,u)\Sigma(x,u)^{T}. We record some important observations regarding the model.

  • By the arguments in [13, 23], if S0,I0,R0>0S_0,I_0,R_0>0 and S0+I0+R0≤1S_0+I_0+R_0\le1, then [0,1]3[0,1]^3 is a forward invariant set for the dynamics, meaning that we can take Ω=[0,1]2\Omega=[0,1]^2 and let x0=(S0,I0)∼ρ0x_0=(S_0,I_0)\sim\rho_0 where ρ0\rho_0 is supported in Ω\Omega.

  • Our admissible control actions take values in the rectangle RU=∏i=13[0,uimax⁡]R_U=\prod_{i=1}^{3}[0,u_i^{\max}].

  • All the components of the functions F:Ω×RU→R2F:\Omega\times R_U\to\mathbb{R}^2 and D:Ω×RU→R2×2D:\Omega\times R_U\to\mathbb{R}^{2\times2} and their xx-derivatives are continuous in (x,u)(x,u) and thus bounded on Ω×RU\Omega\times R_U.

The Fokker-Planck equation corresponding to (3) is

ρt+∇⋅(F(x,u)ρ)=∑i,j=12∂2∂xi∂xj(Dij(x,u)ρ),in Ω×(0,T],ρ(x,0)=ρ0(x),in Ω,E(x,u)⋅n=0on ∂Ω×(0,T].(4)\begin{aligned} \rho_t+\nabla\cdot(F(x,u)\rho)&=\sum_{i,j=1}^{2}\frac{\partial^2}{\partial x_i\partial x_j}(D_{ij}(x,u)\rho), &&\text{in }\Omega\times(0,T],\\ \rho(x,0)&=\rho_0(x), &&\text{in }\Omega,\\ E(x,u)\cdot n&=0 &&\text{on }\partial\Omega\times(0,T]. \tag*{(4)} \end{aligned}

where the flux E(x,u)E(x,u) is defined componentwise by

Ei(x,u)=Fi(x,u)ρ−∑j=12∂∂xj(Dij(x,u)ρ),i=1,2.(5)E_i(x,u)=F_i(x,u)\rho-\sum_{j=1}^{2}\frac{\partial}{\partial x_j}(D_{ij}(x,u)\rho),\qquad i=1,2. \tag*{(5)}

We now formulate an optimal control problem. We are interested in feedback control, so we consider ui:ΩT→RUu_i:\Omega_T\to R_U for each i=1,2,3i=1,2,3 where ΩT=Ω×[0,T]\Omega_T=\Omega\times[0,T]. Note that because the controls enter into (4) in the diffusion coefficients, we need very regular controls to guarantee nice properties of the solution. Some of this additional regularity will be required for the ensuing proof of existence of minimizers for the optimal control problem in theorem 3.5 (and the preceding lemmas), and yet more is required for the proof of the Pontryagin Minimum Principle in theorem 3.8. Accordingly, we take

Uad={u∈W1,∞(ΩT;RU)∣∥ui∥W1,∞(ΩT)≤M, i=1,2,3}.U_{\mathrm{ad}}=\{u\in W^{1,\infty}(\Omega_T;R_U)\mid\lVert u_i\rVert_{W^{1,\infty}(\Omega_T)}\le M,\ i=1,2,3\}.

for a fixed positive constant MM. We consider a relatively generic cost functional

J(ρ,u)=∫0T∫Ω(ℓ(u(x,t))+G(x,t)ρ(x,t)) dx dt+∫ΩK(x)ρ(x,T) dx.(6)J(\rho,u)=\int_{0}^{T}\int_{\Omega}\bigl(\ell(u(x,t))+G(x,t)\rho(x,t)\bigr)\,dx\,dt+\int_{\Omega}K(x)\rho(x,T)\,dx. \tag*{(6)}

where ℓ:RU→[0,∞)\ell:R_U\to[0,\infty) and G,KG,K are, at a minimum, bounded. For particular theorems, these functions will be required to satisfy further conditions as specified below.

Our optimization problem can then be stated abstractly as follows

inf⁡u∈Uad{J(ρ,u): ρ satisfies xref‘(4)‘ with control u}.(7)\inf_{u\in U_{\mathrm{ad}}}\left\{J(\rho,u):\ \rho\text{ satisfies }{xref}`(4)`\text{ with control }u\right\}. \tag*{(7)}

Here the functions ℓ,G,K\ell,G,K express the preferences of the policy-maker. The control cost ℓ(u)\ell(u) represents represents any political, economic, of logistical costs associated with implementing control measures. For example, this could encode the loss of gross domestic product (GDP) incurred when requiring businesses to close or the costs associated with manufacturing and distributing vaccines. The running cost G(x,t)G(x,t) and final cost K(x)K(x) implicitly define the desirable or undesirable epidemic outcomes. For example, recalling that x=(S,I)x=(S,I), a policy-maker may set G(x,t)=IG(x,t)=I, meaning that more cost is assessed when there is more probability density associated with states where the infectious population is larger.

Analysis of the FP optimal control problem

We prove existence of a minimizer for (7) via analysis of the control-to-state map. Before this, we need a basic existence result.

Definition 3.1. For a fixed control function u∈Uadu \in U_{\mathrm{ad}} and initial condition ρ0∈L2(Ω)\rho_0 \in L^2(\Omega), a function ρ(x,t)\rho(x,t) is formally defined to be a weak solution of (4) if it satisfies ρ(⋅,0)=ρ0\rho(\cdot,0)=\rho_0 and

∫Ω(ρtφ−ρF(x,u)⋅∇φ+∑i,j=12∂∂xj(Dij(x,u)ρ)∂φ∂xi)dx=0(8)\int_{\Omega}\left(\rho_t\varphi-\rho F(x,u)\cdot\nabla\varphi+\sum_{i,j=1}^{2}\frac{\partial}{\partial x_j}\left(D_{ij}(x,u)\rho\right)\frac{\partial\varphi}{\partial x_i}\right)dx=0 \tag*{(8)}

for all φ∈H1(Ω)\varphi\in H^1(\Omega) and a.e. t∈[0,T]t \in[0,T].

Theorem 3.2. Fix ρ0∈H1(Ω)\rho_0 \in H^1(\Omega). Then for any u∈Uadu \in U_{\mathrm{ad}} there is a unique weak solution ρ\rho of (4) with

ρ∈L2(0,T;H1(Ω))andρt∈L2(0,T;H−1(Ω)).\rho\in L^2(0,T;H^1(\Omega)) \quad\text{and} \quad\rho_t \in L^2(0,T;H^{-1}(\Omega)).

Moreover, ∥ρ∥L2(0,T;H1(Ω))\|\rho\|_{L^2(0,T;H^1(\Omega))} and ∥ρt∥L2(0,T;H−1(Ω))\|\rho_t\|_{L^2(0,T;H^{-1}(\Omega))} are uniformly bounded over choices of u∈Uadu \in U_{\mathrm{ad}}. Further,

∫Ωρ(x,t)dx=∫Ωρ0(x)dx,for all t∈(0,T]\int_{\Omega}\rho(x,t)dx=\int_{\Omega}\rho_0(x)dx,\qquad\text{for all }t\in(0,T]

and if ρ0≥0\rho_0 \ge0 almost everywhere in Ω\Omega, then ρ(⋅,t)≥0\rho(\cdot,t) \ge0 almost everywhere in Ω\Omega for all t∈(0,T]t \in(0,T].

The proof of this theorem is classical so we omit it, but comment on some facets. Existence and uniqueness of the solution follows as in [10 Ch. 7.1]. The uniform boundedness over choices of controls follows since F(x,u)F(x,u) and D(x,u)D(x,u) and their spatial derivatives are uniformly bounded for (x,u)∈Ω×RU(x,u) \in\Omega\times R_U. Conservation of the integral follows by taking φ≡1\varphi\equiv1 in (8), and nonnegativity follows by setting φ=(ρ(⋅,t))−:=−min⁡(ρ(⋅,t),0)\varphi=(\rho(\cdot,t))^- := -\min(\rho(\cdot,t),0) at each time tt and establishing the bound ddt∥ρ(⋅,t)−∥L2(Ω)2≤C∥ρ(⋅,t)−∥L2(Ω)2\frac{d}{dt}\|\rho(\cdot,t)^-\|_{L^2(\Omega)}^2 \le C\|\rho(\cdot,t)^-\|_{L^2(\Omega)}^2, whereupon the result follows by Grönwall’s inequality since ρ0−=0\rho_0^-=0. Note that because ρ0\rho_0 is a probability density function, we will henceforth always assume that ρ0≥0\rho_0 \ge0 and ∥ρ0∥L1(Ω)=1\|\rho_0\|_{L^1(\Omega)}=1, whereupon we have these same properties for ρ(⋅,t)\rho(\cdot,t) for all times t∈[0,T]t \in[0,T]. We note that theorem 3.2 does not require much regularity for the controls uu, so for this theorem the regularity in our control space UadU_{\mathrm{ad}} is sufficient but certainly unnecessary.

From theorem 3.2, we have a well defined control-to-state operator

S:Uad→W:={ρ∈L2(0,T;H1(Ω)):ρt∈L2(0,T;H−1(Ω))}⊂L2(ΩT),S:U_{\mathrm{ad}}\to W:=\{\rho\in L^2(0,T;H^1(\Omega)):\rho_t\in L^2(0,T;H^{-1}(\Omega))\}\subset L^2(\Omega_T),

u∈Uad↦ρ∈Wu\in U_{\mathrm{ad}}\mapsto\rho\in W, the weak solution of (4) with control map uu. (9)

We prove existence of a solution of (7) through analysis of SS. We proceed with two lemmas and then state existence of minimizers as a theorem. In all of the following work, we equip UadU_{\mathrm{ad}} with the L2L^2-topology induced by the norm

∥u∥L2(ΩT)=(∑i=13∥ui∥L2(ΩT)2)1/2.\|u\|_{L^2(\Omega_T)}=\left(\sum_{i=1}^{3}\|u_i\|_{L^2(\Omega_T)}^2\right)^{1/2}.

Additionally, whenever a subsequence with some property is mentioned, we implicitly pass to this subsequence, but to avoid excessive notation, we do not rename the sequences.

Lemma 3.3. The control-to-state operator SS is weakly closed.

Proof. Take a sequence of controls uk∈Uadu_k\in U_{\mathrm{ad}} such that uk⇀uu_k\rightharpoonup u in L2(ΩT)L^2(\Omega_T) and ρk=S(uk)⇀ρ\rho_k=S(u_k)\rightharpoonup\rho in WW. We need to prove that u∈Uadu\in U_{\mathrm{ad}} and S(u)=ρS(u)=\rho.

By the Banach–Alaoglu theorem and compatibility of weak limits, along a subsequence, we can achieve uk⇀∗uu_k\rightharpoonup^*u in L∞(ΩT;RU)L^\infty(\Omega_T;R_U) and (∇ui)k⇀∗gi(\nabla u_i)_k\rightharpoonup^*g_i in L∞(ΩT;R2)L^\infty(\Omega_T;\mathbb{R}^2) for some gi∈L∞(ΩT;R2)g_i\in L^\infty(\Omega_T;\mathbb{R}^2), i=1,2,3i=1,2,3. Now for any φ∈Cc∞(ΩT)\varphi\in C_c^\infty(\Omega_T), i=1,2,3i=1,2,3 and any first order partial derivative ∂\partial, we see

∫ΩT(ui)k∂φdxdt=−∫ΩT∂(ui)kφdxdt.\int_{\Omega_T}(u_i)_k\partial\varphi dxdt=-\int_{\Omega_T}\partial(u_i)_k\varphi dxdt.
{#eq:10}

By weak∗^* convergence of uku_k to uu and of (∇ui)k(\nabla u_i)_k to gig_i, this gives

∫ΩTui∂iφ dxdt=−∫ΩT∂i(gi)φ dxdt,for all φ∈Cc∞(ΩT)\int_{\Omega_T} u_i\partial_i\varphi\,dxdt=-\int_{\Omega_T}\partial_i(g_i)\varphi\,dxdt,\qquad\text{for all }\varphi\in C_c^\infty(\Omega_T)

implying that uiu_i is weakly differentiable with weak partial ∂i(gi)\partial_i(g_i), and

∥∂ui∥L∞(ΩT)≤lim inf⁡k→∞∥∂(ui)k∥L∞(ΩT)≤M\|\partial u_i\|_{L^\infty(\Omega_T)}\leq\liminf_{k\to\infty}\|\partial(u_i)_k\|_{L^\infty(\Omega_T)}\leq M

by weak∗^* lower semicontinuity of the L∞L^\infty norm. Finally, weak L2L^2 convergence also preserves pointwise a.e. bounds, as follows by testing uku_k against appropriately designed indicator functions, and thus u(x,t)∈RUu(x,t)\in R_U for almost every (x,t)∈ΩT(x,t)\in\Omega_T. We conclude that u∈Uadu\in U_{\mathrm{ad}}.

It remains to prove that S(u)=ρS(u)=\rho. By theorem 3.2, the sequence ρk\rho_k is bounded in W\mathcal{W}. Since we have compact-continuous embeddings

H1(Ω)↪↪L2(Ω)↪H−1(Ω),H^1(\Omega)\hookrightarrow\hookrightarrow L^2(\Omega)\hookrightarrow H^{-1}(\Omega),

the Aubin-Lions lemma [25 Ch. III, Prop. 1.3] yields a subsequence of ρk\rho_k which converges strongly to ρ\rho in L2(ΩT)L^2(\Omega_T). Since uk(x,t)∈RUu_k(x,t)\in R_U for a.e. (x,t)∈ΩT(x,t)\in\Omega_T and ∥uk∥W1,∞(ΩT)≤M\|u_k\|_{W^{1,\infty}(\Omega_T)}\leq M, the sequence uku_k is uniformly bounded and uniformly Lipschitz, whereupon the Arzela-Ascoli theorem gives uk→uu_k\to u uniformly along a subsequence. Because FF is continuous and uniformly bounded, this allows us to conclude that F(x,uk)→F(x,u)F(x,u_k)\to F(x,u) in L2(ΩT)L^2(\Omega_T) via the dominated convergence theorem (and similarly for DijD_{ij} and their spatial derivatives). Finally to prove that S(u)=ρS(u)=\rho, we fix φ∈H1(Ω)\varphi\in H^1(\Omega). Considering (8), there are three terms to address. The pairing (ρk)tφ(\rho_k)_t\varphi behaves nicely since ρk⇀ρ\rho_k\rightharpoonup\rho in W\mathcal{W}. The term ρkF(x,uk)⋅∇φ\rho_kF(x,u_k)\cdot\nabla\varphi is controlled since both ρk→ρ\rho_k\to\rho and F(x,uk)→F(x,u)F(x,u_k)\to F(x,u) strongly in L2(ΩT)L^2(\Omega_T). And upon expanding, the terms

∂∂xj(Dij(x,uk)ρk)∂φ∂xi\frac{\partial}{\partial x_j}\left(D_{ij}(x,u_k)\rho_k\right)\frac{\partial\varphi}{\partial x_i}

are controlled since Dij(x,uk)D_{ij}(x,u_k) is uniformly bounded and converges strongly to Dij(x,u)D_{ij}(x,u) in L2(ΩT)L^2(\Omega_T), and ρk→ρ\rho_k\to\rho weakly in W\mathcal{W}. Thus we find that ρ\rho is a weak solution of (4) corresponding to uu; that is, S(u)=ρS(u)=\rho.

Lemma 3.4. The control-to-state operator SS is weak-to-strong continuous in the L2L^2-topology. That is, if uk∈Uadu_k\in U_{\mathrm{ad}} and uk⇀uu_k\rightharpoonup u in L2(ΩT)L^2(\Omega_T), then S(uk)→S(u)S(u_k)\to S(u) in L2(ΩT)L^2(\Omega_T).

Proof. Suppose uk∈Uadu_k\in U_{\mathrm{ad}} and uk⇀uu_k\rightharpoonup u in L2(ΩT)L^2(\Omega_T). Once again, ρk:=S(uk)\rho_k:=S(u_k) is a bounded sequence in W\mathcal{W}, and thus any subsequence is bounded in W\mathcal{W}. Hence by the Aubin-Lions lemma [25 Ch. III, Prop. 1.3], we can pass to a further subsequence which converges strongly to some ρ∈L2(ΩT)\rho\in L^2(\Omega_T). By the closure guaranteed in lemma 3.3, we must have ρ=S(u)\rho=S(u). Hence we have prove that every subsequence of S(uk)S(u_k) has a further subsequence which converges strongly to S(u)S(u) in L2(ΩT)L^2(\Omega_T). By the Urysohn subsequence principle [26 §2.1.17], we have that S(uk)→S(u)S(u_k)\to S(u) in L2(ΩT)L^2(\Omega_T).

We recall before stating our existence theorem that the functions ℓ,G,K\ell,G,K are used in the definition of the cost functional J(ρ,u)J(\rho,u) in (6).

Theorem 3.5. Assume that ℓ:RU→[0,∞)\ell:R_U\to[0,\infty) is convex and lower-semicontinuous, G∈L∞(ΩT)G\in L^\infty(\Omega_T), and K∈L∞(Ω)K\in L^\infty(\Omega). Then there exists a solution u∈Uadu\in U_{\mathrm{ad}}—and corresponding weak solution ρ∈W\rho\in\mathcal{W} of (4)—of the minimization problem (7).

Proof. Define

m:=inf⁡u∈Uad{J(ρ,u): ρ satisfies xref‘(4)‘ with control u}.m:=\inf_{u\in U_{\mathrm{ad}}}\left\{J(\rho,u):\ \rho\text{ satisfies }{xref}`(4)`\text{ with control }u\right\}.

Recall that ρ(x,t)≥0\rho(x,t)\geq0 and ∥ρ(⋅,t)∥L1(Ω)=1\|\rho(\cdot,t)\|_{L^1(\Omega)}=1 for all t∈[0,T]t\in[0,T]. Then whenever ℓ,G,K\ell,G,K satisfy the given assumptions,

m≥−T∣Ω∣∥G∥L∞(ΩT)−∣Ω∣∥K∥L∞(Ω)>−∞.m\geq-T|\Omega|\|G\|_{L^\infty(\Omega_T)}-|\Omega|\|K\|_{L^\infty(\Omega)}>-\infty.

Thus we can take a sequence uk∈Uadu_k\in U_{\mathrm{ad}} with corresponding ρk:=S(uk)∈W\rho_k:=S(u_k)\in W such that J(ρk,uk)↘mJ(\rho_k,u_k)\searrow m. Since uku_k is, in particular, a bounded sequence in L2(ΩT)L^2(\Omega_T), there exists a subsequence converging weakly to some u∈L2(ΩT)u\in L^2(\Omega_T) and by the weak closure in lemma 3.3, we have u∈Uadu\in U_{\mathrm{ad}}. By the weak-to-strong continuity in lemma 3.4, we have ρk→ρ:=S(u)\rho_k\to\rho:=S(u) in L2(ΩT)L^2(\Omega_T). Considering the definition of the cost functional in (6), the conditions that ℓ\ell is nonnegative, convex and lower-semicontinuous guarantee that the map u∈Uad↦∫ΩTℓ(u) dx dt∈[0,∞)u \in U_{\mathrm{ad}} \mapsto\int_{\Omega_T} \ell(u)\,dx\,dt \in[0,\infty) is weakly lower-semicontinuous, and the integral terms involving the ρk\rho_k are preserved under limits simply by convergence of ρk→ρ\rho_k \to\rho, since GG, KK are bounded. Thus we have

m≤J(ρ,u)≤lim inf⁡k→∞J(ρk,uk)=mm \le J(\rho,u) \le\liminf_{k\to\infty}J(\rho_k,u_k)=m

proving that the pair (ρ,u)(\rho,u) is a solution of (7).

Given this, we would like to prove first order necessary conditions for optimality akin to the classical Pontryagin Minimum Principle. To do so, we need a notions of an adjoint solution and a Hamiltonian.

For functions ρ(x,t)\rho(x,t), q(x,t)q(x,t), u(x,t)u(x,t), we define the formal Lagrangian by

L(ρ,q,u)=J(ρ,u)+∫ΩTq(ρt+∇⋅(F(x,u)ρ)−∑i,j=12∂2∂xi∂xj(Dij(x,u)ρ)) dx dt(9)L(\rho,q,u)=J(\rho,u)+\int_{\Omega_T}q\left(\rho_t+\nabla\cdot(F(x,u)\rho)-\sum_{i,j=1}^{2}\frac{\partial^2}{\partial x_i\partial x_j}\left(D_{ij}(x,u)\rho\right)\right)\,dx\,dt \tag*{(9)}

Here the adjoint function q(x,t)q(x,t) is playing the role of a Lagrange multiplier. Integrating by parts and expanding J(ρ,u)J(\rho,u), we have

L(ρ,q,u)=∫ΩTℓ(u(x,t))+ρ(−qt−F(x,u)⋅∇q−∑i,j=12Di,j(x,u)∂2q∂xi∂xj+G(x,t)) dx dt+∫Ωρ(x,T)(q(x,T)+K(x))−q(x,0)ρ0(x) dx+∫0T∫∂Ωρ(D∇q)⋅n dS dt,\begin{aligned} L(\rho,q,u)={}&\int_{\Omega_T}\ell(u(x,t))+\rho\left(-q_t-F(x,u)\cdot\nabla q-\sum_{i,j=1}^{2}D_{i,j}(x,u)\frac{\partial^2q}{\partial x_i\partial x_j}+G(x,t)\right)\,dx\,dt\\ &+\int_{\Omega}\rho(x,T)(q(x,T)+K(x))-q(x,0)\rho_0(x)\,dx\\ &+\int_0^T\int_{\partial\Omega}\rho(D\nabla q)\cdot n\,dS\,dt, \end{aligned}

where we have enforced the zero flux boundary condition E⋅n=0E\cdot n=0. The adjoint equation is derived by enforcing

[ddηL(ρ+ηv,q,u)]η=0=0\left[\frac{d}{d\eta}L(\rho+\eta v,q,u)\right]_{\eta=0}=0

for arbitrary smooth test functions vv satisfying v(x,0)=0v(x,0)=0. Computing formally, this yields

qt+F(x,u)⋅∇q+∑i,j=12Dij(x,u)∂2q∂xi∂xj=G(x,t),in Ω×[0,T),q_t+F(x,u)\cdot\nabla q+\sum_{i,j=1}^{2}D_{ij}(x,u)\frac{\partial^2q}{\partial x_i\partial x_j}=G(x,t),\qquad\text{in }\Omega\times[0,T),
q(x,T)=−K(x),in Ω,q(x,T)=-K(x),\qquad\text{in }\Omega,
(D∇q)⋅n=0,on ∂Ω×[0,T).(10)(D\nabla q)\cdot n=0,\qquad\text{on }\partial\Omega\times[0,T). \tag*{(10)}

Solutions to (10) are considered in a weak sense analogous to (8) above. That is, qq is a weak solution of (10) if q(⋅,T)=−K(⋅)q(\cdot,T)=-K(\cdot) and

∫Ω(ψqt−q∇⋅(F(x,u)ψ)−∑i,j=12∂∂xi(Dij(x,u)ψ)∂q∂xj) dx=∫ΩG(x,t)ψ dx(11)\int_{\Omega}\left(\psi q_t-q\nabla\cdot(F(x,u)\psi)-\sum_{i,j=1}^{2}\frac{\partial}{\partial x_i}\left(D_{ij}(x,u)\psi\right)\frac{\partial q}{\partial x_j}\right)\,dx=\int_{\Omega}G(x,t)\psi\,dx \tag*{(11)}

for all ψ∈H1(Ω)\psi\in H^1(\Omega) and a.e. t∈[0,T]t\in[0,T]. For fixed u∈Uadu\in U_{\mathrm{ad}}, existence and uniqueness follow directly as in [10 Ch. 7.1]. Regularity can then be upgraded to W2,p(ΩT)W^{2,p}(\Omega_T) via standard parabolic regularity results [19 Thm. 7.35]. This is the main reason that we need so much additional regularity for our control space. With controls uniformly bounded W1,∞(ΩT)W^{1,\infty}(\Omega_T) and taking values in the compact rectangle RUR_U, the maps (x,t)↦F(x,u(x,t))(x,t)\mapsto F(x,u(x,t)) and (x,t)↦D(x,u(x,t))(x,t)\mapsto D(x,u(x,t)) are in W1,∞(ΩT)W^{1,\infty}(\Omega_T) which allows for the increased regularity.

Theorem 3.6. If K∈H1(Ω)K\in H^1(\Omega) and G∈L∞(ΩT)G\in L^\infty(\Omega_T), then for any u∈Uadu\in U_{\mathrm{ad}}, there is a unique weak solution qq of (10) with

q∈L2(0,T;H1(Ω))andqt∈L2(0,T;H−1(Ω)).q\in L^2(0,T;H^1(\Omega))\qquad\text{and}\qquad q_t\in L^2(0,T;H^{-1}(\Omega)).

Further, if K∈W2,p(Ω)K \in W^{2,p}(\Omega), then q∈Wp2,1(ΩT)q \in W^{2,1}_{p}(\Omega_T) and ∥q∥Wp2,1(ΩT)\|q\|_{W^{2,1}_{p}(\Omega_T)} is uniformly bounded over choices u∈Uadu \in U_{\mathrm{ad}}.

We henceforth assume that K∈W2,∞(Ω)K \in W^{2,\infty}(\Omega) so that we have uniformly bounded ∥q∥Wp2,1(ΩT)\|q\|_{W^{2,1}_{p}(\Omega_T)} for any finite pp.

We then formally define the Hamiltonian

H(ρ,q,u)=ℓ(u)−ρF(x,u)⋅∇q+∑i,j=12∂∂xj(Dij(x,u)ρ)∂q∂xi.(12)H(\rho,q,u)=\ell(u)-\rho F(x,u)\cdot\nabla q+\sum_{i,j=1}^{2}\frac{\partial}{\partial x_j}\bigl(D_{ij}(x,u)\rho\bigr)\frac{\partial q}{\partial x_i}. \tag*{(12)}

Note that HH depends on (x,t)(x,t) implicitly through ρ,q,u\rho,q,u; we have suppressed this dependence to reduce the notational burden.

We prove that the optimal control map can be characterized as a pointwise minimizer of this Hamiltonian. Before doing so, we prove a lemma relating the cost functional and the Hamiltonian.

Lemma 3.7. For two control maps u,u^∈Uadu,\hat{u}\in U_{\mathrm{ad}} with respective solutions ρ,ρ^\rho,\hat{\rho} of (4), we have

J(ρ,u)−J(ρ^,u^)=∫0T∫Ω[H(ρ^,q,u)−H(ρ^,q,u^)] dxdtJ(\rho,u)-J(\hat{\rho},\hat{u})=\int_{0}^{T}\int_{\Omega}\left[H(\hat{\rho},q,u)-H(\hat{\rho},q,\hat{u})\right]\,dxdt

where qq is the solution of (10) corresponding to (ρ,u)(\rho,u).

Proof. We compute

J(ρ,u)−J(ρ^,u^)=∫0T∫Ω[ℓ(u)−ℓ(u^)+G(x,t)(ρ−ρ^)] dxdt+∫Ω(ρ(⋅,T)−ρ^(⋅,T))K(x) dx=∫0T∫Ω(ℓ(u)−ℓ(u^)) dxdt+∫Ω(ρ^(⋅,T)−ρ(⋅,T))q(⋅,T) dx+∫0T∫Ω((ρ−ρ^)qt+(ρ−ρ^)F(x,u)⋅∇q) dxdt−∫0T∫Ω∑i,j=12∂∂xj(Dij(x,u)[ρ−ρ^])∂q∂xi dxdt=∫0T∫Ω(ℓ(u)−ℓ(u^)) dxdt+∫0T∫Ω((ρ^t−ρt)q+(ρ−ρ^)F(x,u)⋅∇q) dxdt−∫0T∫Ω∑i,j=12∂∂xj(Dij(x,u)[ρ−ρ^])∂q∂xi dxdt(13)\begin{aligned} J(\rho,u)-J(\hat{\rho},\hat{u}) ={}&\int_{0}^{T}\int_{\Omega}\left[\ell(u)-\ell(\hat{u})+G(x,t)(\rho-\hat{\rho})\right]\,dxdt +\int_{\Omega}\bigl(\rho(\cdot,T)-\hat{\rho}(\cdot,T)\bigr)K(x)\,dx\\ ={}&\int_{0}^{T}\int_{\Omega}\bigl(\ell(u)-\ell(\hat{u})\bigr)\,dxdt +\int_{\Omega}\bigl(\hat{\rho}(\cdot,T)-\rho(\cdot,T)\bigr)q(\cdot,T)\,dx\\ &+\int_{0}^{T}\int_{\Omega}\left((\rho-\hat{\rho})q_t+(\rho-\hat{\rho})F(x,u)\cdot\nabla q\right)\,dxdt\\ &-\int_{0}^{T}\int_{\Omega}\sum_{i,j=1}^{2}\frac{\partial}{\partial x_j}\bigl(D_{ij}(x,u)[\rho-\hat{\rho}]\bigr)\frac{\partial q}{\partial x_i}\,dxdt\\ ={}&\int_{0}^{T}\int_{\Omega}\bigl(\ell(u)-\ell(\hat{u})\bigr)\,dxdt\\ &+\int_{0}^{T}\int_{\Omega}\left((\hat{\rho}_t-\rho_t)q+(\rho-\hat{\rho})F(x,u)\cdot\nabla q\right)\,dxdt\\ &-\int_{0}^{T}\int_{\Omega}\sum_{i,j=1}^{2}\frac{\partial}{\partial x_j}\bigl(D_{ij}(x,u)[\rho-\hat{\rho}]\bigr)\frac{\partial q}{\partial x_i}\,dxdt \tag*{(13)} \end{aligned}

where in the middle equality we have used (11) with ψ=ρ−ρ^\psi=\rho-\hat{\rho}, and in the last we have integrated by parts in tt and canceled boundary terms. But now with qq playing the role of the test function φ\varphi in (8), we see that all terms with ρ\rho drop out of (13) since ρ\rho is the weak solution of (4) corresponding to uu. Thus we arrive at

J(ρ,u)−J(ρ^,u^)=∫0T∫Ω(ℓ(u)−ℓ(u^)+ρ^tq−ρ^F(x,u)⋅∇q) dxdt+∫0T∫Ω∑i,j=12∂∂xj(Dij(x,u)ρ^)∂q∂xi dxdt=∫0T∫Ω(ℓ(u)−ρ^F(x,u)⋅q+∑i,j=12∂∂xj(Dij(x,u)ρ^)∂q∂xi) dxdt−∫0T∫Ω(ℓ(u^)−ρ^F(x,u^)⋅q+∑i,j=12∂∂xj(Dij(x,u^)ρ^)∂q∂xi) dxdt=∫0T∫Ω[H(ρ^,q,u)−H(ρ^,q,u^)] dxdt(14)\begin{aligned} J(\rho,u)-J(\hat{\rho},\hat{u})={}&\int_{0}^{T}\int_{\Omega}\left(\ell(u)-\ell(\hat{u})+\hat{\rho}_{t}q-\hat{\rho}F(x,u)\cdot\nabla q\right)\,dxdt\\ &+\int_{0}^{T}\int_{\Omega}\sum_{i,j=1}^{2}\frac{\partial}{\partial x_j}\left(D_{ij}(x,u)\hat{\rho}\right)\frac{\partial q}{\partial x_i}\,dxdt\\ ={}&\int_{0}^{T}\int_{\Omega}\left(\ell(u)-\hat{\rho}F(x,u)\cdot q+\sum_{i,j=1}^{2}\frac{\partial}{\partial x_j}\left(D_{ij}(x,u)\hat{\rho}\right)\frac{\partial q}{\partial x_i}\right)\,dxdt\\ &-\int_{0}^{T}\int_{\Omega}\left(\ell(\hat{u})-\hat{\rho}F(x,\hat{u})\cdot q+\sum_{i,j=1}^{2}\frac{\partial}{\partial x_j}\left(D_{ij}(x,\hat{u})\hat{\rho}\right)\frac{\partial q}{\partial x_i}\right)\,dxdt\\ ={}&\int_{0}^{T}\int_{\Omega}\left[H(\hat{\rho},q,u)-H(\hat{\rho},q,\hat{u})\right]\,dxdt \tag*{(14)} \end{aligned}

where in the last equality we have replaced ∫0T∫Ωρ^tq dxdt\int_{0}^{T}\int_{\Omega}\hat{\rho}_{t}q\,dxdt using that ρ^\hat{\rho} is a weak solution of (4). This completes the proof.

Theorem 3.8. Suppose that the state-control pair (ρ,u)(\rho,u) is a solution of (7) and that qq is the corresponding solution of (10). Then for any w∈RUw\in R_U,

H(ρ(x,t),q(x,t),u(x,t))≤H(ρ(x,t),q(x,t),w)for almost all (x,t)∈ΩT.(15)H(\rho(x,t),q(x,t),u(x,t))\leq H(\rho(x,t),q(x,t),w)\quad\text{for almost all }(x,t)\in\Omega_T. \tag*{(15)}

That is, u(x,t)u(x,t) is a pointwise minimizer of the Hamiltonian when evaluated at the optimal state and costate pair.

Proof. The proof utilizes the classical needle variation technique. Supposing that (ρ,u)(\rho,u) is optimal, we fix a point (x0,t0)∈ΩT(x_0,t_0)\in\Omega_T and w∈RUw\in R_U. Define the set

Bk(x0,t0):={(x,t)∈ΩT:∣t−t0∣+∥x−x0∥2≤1/k}B_k(x_0,t_0):=\{(x,t)\in\Omega_T:|t-t_0|+\|x-x_0\|_2\leq1/k\}

and the control map

uk(x,t)={u(x,t),(x,t)∈ΩT∖Bk(x0,t0),w,(x,t)∈ΩT∩Bk(x0,t0).u_k(x,t)= \begin{cases} u(x,t), & (x,t)\in\Omega_T\setminus B_k(x_0,t_0),\\ w, & (x,t)\in\Omega_T\cap B_k(x_0,t_0). \end{cases}

In what follows, ww is the fixed constant value in RUR_U, while u=u(x,t)u=u(x,t) depends on (x,t)(x,t). Assuming ρk\rho_k is the state map corresponding to uku_k and qkq_k is the adjoint map corresponding to (ρk,uk)(\rho_k,u_k), lemma 3.7 tells us that

0≤J(ρk,uk)−J(ρ,u)∣Bk(x0,t0)∣=1∣Bk(x0,t0)∣∫0T∫Ω[H(ρ,qk,uk)−H(ρ,qk,u)] dxdt=1∣Bk(x0,t0)∣∫Bk(x0,t0)[H(ρ,qk,w)−H(ρ,qk,u)] dxdt=1∣Bk(x0,t0)∣∫Bk(x0,t0)[H(ρ,q,w)−H(ρ,q,u)] dxdt+1∣Bk(x0,t0)∣∫Bk(x0,t0)[H(ρ,qk,w)−H(ρ,q,w)] dxdt+1∣Bk(x0,t0)∣∫Bk(x0,t0)[H(ρ,q,u)−H(ρ,qk,u)] dxdt=1∣Bk(x0,t0)∣∫Bk(x0,t0)[H(ρ,q,w)−H(ρ,q,u)] dxdt+I1+I2(16)\begin{aligned} 0\leq\frac{J(\rho_k,u_k)-J(\rho,u)}{\lvert B_k(x_0,t_0)\rvert} ={}&\frac{1}{\lvert B_k(x_0,t_0)\rvert}\int_{0}^{T}\int_{\Omega}\left[H(\rho,q_k,u_k)-H(\rho,q_k,u)\right]\,dxdt\\ ={}&\frac{1}{\lvert B_k(x_0,t_0)\rvert}\int_{B_k(x_0,t_0)}\left[H(\rho,q_k,w)-H(\rho,q_k,u)\right]\,dxdt\\ ={}&\frac{1}{\lvert B_k(x_0,t_0)\rvert}\int_{B_k(x_0,t_0)}\left[H(\rho,q,w)-H(\rho,q,u)\right]\,dxdt\\ &+\frac{1}{\lvert B_k(x_0,t_0)\rvert}\int_{B_k(x_0,t_0)}\left[H(\rho,q_k,w)-H(\rho,q,w)\right]\,dxdt\\ &+\frac{1}{\lvert B_k(x_0,t_0)\rvert}\int_{B_k(x_0,t_0)}\left[H(\rho,q,u)-H(\rho,q_k,u)\right]\,dxdt\\ ={}&\frac{1}{\lvert B_k(x_0,t_0)\rvert}\int_{B_k(x_0,t_0)}\left[H(\rho,q,w)-H(\rho,q,u)\right]\,dxdt+I_1+I_2 \tag*{(16)} \end{aligned}

where I1,I2I_1,I_2 are the indented integrals. Now the map

(x,t)↦[H(ρ(x,t),q(x,t),w)−H(ρ(x,t),q(x,t),u(x,t))](x,t)\mapsto\left[H(\rho(x,t),q(x,t),w)-H(\rho(x,t),q(x,t),u(x,t))\right]

is in L1(ΩT)L^1(\Omega_T), so by the Lebesgue differentiation theorem

lim⁡k→∞1∣Bk(x0,t0)∣∫Bk(x0,t0)[H(ρ,q,w)−H(ρ,q,u)] dxdt=H(ρ(x0,t0),q(x0,t0),w)−H(ρ(x0,t0),q(x0,t0),u(x0,t0))\lim_{k\to\infty}\frac{1}{|B_k(x_0,t_0)|}\int_{B_k(x_0,t_0)}\left[H(\rho,q,w)-H(\rho,q,u)\right]\,dxdt =H(\rho(x_0,t_0),q(x_0,t_0),w)-H(\rho(x_0,t_0),q(x_0,t_0),u(x_0,t_0))

as long as (x0,t0)∈ΩT(x_0,t_0)\in\Omega_T is a Lebesgue point for this function. Thus, taking the limit as k→∞k\to\infty in (16), we arrive at (15) so long as I1,I2→0I_1,I_2\to0. We see

I1=1∣Bk(x0,t0)∣∫Bk(x0,t0)[H(ρ,qk,w)−H(ρ,q,w)] dxdt=1∣Bk(x0,t0)∣∫Bk(x0,t0)[ρF(x,w)⋅[∇q−∇qk]−∑i,j=12∂∂xj(Dij(x,w)ρ)∂∂xi(q−qk)] dxdt=1∣Bk(x0,t0)∣∫Bk(x0,t0)E(x,w)⋅(∇q−∇qk) dxdt≤(1∣Bk(x0,t0)∣∫Bk(x0,t0)∣E(x,w)∣ dxdt)∥∇q−∇qk∥L∞(ΩT)(17)\begin{aligned} I_1={}&\frac{1}{|B_k(x_0,t_0)|}\int_{B_k(x_0,t_0)}\left[H(\rho,q_k,w)-H(\rho,q,w)\right]\,dxdt\\ ={}&\frac{1}{|B_k(x_0,t_0)|}\int_{B_k(x_0,t_0)}\left[\rho F(x,w)\cdot[\nabla q-\nabla q_k]-\sum_{i,j=1}^{2}\frac{\partial}{\partial x_j}(D_{ij}(x,w)\rho)\frac{\partial}{\partial x_i}(q-q_k)\right]\,dxdt\\ ={}&\frac{1}{|B_k(x_0,t_0)|}\int_{B_k(x_0,t_0)}E(x,w)\cdot(\nabla q-\nabla q_k)\,dxdt\\ \le{}&\left(\frac{1}{|B_k(x_0,t_0)|}\int_{B_k(x_0,t_0)}|E(x,w)|\,dxdt\right)\|\nabla q-\nabla q_k\|_{L^\infty(\Omega_T)} \tag*{(17)} \end{aligned}

where EE is the Fokker-Planck flux defined in (5). Now qk→qq_k\to q strongly in L2(0,T;H1(Ω))L^2(0,T;H^1(\Omega)) by a standard parabolic stability estimate [10 Ch. 7, Thm. 2]. However, we recall that for sufficiently regular KK, ∥q∥Wp2,1(ΩT)\|q\|_{W_p^{2,1}(\Omega_T)} is uniformly bounded over choices of controls for any p>1p>1. Taking pp large enough, we have that Wp2,1(ΩT)W_p^{2,1}(\Omega_T) is compactly embedded in C1,1/2(ΩT‾)C^{1,1/2}(\overline{\Omega_T}) [15 Thm. 3.14], [17 Ch. II, Lem. 3.3]. This implies that ∇qk→∇q\nabla q_k\to\nabla q uniformly along a subsequence. Assuming (x0,t0)(x_0,t_0) is a Lebesgue point of ∣E(x,w)∣|E(x,w)|, the term in the parentheses remains bounded as k→∞k\to\infty and thus I1→0I_1\to0 by uniform convergence of ∇qk\nabla q_k. The integral I2I_2 is treated identically. Because such points (x0,t0)(x_0,t_0) comprise almost all of ΩT\Omega_T, passing to the limit in (16) shows that

0≤H(ρ(x0,t0),q(x0,t0),w)−H(ρ(x0,t0),q(x0,t0),u(x0,t0))for almost all (x0,t0)∈ΩT0\le H(\rho(x_0,t_0),q(x_0,t_0),w)-H(\rho(x_0,t_0),q(x_0,t_0),u(x_0,t_0))\quad\text{for almost all }(x_0,t_0)\in\Omega_T

as desired.

Given this, the first order necessary optimality conditions for this system are as follows.

Corollary 3.9. If (ρ,u)(\rho,u) is a solution of (7), then there exists a costate map qq such that

{ρt+∇⋅(F(x,u)ρ)=∑i,j=12∂2∂xi∂xj(Dij(x,u)ρ),in Ω×(0,T],ρ(x,0)=ρ0(x) in Ω,E(x,u)⋅n=0 on ∂Ω for E as defined in xref‘(5)‘.(FP)\begin{cases} \rho_t+\nabla\cdot(F(x,u)\rho)=\sum_{i,j=1}^{2}\frac{\partial^2}{\partial x_i\partial x_j}(D_{ij}(x,u)\rho), & \text{in }\Omega\times(0,T],\\ \rho(x,0)=\rho_0(x) \text{ in }\Omega,\quad E(x,u)\cdot n=0 \text{ on }\partial\Omega\text{ for }E\text{ as defined in }{xref}`(5)`. \end{cases} \quad\text{(FP)}
{qt+F(x,u)⋅∇q+∑i,j=12Dij(x,u)∂2q∂xi∂xj=G(x,t),in Ω×[0,T),q(x,T)=−K(x) in Ω,(D∇q)⋅n=0,on ∂Ω.(ADJ)\begin{cases} q_t+F(x,u)\cdot\nabla q+\sum_{i,j=1}^{2}D_{ij}(x,u)\frac{\partial^2q}{\partial x_i\partial x_j}=G(x,t), & \text{in }\Omega\times[0,T),\\ q(x,T)=-K(x) \text{ in }\Omega,\quad(D\nabla q)\cdot n=0,\quad\text{on }\partial\Omega. \end{cases} \quad\text{(ADJ)}
u(x,t)∈arg min⁡w∈Ru H(ρ(x,t),q(x,t),w)for a.e. (x,t)∈Ω×[0,T].(OPT)u(x,t)\in\underset{w\in\mathbb{R}_u}{\operatorname{arg\,min}}\ H(\rho(x,t),q(x,t),w)\quad\text{for a.e. }(x,t)\in\Omega\times[0,T]. \quad\text{(OPT)}

Numerical approximation

In this section, we describe the numerical methods used to solve the FP optimal control problem (7). The numerical procedure consists of finite-difference approximations of the forward FP equation (4) and the backward adjoint equation (10), coupled through the sequential quadratic Hamiltonian (SQH) method. The latter iteratively updates the space- and time-dependent feedback control u=(u1,u2,u3)u=(u_1,u_2,u_3) by pointwise minimization of a quadratically augmented Hamiltonian.

Numerical approximation of the forward FP equation

Let

xi=ax+(i−1)Δx,yj=ay+(j−1)Δy,tn=nΔt,x_i=a_x+(i-1)\Delta x,\qquad y_j=a_y+(j-1)\Delta y,\qquad t_n=n\Delta t,

denote a uniform discretization of ΩT=Ω×(0,T)\Omega_T=\Omega\times(0,T), and let fi,jnf_{i,j}^n denote the numerical approximation of the probability density ρ(xi,yj,tn)\rho(x_i,y_j,t_n). Since ρ\rho represents a probability density, the numerical treatment of the forward FP equation should, as far as possible, retain the fundamental structural properties of the continuous problem. In particular, the numerical solution should remain nonnegative, conserve total probability under the zero-flux boundary condition, and accurately balance drift and diffusion without introducing spurious oscillations. For this reason, we use a two-dimensional Chang–Cooper discretization for the drift and diagonal diffusion terms.

We write the controlled FP equation as

ρt=−∂x1(B1ρ)−∂x2(B2ρ)+∂x1x1(D11ρ)+2∂x1x2(D12ρ)+∂x2x2(D22ρ),(18)\rho_t=-\partial_{x_1}(B_1\rho)-\partial_{x_2}(B_2\rho)+\partial_{x_1x_1}(D_{11}\rho)+2\partial_{x_1x_2}(D_{12}\rho)+\partial_{x_2x_2}(D_{22}\rho), \tag*{(18)}

where

Bi=Fi(x,u),i=1,2.B_i=F_i(x,u),\qquad i=1,2.

The diagonal contributions in (18) can be written in conservative flux form as

−∂x1[(B1−∂x1D11)ρ−D11∂x1ρ]-\partial_{x_1}\left[(B_1-\partial_{x_1}D_{11})\rho-D_{11}\partial_{x_1}\rho\right]

and

−∂x2[(B2−∂x2D22)ρ−D22∂x2ρ].-\partial_{x_2}\left[(B_2-\partial_{x_2}D_{22})\rho-D_{22}\partial_{x_2}\rho\right].

This motivates the modified drift coefficients

B~1=B1−∂x1D11,B~2=B2−∂x2D22.\widetilde{B}_1=B_1-\partial_{x_1}D_{11},\qquad\widetilde{B}_2=B_2-\partial_{x_2}D_{22}.

In the implementation, these quantities are evaluated at the corresponding cell faces using finite differences of the diagonal diffusion coefficients. At an x1x_1-face (xi+1/2,yj)(x_{i+1/2},y_j), define

w1,i+12,jn=Δx B~1,i+12,jnD11,i+12,jn,w_{1,i+\frac{1}{2},j}^n=\frac{\Delta x\,\widetilde{B}_{1,i+\frac{1}{2},j}^n}{D_{11,i+\frac{1}{2},j}^n},

and analogously at an x2x_2-face,

w2,i,j+12n=Δy B~2,i,j+12nD22,i,j+12n.w_{2,i,j+\frac{1}{2}}^n=\frac{\Delta y\,\widetilde{B}_{2,i,j+\frac{1}{2}}^n}{D_{22,i,j+\frac{1}{2}}^n}.

The Chang–Cooper weights are determined by

δ(w)=1w−1ew−1,(19)\delta(w)=\frac{1}{w}-\frac{1}{e^w-1}, \tag*{(19)}

with the limiting value

δ(0)=12.\delta(0)=\frac{1}{2}.

The quantity ww measures the relative strength of drift and diffusion across a grid cell. Thus, unlike a standard centered discretization, the Chang–Cooper weighting automatically biases the numerical flux in a manner determined by the local drift–diffusion balance. For example, the discrete flux through the face (xi+1/2,yj)(x_{i+1/2},y_j) may be written in the form

Fi+12,jn=B~1,i+12,jn[(1−δ1,i+12,jn)fi+1,jn+δ1,i+12,jnfi,jn]−D11,i+12,jnfi+1,jn−fi,jnΔx,\mathcal{F}^{n}_{i+\frac{1}{2},j}=\widetilde{B}^{n}_{1,i+\frac{1}{2},j}\left[(1-\delta^{n}_{1,i+\frac{1}{2},j})f^{n}_{i+1,j}+\delta^{n}_{1,i+\frac{1}{2},j}f^{n}_{i,j}\right]-D^{n}_{11,i+\frac{1}{2},j}\frac{f^{n}_{i+1,j}-f^{n}_{i,j}}{\Delta x},

where

δ1,i+12,jn=δ(w1,i+12,jn).\delta^{n}_{1,i+\frac{1}{2},j}=\delta\left(w^{n}_{1,i+\frac{1}{2},j}\right).

Similarly,

Gi,j+12n=B~2,i,j+12n[(1−δ2,i,j+12n)fi,j+1n+δ2,i,j+12nfi,jn]−D22,i,j+12nfi,j+1n−fi,jnΔy.\mathcal{G}^{n}_{i,j+\frac{1}{2}}=\widetilde{B}^{n}_{2,i,j+\frac{1}{2}}\left[(1-\delta^{n}_{2,i,j+\frac{1}{2}})f^{n}_{i,j+1}+\delta^{n}_{2,i,j+\frac{1}{2}}f^{n}_{i,j}\right]-D^{n}_{22,i,j+\frac{1}{2}}\frac{f^{n}_{i,j+1}-f^{n}_{i,j}}{\Delta y}.

The diagonal drift–diffusion contribution at an interior grid point is therefore represented by the conservative flux difference

−Fi+12,jn−Fi−12,jnΔx−Gi,j+12n−Gi,j−12nΔy.-\frac{\mathcal{F}^{n}_{i+\frac{1}{2},j}-\mathcal{F}^{n}_{i-\frac{1}{2},j}}{\Delta x}-\frac{\mathcal{G}^{n}_{i,j+\frac{1}{2}}-\mathcal{G}^{n}_{i,j-\frac{1}{2}}}{\Delta y}.

A principal advantage of the Chang–Cooper construction is that the drift and diffusion terms are not discretized independently. Instead, the weighting in (19) is chosen from their local ratio. For one-dimensional FP equations, this construction is well known to preserve nonnegativity under the appropriate time-step restriction and to reproduce the correct discrete equilibrium associated with zero probability flux. In the present two-dimensional implementation, the same construction is applied direction-by-direction to the diagonal drift–diffusion contributions. This significantly reduces the artificial numerical diffusion and spurious oscillations that may arise from a straightforward centered approximation.

The diffusion matrix in the present stochastic SIRS model is not diagonal, so the FP equation also contains the mixed term

2∂x1x2(D12ρ).2\partial_{x_1x_2}(D_{12}\rho).

This contribution is treated separately. Setting

gi,jn=D12,i,jnfi,jn,g^{n}_{i,j}=D^{n}_{12,i,j}f^{n}_{i,j},

we use the centered approximation

∂x1x2(D12ρ)i,jn≈gi+1,j+1n−gi+1,j−1n−gi−1,j+1n+gi−1,j−1n4ΔxΔy.(20)\partial_{x_1x_2}(D_{12}\rho)^{n}_{i,j}\approx\frac{g^{n}_{i+1,j+1}-g^{n}_{i+1,j-1}-g^{n}_{i-1,j+1}+g^{n}_{i-1,j-1}}{4\Delta x\Delta y}. \tag*{(20)}

Consequently, if LCCn\mathcal{L}^{n}_{\mathrm{CC}} denotes the Chang–Cooper discretization of the diagonal drift–diffusion terms and Lmixn\mathcal{L}^{n}_{\mathrm{mix}} denotes the approximation (20), the full explicit update can be written schematically as

fi,jn+1=fi,jn+Δt[(LCCnfn)i,j+2(Lmixnfn)i,j].(21)f^{n+1}_{i,j}=f^{n}_{i,j}+\Delta t\left[(\mathcal{L}^{n}_{\mathrm{CC}}f^{n})_{i,j}+2(\mathcal{L}^{n}_{\mathrm{mix}}f^{n})_{i,j}\right]. \tag*{(21)}

Thus the diagonal part is advanced using Chang–Cooper fluxes, while the cross-diffusion generated by the common transmission noise is included through a centered mixed-derivative correction. This is the same decomposition used in the numerical implementation.

The time discretization in (21) is explicit, and therefore the time step must be chosen sufficiently small relative to the spatial mesh and the magnitudes of the drift and diffusion coefficients. Under the corresponding stability restriction, the Chang–Cooper component of the scheme retains the positivity-preserving character of the underlying discretization. Because the mixed derivative is added separately by a centered explicit approximation, positivity of the complete two-dimensional update is not automatic for an arbitrary time step. We therefore use a sufficiently fine temporal grid and monitor the minimum value of the computed density throughout the calculation.

An equally important property is conservation of total probability. For the continuous FP equation,

ddt∫Ωρ(x,t) dx=−∫∂ΩE(x,u)⋅n dS.\frac{d}{dt}\int_{\Omega}\rho(x,t)\,dx=-\int_{\partial\Omega}E(x,u)\cdot n\,dS.

and hence the zero-flux boundary condition implies

∫Ωρ(x,t) dx=∫Ωρ0(x) dx=1.\int_{\Omega} \rho(x,t)\,\mathrm{d}x = \int_{\Omega} \rho_0(x)\,\mathrm{d}x = 1.

The discrete Chang–Cooper terms are written as differences of neighboring numerical fluxes, so the interior contributions telescope when summed over all grid cells. Thus conservation reduces to the treatment of the boundary fluxes.

Accordingly, after every forward Euler update, the zero-flux boundary condition from (4) is imposed directly. Because the diffusion matrix contains the off-diagonal term D12D_{12}, the normal flux cannot be enforced using only the diagonal diffusion coefficients. For example, on a vertical boundary the condition involves

E1=B1ρ−∂x1(D11ρ)−∂x2(D12ρ)=0,E_1 = B_1\rho- \partial_{x_1}(D_{11}\rho) - \partial_{x_2}(D_{12}\rho) = 0,

whereas on a horizontal boundary,

E2=B2ρ−∂x1(D12ρ)−∂x2(D22ρ)=0.E_2 = B_2\rho- \partial_{x_1}(D_{12}\rho) - \partial_{x_2}(D_{22}\rho) = 0.

The boundary values of the density are therefore reconstructed so that the complete normal probability flux, including the cross-diffusion contribution, vanishes. The four corner values are obtained by averaging the neighboring boundary values. With this treatment, the spatial discretization retains the conservative character of the FP equation.

Numerical approximation of the adjoint equation

The adjoint equation (10) is solved backward in time from the terminal condition

q(x,T)=−K(x).q(x,T) = -K(x).

Unlike the forward equation, which is written in conservative FP form, the adjoint equation is discretized directly in its backward Kolmogorov form,

qt+F1qx1+F2qx2+D11qx1x1+2D12qx1x2+D22qx2x2=G.q_t + F_1q_{x_1} + F_2q_{x_2} + D_{11}q_{x_1x_1} + 2D_{12}q_{x_1x_2} + D_{22}q_{x_2x_2} = G.

The face-centered drift coefficients used by the forward Chang–Cooper solver are first averaged to the spatial grid points. For interior grid points, the first derivatives are approximated by centered differences,

(qx1)i,j≈qi+1,j−qi−1,j2Δx,(qx2)i,j≈qi,j+1−qi,j−12Δy,(q_{x_1})_{i,j} \approx\frac{q_{i+1,j}-q_{i-1,j}}{2\Delta x}, \qquad(q_{x_2})_{i,j} \approx\frac{q_{i,j+1}-q_{i,j-1}}{2\Delta y},

while the diagonal second derivatives are approximated by the usual three-point formulas. The mixed derivative is approximated by

(qx1x2)i,j≈qi+1,j+1−qi+1,j−1−qi−1,j+1+qi−1,j−14ΔxΔy.(q_{x_1x_2})_{i,j} \approx\frac{q_{i+1,j+1}-q_{i+1,j-1}-q_{i-1,j+1}+q_{i-1,j-1}}{4\Delta x\Delta y}.

Consequently, if Lh\mathcal{L}_h denotes the resulting spatial finite-difference operator, the backward time update takes the form

qn=qn+1+Δt(Lhqn+1−Gn+1).q^n = q^{n+1} + \Delta t\left(\mathcal{L}_h q^{n+1} - G^{n+1}\right).

The adjoint boundary condition

(D∇q)⋅n=0(D\nabla q)\cdot n = 0

is also enforced directly at every backward time step. Thus, on the vertical boundaries the discretization accounts for the coupling between D11qx1D_{11}q_{x_1} and D12qx2D_{12}q_{x_2}, while on the horizontal boundaries it accounts for the coupling between D12qx1D_{12}q_{x_1} and D22qx2D_{22}q_{x_2}. The corner values are again obtained by averaging adjacent boundary values.

A sequential quadratic Hamiltonian method

We employ the sequential quadratic Hamiltonian (SQH) method to numerically resolve the optimal feedback maps. A full exposition of the SQH method with worked examples can be found in [4].

The SQH method is an iterative procedure based on successive quadratic perturbations of the Hamiltonian (12). For a penalization parameter ε>0\varepsilon> 0 and a current control approximation u~\tilde{u}, we define the augmented Hamiltonian

Hε(ρ,q,u,u~)=H(ρ,q,u)+ε∣u−u~∣22.(22)H_{\varepsilon}(\rho,q,u,\tilde{u}) = H(\rho,q,u) + \varepsilon|u-\tilde{u}|_{2}^{2}. \tag*{(22)}

The quadratic term restricts the magnitude of the change in the control between consecutive SQH iterations. In particular, increasing ε\varepsilon forces the new control to remain closer to the previous iterate, whereas decreasing ε\varepsilon permits a larger update.

Starting from an initial control u0u^{0}, the corresponding forward FP solution ρ0\rho^{0} and adjoint solution q0q^{0} are computed. At iteration kk, the new feedback control is obtained pointwise in (x,t)(x,t) by solving

uk+1(x,t)∈arg⁡min⁡w∈RU Hε(ρk(x,t),qk(x,t),w,uk(x,t)).(23)u^{k+1}(x,t) \in\underset{w\in R_{U}}{\arg\min}\ H_{\varepsilon}\left(\rho^{k}(x,t),q^{k}(x,t),w,u^{k}(x,t)\right). \tag*{(23)}

This pointwise update is particularly convenient for the present problem because the three control components can be obtained explicitly and subsequently projected onto their admissible intervals.

For the mixed L1/L2L^{1}/L^{2} control cost used here, the pointwise minimization leads to explicit candidate values for each control. Writing

A=qx1x1−2qx1x2+qx2x2,A=q_{x_{1}x_{1}}-2q_{x_{1}x_{2}}+q_{x_{2}x_{2}},

the updates implemented numerically are

u1k+1=Π[u1,min⁡,u1,max⁡](−β1+2εu1k+βρSI(qx1−qx2)−2σβρS2I2Aβ2+2ε−2σβρS2I2A),u_{1}^{k+1}=\Pi_{[u_{1,\min},u_{1,\max}]}\left(\frac{-\beta_{1}+2\varepsilon u_{1}^{k}+\beta\rho SI(q_{x_{1}}-q_{x_{2}})-2\sigma\beta\rho S^{2}I^{2}A}{\beta_{2}+2\varepsilon-2\sigma\beta\rho S^{2}I^{2}A}\right),
u2k+1=Π[u2,min⁡,u2,max⁡](−β1+2εu2k−λρ(1−S−I)qx1−2σλρ(1−S−I)2qx1x1β2+2ε−2σλρ(1−S−I)2qx1x1),u_{2}^{k+1}=\Pi_{[u_{2,\min},u_{2,\max}]}\left(\frac{-\beta_{1}+2\varepsilon u_{2}^{k}-\lambda\rho(1-S-I)q_{x_{1}}-2\sigma\lambda\rho(1-S-I)^{2}q_{x_{1}x_{1}}}{\beta_{2}+2\varepsilon-2\sigma\lambda\rho(1-S-I)^{2}q_{x_{1}x_{1}}}\right),

and

u3k+1=Π[u3,min⁡,u3,max⁡](−β1+2εu3k−γρIqx2+2σγρI2qx2x2β2+2ε−2σγρI2qx2x2).u_{3}^{k+1}=\Pi_{[u_{3,\min},u_{3,\max}]}\left(\frac{-\beta_{1}+2\varepsilon u_{3}^{k}-\gamma\rho Iq_{x_{2}}+2\sigma\gamma\rho I^{2}q_{x_{2}x_{2}}}{\beta_{2}+2\varepsilon-2\sigma\gamma\rho I^{2}q_{x_{2}x_{2}}}\right).

where Π[a,b]\Pi_{[a,b]} denotes projection onto the interval [a,b][a,b]. After updating the controls, the drift and diffusion coefficients are recomputed and the forward FP equation is solved again.

The magnitude of the control update is measured by

τk=∥uk+1−uk∥L2(ΩT)3=∑i=13∫0T∫Ω∣uik+1−uik∣2 dx dt.(24)\tau_{k}=\left\|u^{k+1}-u^{k}\right\|_{L^{2}(\Omega_{T})^{3}}=\sum_{i=1}^{3}\int_{0}^{T}\int_{\Omega}\left|u_{i}^{k+1}-u_{i}^{k}\right|^{2}\,dx\,dt. \tag*{(24)}

The iteration terminates when τk<κ\tau_{k}<\kappa or when a prescribed maximum number of iterations has been reached.

To determine whether the candidate control is accepted, we employ a sufficient-decrease criterion. Specifically, the candidate is accepted when

J(ρk+1,uk+1)−J(ρk,uk)≤−ητk.(25)J(\rho^{k+1},u^{k+1})-J(\rho^{k},u^{k})\leq-\eta\tau_{k}. \tag*{(25)}

If this condition fails, the candidate control and state are rejected, the previous iterate is restored, and the quadratic penalization parameter is increased according to

ε←σε,σ>1.\varepsilon\leftarrow\sigma\varepsilon,\qquad\sigma>1.

If the sufficient-decrease condition is satisfied, the candidate control is accepted, the corresponding adjoint equation is solved, and the penalization parameter is decreased according to

ε←ζε,0<ζ<1.\varepsilon\leftarrow\zeta\varepsilon,\qquad0<\zeta<1.

Thus, the SQH procedure adaptively balances the size of the control update against the decrease obtained in the objective functional.

Analysis of the SQH method

We next establish some properties of the SQH iteration. The first result gives a sufficient-decrease property analogous to that obtained for time-dependent controls, with the control norm now taken over the full space-time domain ΩT\Omega_T.

Theorem 4.1. Let (ρk,uk)(\rho^k,u^k) and (ρk+1,uk+1)(\rho^{k+1},u^{k+1}) be generated by the SQH method applied to (7), with uk,uk+1∈Uadu^k,u^{k+1}\in U_{\mathrm{ad}}. Then, for the current value ε>0\varepsilon>0 of the SQH penalization parameter,

J(ρk+1,uk+1)−J(ρk,uk)≤−ε∥uk+1−uk∥(L2(ΩT))32.(26)J(\rho^{k+1},u^{k+1})-J(\rho^k,u^k)\leq-\varepsilon\lVert u^{k+1}-u^k\rVert_{(L^2(\Omega_T))^3}^2. \tag*{(26)}

In particular, if ε≥η\varepsilon\geq\eta, then

J(ρk+1,uk+1)−J(ρk,uk)≤−ητk,J(\rho^{k+1},u^{k+1})-J(\rho^k,u^k)\leq-\eta\tau_k,

where

τk=∥uk+1−uk∥(L2(ΩT))32.\tau_k=\lVert u^{k+1}-u^k\rVert_{(L^2(\Omega_T))^3}^2.

Proof. By definition of the SQH update, for almost every (x,t)∈ΩT(x,t)\in\Omega_T,

Hε(ρk,qk,uk+1,uk)≤Hε(ρk,qk,w,uk)for all w∈RU.H_\varepsilon(\rho^k,q^k,u^{k+1},u^k)\leq H_\varepsilon(\rho^k,q^k,w,u^k)\qquad\text{for all }w\in R_U.

In particular, choosing w=ukw=u^k gives

Hε(ρk,qk,uk+1,uk)≤Hε(ρk,qk,uk,uk)=H(ρk,qk,uk).H_\varepsilon(\rho^k,q^k,u^{k+1},u^k)\leq H_\varepsilon(\rho^k,q^k,u^k,u^k)=H(\rho^k,q^k,u^k).

Using the definition of the augmented Hamiltonian, we therefore obtain

H(ρk,qk,uk+1)+ε∣uk+1−uk∣2≤H(ρk,qk,uk)H(\rho^k,q^k,u^{k+1})+\varepsilon\lvert u^{k+1}-u^k\rvert^2\leq H(\rho^k,q^k,u^k)

for almost every (x,t)∈ΩT(x,t)\in\Omega_T. Integrating over ΩT\Omega_T and applying the Hamiltonian identity derived in § 3 gives

J(ρk+1,uk+1)−J(ρk,uk)=∫0T∫Ω[H(ρk,qk,uk+1)−H(ρk,qk,uk)] dx dt≤−ε∥uk+1−uk∥(L2(ΩT))32,\begin{aligned} J(\rho^{k+1},u^{k+1})-J(\rho^k,u^k) &=\int_0^T\int_{\Omega}\left[H(\rho^k,q^k,u^{k+1})-H(\rho^k,q^k,u^k)\right]\,\mathrm{d}x\,\mathrm{d}t\\ &\leq-\varepsilon\lVert u^{k+1}-u^k\rVert_{(L^2(\Omega_T))^3}^2, \end{aligned}

which proves (26).

As a consequence of Theorem 4.1, we obtain a basic convergence property of the accepted SQH iterates.

Theorem 4.2. Suppose that the accepted SQH iterations satisfy εk≥η>0\varepsilon_k\geq\eta>0. Then

(a) the sequence {J(ρk,uk)}\{J(\rho^k,u^k)\} is decreasing and converges to some

J∗≥inf⁡ρ,uJ(ρ,u);J^*\geq\inf_{\rho,u}J(\rho,u);

(b)

lim⁡k→∞∥uk+1−uk∥(L2(ΩT))3=0.\lim_{k\to\infty}\lVert u^{k+1}-u^k\rVert_{(L^2(\Omega_T))^3}=0.

Proof. Statement (a) follows immediately from (26), since the objective functional is bounded below. For statement (b), using εk≥η\varepsilon_k\geq\eta gives

∥uk+1−uk∥(L2(ΩT))32≤1η[J(ρk,uk)−J(ρk+1,uk+1)].\lVert u^{k+1}-u^k\rVert_{(L^2(\Omega_T))^3}^2\leq\frac{1}{\eta}\left[J(\rho^k,u^k)-J(\rho^{k+1},u^{k+1})\right].

Summing from k=0k=0 to KK yields the telescoping estimate

0≤∑k=0K∥uk+1−uk∥(L2(ΩT))32≤1η[J(ρ0,u0)−J(ρK+1,uK+1)].0\leq\sum_{k=0}^{K}\lVert u^{k+1}-u^k\rVert_{(L^2(\Omega_T))^3}^2\leq\frac{1}{\eta}\left[J(\rho^0,u^0)-J(\rho^{K+1},u^{K+1})\right].

Since the objective functional is bounded below, the right-hand side remains bounded as K→∞K \to\infty. Hence

∑k=0∞∥uk+1−uk∥(L2(ΩT))32<∞,\sum_{k=0}^{\infty} \lVert u^{k+1}-u^k\rVert_{(L^2(\Omega_T))^3}^2 < \infty,

which implies

∥uk+1−uk∥(L2(ΩT))32⟶0.\lVert u^{k+1}-u^k\rVert_{(L^2(\Omega_T))^3}^2 \longrightarrow0.

In particular, for any prescribed tolerance κ>0\kappa> 0, the stopping criterion

τk=∥uk+1−uk∥(L2(ΩT))32<κ\tau_k = \lVert u^{k+1}-u^k\rVert_{(L^2(\Omega_T))^3}^2 < \kappa

is eventually reached along the accepted SQH iterates. Moreover, the continuity properties of the control-to-state map established in § 3 imply that the corresponding changes in the FP states also tend to zero.

We finally give a stronger convergence statement for the mixed L2L^2–L1L^1 control cost used in the numerical experiments. Define the SQH update map

Tε:(L2(ΩT))3⟶(L2(ΩT))3\mathcal{T}_{\varepsilon} : (L^2(\Omega_T))^3 \longrightarrow(L^2(\Omega_T))^3

by

Tε(u)=arg min⁡w∈RU Hε(ρu,qu,w,u),\mathcal{T}_{\varepsilon}(u) = \underset{w \in R_U}{\operatorname{arg\,min}} \ H_{\varepsilon}(\rho_u,q_u,w,u),

where ρu=S(u)\rho_u = S(u) and quq_u denotes the corresponding adjoint state.

Theorem 4.3 (Convergence of SQH for the mixed L2L^2–L1L^1 cost). Assume that

ℓ(u)=β22∣u∣22+β1∣u∣1,β1,β2>0,\ell(u) = \frac{\beta_2}{2}|u|_2^2 + \beta_1|u|_1, \qquad\beta_1,\beta_2 > 0,

and suppose that, for a fixed ε>0\varepsilon> 0, the SQH update map Tε\mathcal{T}_{\varepsilon} is Lipschitz continuous and satisfies

∥Tε(u)−Tε(u~)∥(L2(ΩT))3≤θ∥u−u~∥(L2(ΩT))3(27)\lVert\mathcal{T}_{\varepsilon}(u)-\mathcal{T}_{\varepsilon}(\widetilde{u})\rVert_{(L^2(\Omega_T))^3} \leq\theta\lVert u-\widetilde{u}\rVert_{(L^2(\Omega_T))^3} \tag*{(27)}

for all admissible controls u,u~u,\widetilde{u}, with some 0≤θ<10 \leq\theta< 1. Then the SQH iteration

uk+1=Tε(uk)u^{k+1} = \mathcal{T}_{\varepsilon}(u^k)

converges strongly in (L2(ΩT))3(L^2(\Omega_T))^3 to a unique fixed point u∗u^*. Moreover, if

ρ∗=S(u∗)\rho^* = S(u^*)

and q∗q^* is the corresponding adjoint state, then

u∗(x,t)∈arg min⁡w∈RU H(ρ∗(x,t),q∗(x,t),w)u^*(x,t) \in\underset{w \in R_U}{\operatorname{arg\,min}} \ H(\rho^*(x,t),q^*(x,t),w)

for almost every (x,t)∈ΩT(x,t) \in\Omega_T.

Proof. Under assumption (28), Tε\mathcal{T}_{\varepsilon} is a contraction on (L2(ΩT))3(L^2(\Omega_T))^3. Hence, by the Banach fixed-point theorem, there exists a unique u∗u^* such that

Tε(u∗)=u∗,\mathcal{T}_{\varepsilon}(u^*) = u^*,

and

uk→u∗strongly in (L2(ΩT))3.u^k \to u^* \qquad\text{strongly in } (L^2(\Omega_T))^3.

At the fixed point,

u∗=arg min⁡w∈RU Hε(ρ∗,q∗,w,u∗).u^* = \underset{w \in R_U}{\operatorname{arg\,min}} \ H_{\varepsilon}(\rho^*,q^*,w,u^*).

Since the quadratic SQH penalty vanishes at w=u∗w=u^*,

Hε(ρ∗,q∗,u∗,u∗)=H(ρ∗,q∗,u∗).H_{\varepsilon}(\rho^*,q^*,u^*,u^*) = H(\rho^*,q^*,u^*).

Therefore the fixed-point condition gives

H(ρ∗,q∗,u∗)≤H(ρ∗,q∗,w)for all w∈RUH(\rho^*,q^*,u^*) \leq H(\rho^*,q^*,w) \qquad\text{for all } w \in R_U

for almost every (x,t)∈ΩT(x,t) \in\Omega_T, which is precisely the pointwise Hamiltonian minimum condition.

Numerical results

In this section, we present numerical results for the FP optimal control framework computed using the SQH algorithm. We set b=δ=0.01b = \delta= 0.01, so that the total population in the underlying SIRS model approaches unity. The state variables are the susceptible and infected fractions, x=(S,I)x = (S,I), and the FP equation is solved on the computational domain Ω=[0,1]×[0,1]\Omega= [0,1] \times[0,1]. We discretize each spatial direction using 50 grid points and take the final time to be T=2T = 2, with 10001 temporal grid points.

We take the transmission, recovery, and loss-of-immunity parameters to be β=3\beta= 3, γ=1\gamma= 1, and λ=0.5\lambda= 0.5, respectively. The three feedback controls u1(S,I,t)u_1(S,I,t), u2(S,I,t)u_2(S,I,t), and u3(S,I,t)u_3(S,I,t) act by reducing transmission, reducing loss of immunity, and increasing recovery, respectively. Their admissible ranges are

0≤u1≤1,0≤u2≤1,0≤u3≤0.5.0 \le u_1 \le1, \qquad0 \le u_2 \le1, \qquad0 \le u_3 \le0.5.

Thus, unlike time-dependent open-loop interventions, the controls obtained from the FP formulation are feedback policies whose values depend on both the current epidemic state (S,I)(S,I) and time.

The initial probability density is taken to be a two-dimensional Gaussian centered at (S0,I0)=(0.99,0.01)(S_0,I_0) = (0.99,0.01). Specifically, the numerical implementation uses

f0(S,I)=1πdexp⁡(−(S−0.99)2+(I−0.01)2d),d=0.1,f_0(S,I) = \frac{1}{\pi d}\exp\left(-\frac{(S-0.99)^2+(I-0.01)^2}{d}\right), \qquad d = 0.1,

restricted to the computational domain and normalized numerically to have unit mass. This represents uncertainty in the initial epidemic state around a population consisting predominantly of susceptible individuals with a small initially infected fraction.

Stochasticity is introduced through uncertainty in the transmission, loss-of-immunity, and recovery mechanisms. In the controlled stochastic system, the corresponding diffusion amplitudes are modulated by the same feedback controls that modify the drift, so that the transmission noise is scaled by (1−u1)(1-u_1), the loss-of-immunity noise by (1−u2)(1-u_2), and the recovery noise by (1+u3)(1+u_3). In the simulations presented here, the baseline noise amplitudes are taken to be σβ=σλ=σγ=0.5\sigma_\beta= \sigma_\lambda= \sigma_\gamma= 0.5.

The objective functional combines the state-dependent epidemic cost with a mixed L1/L2L^1/L^2 penalty on the three feedback controls. In particular, the control contribution has the form

β1∫0T∫Ω(∣u1∣+∣u2∣+∣u3∣) dx dt+β22∫0T∫Ω(u12+u22+u32) dx dt,\beta_1 \int_0^T \int_\Omega(|u_1|+|u_2|+|u_3|)\,dx\,dt+\frac{\beta_2}{2}\int_0^T\int_\Omega(u_1^2+u_2^2+u_3^2)\,dx\,dt,

where we take β1=0.02,β2=0.05\beta_1 = 0.02,\beta_2 = 0.05. The L1L^1 contribution penalizes the overall amount of intervention and can promote sparse or concentrated control actions, while the quadratic term regularizes the controls and discourages excessively large interventions.

Scenario 1. In the first scenario, we consider the running cost G(S,I,t)=IG(S,I,t) = I, K(S,I)=0K(S,I) = 0. Thus, infection is penalized continuously throughout the time interval, with larger values of the infected fraction incurring a proportionally larger state cost. No terminal-state cost is imposed. This provides a baseline test of the feedback-control framework in which the objective is to reduce the cumulative infection burden while balancing this reduction against the cost of the three interventions. The resulting controlled FP density and optimal feedback controls are shown in Figure 1. The controlled density evolves toward states with smaller values of II, while the feedback maps show how the three interventions are deployed over the (S,I)(S,I) state space and time. The control u1u_1 reduces transmission and hence suppresses the transition from susceptible to infected individuals, u2u_2 reduces the loss of immunity and therefore limits the return of recovered individuals to the susceptible class, and u3u_3 increases the recovery rate and promotes the transition from infected to recovered individuals. The distinct spatial and temporal structures of these controls illustrate how the optimizer combines prevention of new infections, retention of immunity, and enhanced recovery to reduce the cumulative infection burden.

Controlled FP solution and optimal feedback controls

Figure 1. Controlled FP solution and optimal feedback controls. The columns correspond, from left to right, to the initial time t=0t = 0, the midpoint t=T/2t = T/2, and the final time t=Tt = T. The first row shows the controlled probability density f(S,I,t)f(S,I,t), while the second, third, and fourth rows show the optimal feedback controls u1(S,I,t)u_1(S,I,t), u2(S,I,t)u_2(S,I,t), and u3(S,I,t)u_3(S,I,t), respectively.

The corresponding controlled and uncontrolled stochastic simulations are shown in Figure 2. In the uncontrolled system, the susceptible fraction decreases substantially while the infected fraction undergoes a pronounced increase, whereas the optimized feedback policy considerably limits both the loss of susceptible individuals and the growth of the infected population. The ensemble means exhibit the same qualitative behavior as the individual realizations. The mean controls evaluated along the controlled stochastic trajectories show how the state-dependent feedback policy is implemented dynamically: u1u_1 provides the principal

Monte Carlo simulations of the controlled and uncontrolled stochastic system

Figure 2. Monte Carlo simulations of the controlled and uncontrolled stochastic system. The top row shows the controlled stochastic trajectories for the susceptible state SS and infected state II, together with the mean feedback controls evaluated along the stochastic trajectories. The bottom row shows the corresponding uncontrolled stochastic trajectories and mean controls. The individual curves represent stochastic realizations, while the emphasized curve denotes the ensemble mean.

mechanism for suppressing new infections, while u2u_2 acts by retaining individuals in the recovered class and u3u_3 promotes removal from the infected class through enhanced recovery. Thus, the stochastic simulations confirm that the feedback controls reduce the infection burden relative to the uncontrolled dynamics while adapting the intervention to the evolving epidemic state.

Scenario 2. In this scenario, we consider running cost function G(S,I,t)=100 1{I≥0.08}(I−0.08)G(S,I,t)=100\,1_{\{I\geq0.08\}}(I-0.08), and zero terminal cost. This imposes no state penalty while the infected fraction remains below 0.080.08, but strongly penalizes excursions above this threshold. This is meant to represent the goal of “flattening the curve” so as to not overwhelm the healthcare system. The controlled FP density and optimal feedback controls are shown in Figure 3. In contrast to Scenario 1, the optimizer is not rewarded for reducing II throughout the entire state space; instead, control is valuable primarily when it reduces the probability of entering or remaining in the penalized region I>0.08I>0.08. This is reflected in the state-dependent structure of the feedback maps. The control u1u_1 reduces transmission and therefore limits the flow from the susceptible to the infected class, u2u_2 reduces loss of immunity and retains individuals in the recovered class, and u3u_3 increases recovery and promotes removal from the infected class. Together, these mechanisms reshape the probability density so as to limit its movement into states with infection levels above the prescribed threshold, while avoiding unnecessary intervention in regions where the infection-dependent running cost vanishes.

Controlled FP solution and optimal feedback controls

Figure 3. Controlled FP solution and optimal feedback controls. The columns correspond, from left to right, to the initial time t=0t = 0, the midpoint t=T/2t = T/2, and the final time t=Tt = T. The first row shows the controlled probability density f(S,I,t)f(S,I,t), while the second, third, and fourth rows show the optimal feedback controls u1(S,I,t)u_1(S,I,t), u2(S,I,t)u_2(S,I,t), and u3(S,I,t)u_3(S,I,t), respectively.

The corresponding controlled and uncontrolled stochastic simulations are shown in Figure 4. The uncontrolled trajectories exhibit a pronounced increase in the infected fraction, with trajectories entering the region I>0.08I>0.08 that is strongly penalized by the objective, together with a substantial decrease in the susceptible population. Under the optimized feedback policy, the growth of the infected population is markedly suppressed and the stochastic trajectories are largely kept away from the high-infection region, while the decline in the susceptible population is also reduced. The mean controls along the stochastic trajectories illustrate the mechanism by which this threshold regulation is achieved: u1u_1 suppresses the generation of new infections, u2u_2 reduces the return of recovered individuals to the susceptible class, and u3u_3 enhances the removal of infected individuals through recovery. The resulting behavior highlights the principal feature of this scenario: rather than minimizing infection uniformly, the feedback strategy allocates control effort specifically to reduce the probability and extent of excursions above the prescribed infection threshold.

Monte Carlo simulations of the controlled and uncontrolled stochastic system

Figure 4. Monte Carlo simulations of the controlled and uncontrolled stochastic system. The top row shows the controlled stochastic trajectories for the susceptible state SS and infected state II, together with the mean feedback controls evaluated along the stochastic trajectories. The bottom row shows the corresponding uncontrolled stochastic trajectories and mean controls. The individual curves represent stochastic realizations, while the emphasized curve denotes the ensemble mean.

Scenario 3. In this scenario, we consider G(S,I,t)=0G(S,I,t) = 0, K(S,I)=−10max⁡(S−Sˉ,0)K(S,I) = -10\max(S-\bar{S},0), so that there is no running state cost and the objective instead provides a terminal reward for states in which the susceptible fraction exceeds the prescribed level Sˉ\bar{S}. The resulting controlled FP solution and optimal feedback controls are shown in Figure 5. Since the objective acts only through the terminal susceptible population, the feedback controls are selected according to their ability to steer the probability density toward states satisfying S>SˉS > \bar{S} at the final time. The control u1u_1 contributes directly to this objective by reducing transmission and hence limiting the loss of susceptible individuals to the infected class. The control u2u_2 has a different effect: it reduces the return of recovered individuals to the susceptible class and therefore does not directly promote a larger value of SS, while u3u_3 increases recovery from the infected to the recovered class and can influence the subsequent evolution of both II and SS. The resulting feedback maps therefore reflect the different contributions of these three mechanisms to the terminal susceptible-state objective rather than a direct penalty on the infected population during the time interval.

Controlled FP solution and optimal feedback controls

Figure 5. Controlled FP solution and optimal feedback controls. The columns correspond, from left to right, to the initial time t=0t = 0, the midpoint t=T/2t = T/2, and the final time t=Tt = T. The first row shows the controlled probability density f(S,I,t)f(S,I,t), while the second, third, and fourth rows show the optimal feedback controls u1(S,I,t)u_1(S,I,t), u2(S,I,t)u_2(S,I,t), and u3(S,I,t)u_3(S,I,t), respectively.

The corresponding controlled and uncontrolled stochastic simulations are shown in Figure 6. In the uncontrolled system, transmission produces a substantial decline in the susceptible population, whereas the optimized feedback policy limits this loss and maintains the controlled trajectories at larger values of SS. This behavior is consistent with the terminal reward, which favors realizations that reach the final time with S>SˉS > \bar{S}. Although the objective contains no direct running penalty on II, the controlled infected trajectories are also affected because the interventions alter the transitions among the susceptible, infected, and recovered populations. In particular, u1u_1 suppresses the S→IS \to I transition, u2u_2 suppresses the R→SR \to S transition, and u3u_3 enhances the I→RI \to R transition. The mean controls along the stochastic trajectories consequently illustrate a policy designed primarily to preserve the susceptible population at the terminal time, rather than to minimize the infected fraction throughout the entire time horizon.

Monte Carlo simulations of the controlled and uncontrolled stochastic system

Figure 6. Monte Carlo simulations of the controlled and uncontrolled stochastic system. The top row shows the controlled stochastic trajectories for the susceptible state SS and infected state II, together with the mean feedback controls evaluated along the stochastic trajectories. The bottom row shows the corresponding uncontrolled stochastic trajectories and mean controls. The individual curves represent stochastic realizations, while the emphasized curve denotes the ensemble mean.

Scenario 4. In this scenario, we consider G(S,I,t)=1{I≥0.08}(I−0.08)G(S,I,t)=\mathbf{1}_{\{I\geq0.08\}}(I-0.08), K(S,I)=−max⁡(S−Sˉ,0)K(S,I)=-\max(S-\bar{S},0), combining a threshold-based running penalty on infection with a terminal reward for maintaining the susceptible fraction above the prescribed level Sˉ\bar{S}. The controlled FP density and optimal feedback controls are shown in Figure 7. In this case, the feedback policy must balance two state objectives: limiting the probability of occupying states with I>0.08I > 0.08 during the evolution and steering the terminal density toward states with S>SˉS > \bar{S}. The control u1u_1 is particularly relevant to both objectives because reducing transmission suppresses the S→IS \to I transition, simultaneously limiting the growth of infection and preserving susceptible individuals. The control u2u_2 reduces the loss of immunity and therefore suppresses the R→SR \to S transition, while u3u_3 increases recovery and enhances the I→RI \to R transition. The different state- and time-dependent structures of the three feedback maps reflect how the optimizer combines these mechanisms to balance suppression of

Controlled FP solution and optimal feedback controls

Figure 7. Controlled FP solution and optimal feedback controls. The columns correspond, from left to right, to the initial time t=0t = 0, the midpoint t=T/2t = T/2, and the final time t=Tt = T. The first row shows the controlled probability density f(S,I,t)f(S,I,t), while the second, third, and fourth rows show the optimal feedback controls u1(S,I,t)u_1(S,I,t), u2(S,I,t)u_2(S,I,t), and u3(S,I,t)u_3(S,I,t), respectively.

infection above the threshold with the terminal susceptible-population objective. The corresponding controlled and uncontrolled stochastic simulations are shown in Figure 8. The uncontrolled trajectories exhibit a substantial decrease in the susceptible fraction together with an increase in infection that carries the population into the penalized region I>0.08I > 0.08. Under the optimized feedback policy, the growth of the infected population is reduced while a larger susceptible fraction is maintained, reflecting the simultaneous influence of the running and terminal objectives. The mean feedback controls along the stochastic trajectories show how the three intervention mechanisms contribute to this behavior: u1u_1 reduces the generation of new infections and the associated loss of susceptible individuals, u2u_2 retains recovered individuals in the immune class by reducing the R→SR \to S transition, and u3u_3 accelerates recovery through the I→RI \to R transition. Thus, Scenario 4 illustrates how the feedback framework balances short-term regulation of excursions above the infection threshold with the terminal objective of maintaining a sufficiently large susceptible population.

Monte Carlo simulations of the controlled and uncontrolled stochastic system

Figure 8. Monte Carlo simulations of the controlled and uncontrolled stochastic system. The top row shows the controlled stochastic trajectories for the susceptible state SS and infected state II, together with the mean feedback controls evaluated along the stochastic trajectories. The bottom row shows the corresponding uncontrolled stochastic trajectories and mean controls. The individual curves represent stochastic realizations, while the emphasized curve denotes the ensemble mean.

Conclusion

In this work, we developed a FP optimal control framework for a stochastic SIRS epidemic model with three intervention mechanisms targeting disease transmission, loss of immunity, and recovery. By incorporating space- and time-dependent feedback controls into both the drift and diffusion coefficients, the proposed approach enables interventions to influence the probability distribution of epidemic outcomes rather than individual trajectories alone. We investigated the existence of optimal controls and derived first-order necessary optimality conditions involving a forward Fokker–Planck equation, a backward adjoint equation, and a Hamiltonian minimization condition. For numerical computation, we combined a Chang–Cooper discretization with a finite-difference treatment of cross-diffusion and a SQH algorithm, together with an analysis of its convergence properties. Numerical experiments involving four epidemiological objectives demonstrated how the resulting feedback policies adapt to different goals, including reducing cumulative infection, limiting excursions above an infection threshold, and maintaining a desired susceptible population at the terminal time. Monte Carlo simulations further illustrated the effectiveness of the optimized controls relative to uncontrolled stochastic dynamics. Future work will focus on extending the framework to more complex epidemic models, strengthening the analysis and numerical treatment of degenerate diffusion, and incorporating epidemiological data for model calibration and validation.

Acknowledgements

S. Roy was supported by the US National Science Foundation grant nos. 2212938, 2309491, 2230790.

References

  1. [1]Linda JS Allen. A primer on stochastic epidemic models: Formulation, numerical simulation, and analysis. Infectious Disease Modelling, 2(2):128–142, 2017.DOI
  2. [2]Mario Annunziato and Alfio Borzì. A fokker–planck approach to the reconstruction of a cell membrane potential. SIAM Journal on Scientific Computing, 43(3):B623–B649, 2021.DOI
  3. [3]Marcelo Bongarti, Christian Parkinson, and Weinan Wang. Optimal control of a reaction-diffusion epidemic model with non-compliance. European Journal of Applied Mathematics, 37(2):313–338, 2026.
  4. [4]Alfio Borzì. The Sequential Quadratic Hamiltonian Method: Solving Optimal Control Problems. Chapman and Hall/CRC, 2023.
  5. [5]Tim Breitenbach and Alfio Borzì. The pontryagin maximum principle for solving fokker–planck optimal control problems: T. breitenbach, a. borzi. Computational Optimization and Applications, 76(2):499–533, 2020.DOI
  6. [6]J. S. Chang and G. Cooper. A practical difference scheme for fokker–planck equations. Journal of Computational Physics, 6(1):1–16, 1970.DOI
  7. [7]Jihad C. Dagher and Christian Parkinson. Optimal lockdowns under constraints. Economic Inquiry, 63(2):523–544, 2025.DOI
  8. [8]Mamadou L Diagne, Folashade B Agusto, Herieth Rwezaura, Jean M Tchuenche, and Suzanne Lenhart. Optimal control of an epidemic model with treatment in the presence of media coverage. Scientific African, 24:e02138, 2024.
  9. [9]Stefania Maria Buccellato Elisabetta Tornatore. On a stochastic sir model. Applicaciones Mathematicae, 34(4):389–400, 2007.
  10. [10]Lawrence C Evans. Partial differential equations, volume 19. American mathematical society, 2022.
  11. [11]Arthur Fleig and Roberto Guglielmi. Optimal control of the fokker–planck equation with space-dependent controls. Journal of Optimization Theory and Applications, 174(2):408–427, 2017.DOI
  12. [12]Wendell H. Fleming and H. Mete Soner. Controlled Markov Processes and Viscosity Solutions. Springer, 2 edition, 2006.DOI
  13. [13]Alison Gray, David Greenhalgh, Liangjian Hu, Xuerong Mao, and Jiafeng Pan. A stochastic differential equation sis epidemic model. SIAM Journal on Applied Mathematics, 71(3):876–902, 2011.DOI
  14. [14]Elsa Hansen and Troy Day. Optimal control of epidemics with limited resources. Journal of Mathematical Biology, 62(3):423–451, 2011.DOI
  15. [15]Bei Hu. Blow-up theories for semilinear parabolic equations, volume 2018. Springer Science & Business Media, 2011.
  16. [16]W. O. Kermack and A. G. McKendrick. A contribution to the mathematical theory of epidemics. Proceedings of the Royal Society of London. Series A, 115(772):700–721, 1927.DOI
  17. [17]Olga Aleksandrovna Ladyzhenskaja, Vsevolod Alekseevich Solonnikov, and Nina N Ural’tseva. Linear and quasi-linear equations of parabolic type, volume 23. American Mathematical Soc., 1968.
  18. [18]Alberto Lanconelli and Matteo Mori. Itô vs stratonovich stochastic sir models. Applied Mathematics Letters, 134:108368, 2022.DOI
  19. [19]Gary M Lieberman. Second order parabolic differential equations. World scientific, 1996.
  20. [20]Xing Lü, Hong-wen Hui, Fei-fei Liu, and Ya-li Bai. Stability and optimal control strategies for a novel epidemic model of covid-19. Nonlinear Dynamics, 106(2):1491–1507, 2021.DOI
  21. [21]Chloe Ngo, Christian Parkinson, and Weinan Wang. Optimal control of an sir model with noncompliance as a social contagion. Mathematical Biosciences, page 109822, 2026.DOI
  22. [22]Christian Parkinson and Souvik Roy. A fokker-planck framework for control of epidemics. Journal of Mathematical Biology, 93(4):47, 2026.arxiv.org/abs/2601.20181
  23. [23]Christian Parkinson and Weinan Wang. A compartmental model for epidemiology with human behavior and stochastic effects. Mathematical Biosciences, page 109588, 2025.arxiv.org/abs/2507.01046
  24. [24]Souvik Roy, A. Borzì, and Abderrahmane Habbal. Pedestrian motion modelled by fokker–planck nash games. Royal Society Open Science, 4(9):170648, 2017.DOI
  25. [25]Ralph Edwin Showalter. Monotone operators in Banach space and nonlinear partial differential equations, volume 49. American Mathematical Soc., 2013.
  26. [26]Terence Tao. An introduction to measure theory, volume 126. American Mathematical Soc., 2011.
  27. [27]Elisabetta Tornatore, Stefania Maria Buccellato, and Pasquale Vetro. Stability of a stochastic sir system. Physica A: Statistical Mechanics and its Applications, 354:111–126, 2005.DOI

Paper details

vlnc:W_kwecz669
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 2

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Mathematics

Not recorded for this paper · View statement →

Looking for related papers…
Contents