Skip to main content
. 2022 Feb 25;198:31–46. doi: 10.1016/j.matcom.2022.02.025
Algorithm 1 Determining the numerical solution of SEIUR model
at all time t{1,2,,n}

Input:
The initial value of variables: S[0], E[0], I[0], U[0] and R[0];
The optimal parameters: β, γ, f and σ;
Total population of the United States: N;
The number of iterations or days: n;
Output
S[t], E[t], I[t], U[t] and R[t] at all time t{1,2,,n}

Procedure
Fori in 1 to n
 S[i]=S[i1]βS[i1](I[i1])N
 E[i]=E[i1]+βS[i1](I[i1])NσE[i1]
 I[i]=I[i1]+σfE[i1]γI[i1]
 U[i]=U[i1]+σ(1f)E[i1]γU[i1]
 R[i]=R[i1]+γ(I[i1]+U[i1])
 ReturnS[i], E[i], I[i], U[i] and R[i]