This chapter is a continuous work of Chap. 6. In this chapter, a three-level and dynamic linear programming model for allocating medical resources based on epidemic diffusion model is proposed. The epidemic diffusion model is used to construct the forecasting mechanism for dynamic demand of medical resources. Heuristic algorithm coupled with MATLAB mathematical programming solver is adopted to solve the model. A numerical example is presented for testing the model’s practical applicability. The main contribution of the present study is that a discrete time-space network model to study the medical resources allocation problem when an epidemic outbreak is formulated. It takes consideration of the time evolution and dynamic nature of the demand, which is different from most existing researches on medical resources allocation. In our model, the medicine logistics operation problem has been decomposed into several mutually correlated sub-problems, and then be solved systematically in the same decision scheme. Thus, the result will be much more suitable for real operations. Moreover, in our model, the rationale that the medical resources allocated in early periods will take effect in subduing the spread of the epidemic spread and thus impact the demand in later periods has been for the first time incorporated. A win-win emergency rescue effect is achieved by the integrated and dynamic optimization model. The total rescue cost is controlled effectively, and meanwhile, inventory level in each urban health departments is restored and raised gradually.

7.1 Introduction

As mentioned in Rachaniotis et al. [1], a serious epidemic is a problem that tests the ability of a nation to effectively protect its population, to reduce human loss and to rapidly recover. Sometime such a problem may acquire worldwide dimensions. For example, during the period from November 2002 to August 2003, 8422 people in 29 countries were infected with SARS, 916 of them were dead at last for the effective medical resources appeared late. Other diseases, such as HIV, H1N1 also cause significant numbers of direct infectious disease deaths.

Actually, many recent research efforts have been devoted to understanding the prevention and control of epidemics, such as Wein et al. [2], Craft et al. [3] and Kaplan et al. [4]. The major purpose of these articles is to compare the performance of the following two strategies, the traced vaccination (TV) strategy and the mass vaccination (MV) strategy, but not address how to optimize the allocation of medical resources.

Another stream of research is on the development of epidemic diffusion models by applying complex network theory to traditional compartment models. For example, Saramäki and Kaski [5] proposed a susceptible-infected-recovered (SIR) model for the spreading of randomly contagious diseases, such as influenza, based on a dynamic small-world network. Xu et al. [6] presented a modified susceptible-infected-susceptible (SIS) model based on complex networks, small-world and scale-free, to study the spread of an epidemic by considering the effect of time delay. Based on two-dimensional small-world networks, a susceptible-infected (SI) model with epidemic alert is proposed in [7]. This model indicates that to broadcast an epidemic alert timely is helpful and necessary in the control of epidemic spreading. Jung et al. [8] extended the previous studies on the prevention of the pandemic influenza to evaluate the time-dependent optimal prevention policies, and they found that the quarantine policy is very important, and more effective than the elimination policy. After determining the epidemiologic features of an Escherichia coli O157:H7 outbreak in Xuzhou, Jiangsu Province, China, Zhu et al. [9] provided a scientific approach for establishing prevention and control strategies in local areas. These above mentioned works represent some of the research on various differential equation models for epidemic diffusion and control.

However, after an epidemic outbreak, public officials are faced with many critical issues, one of the most important of which being how to ensure the availability and supply of medical resources so that the loss of life may be minimized and the rescue operation efficiency maximized. Sheu [10] presented a hybrid fuzzy clustering-optimization approach to the operation of medical resources allocation in response to the time-varying demand during the crucial rescue period. Yan and Shih [11] considered how to minimize the length of time required for emergency roadway repair and relief distribution, as well as the related operating constraints. The weighting method is adopted, and a heuristic algorithm is developed to solve a real emergency relief problem, the Chi-Chi earthquake in Taiwan. To optimize the process of materials distribution in an epidemic diffusion system and to improve the distribution timeliness, Liu and Zhao [12] modeled the emergency materials distribution problem as a multiple traveling salesman problem with time window. Wang et al. [13] constructed a multi-objective stochastic programming model with time-varying demand for the emergency logistics network based on the epidemic diffusion rule. A genetic algorithm coupled with Monte Carlo simulation is adopted to solve the optimization model. Qiang and Nagurney [14] proposed a humanitarian logistic model for supply/distribution of critical needs in a disruption caused by a nature disaster. They consider a general network structure and disruptions that may have an impact to both network link capacities and product demand. The problem is studied in a bi-criteria system optimization framework for network performance.

In this study, a three-level and dynamic linear programming model for allocating medical resources based on epidemic diffusion model is proposed. The epidemic diffusion model introduced here is to construct the forecasting mechanism for the dynamic demand of medical resources. Heuristic algorithm coupled with MATLAB mathematical programming solver is adopted to solve the model.

7.2 Problem Description

7.2.1 The Research Ideas and Way to Achieve

As work in Liu and Zhao [15], this study focus on the recovered stage of epidemic rescue. In such a stage, epidemic diffusion tends to be stable. Thus, optimization goal in such stage is to construct an integrated, dynamic and multi-level emergency logistics network, which includes the national strategic storages (NSS), the urban health departments (UHD), the area disease prevention and control centers (ADPC), and the emergency designated hospitals (EDH). Herein, we introduce a time-space network to depict the network structure relationship of these elements, which is shown as Fig. 7.1. In such figure, the vertical axis represents the time duration, and the horizontal axis represents different emergency departments.

Fig. 7.1
figure 1

Time-space network of medical resources allocation

The entire recovered stage of epidemic rescue process is decomposed into several mutually correlated sub-problems (i.e. n decision-making cycles). To each decision-making cycle, there exist two sub-problems. In the upper level, we consider the problem how to replenish medical resources to the UHDs. Besides, we adjust the replenishment arcs among these NSSs by a heuristic algorithm, and construct a mixed-collaborative delivery system. Thus, the total rescue cost of the upper level sub-problem would be minimized. In the lower level, we present the problem how to distribute medical resources to the ADPCs and then allocate medical resources to EDHs. We propose a forecasting model for the time-varying demand in EDHs based on a SEIR epidemic diffusion model. Such two phases are executed iteratively. Besides, at the end of each rescue cycle, effect of medical resources allocated is analyzed and the number of infected people is updated. The research idea of such rescue stage is shown in Fig. 7.2.

Fig. 7.2
figure 2

Operational procedure of the dynamic medicine logistics network

7.2.2 Time-Varying Forecasting Method for the Dynamic Demand

In this study, we divide people into four classes: the susceptible people (S), the exposed people (E), the infected people (I), and the recovered people (R). The following SEIR epidemic diffusion model in Liu and Zhao [16] is adopted to depict the epidemic diffusion rule.

$$ \left\{ \begin{aligned} & \frac{dS}{dt} = - \beta \langle k \rangle S(t)I(t) \\ & \frac{dE}{dt} = \beta \langle k \rangle S(t)I(t) - \beta \langle k \rangle S(t - \tau )I(t - \tau ) \\ & \frac{dI}{dt} = \beta \langle k \rangle S(t - \tau )I(t - \tau ) - (d + \delta )I(t) \\ & \frac{dR}{dt} = \delta I(t) \\ \end{aligned} \right. $$
(7.1)

Herein, \( \langle k \rangle \) is the average degree distribution of the small-world network; \( \beta \) is the propagation coefficient; \( \delta \) is the recovered rate of the infected people; \( d \) is the death rate caused by the disease; \( \tau \) stands for the incubation period. Furthermore, \( \langle k \rangle ,\beta ,\delta ,d,\tau > 0 \). Traditionally, a simple linear function is used to formulated the demand for medical resources as follows:

$$ d_{t}^{*} = aI(t),\quad t \in 0,1,2, \ldots ,n $$
(7.2)

Herein, \( I(t) \) is the number of infected people in the epidemic area at time t. \( a \) is the proportionality coefficient. Note that emergency demand for medical resources is closely related to the number of infected people, and medical resources allocated in the early rescue cycle will affect the demand later, here we propose a time-varying forecasting method for the demand in each EDH as follows:

$$ \eta_{t} = (d_{t + 1}^{*} - d_{t}^{*} )/d_{t}^{*} ,\quad t \in 0,1,2, \ldots ,n - 1 $$
(7.3)
$$ {\text{When}}\;t = 0,\quad d_{0} = aI(0) $$
(7.4)
$$ {\text{When}}\;t = 1,\quad d_{1} = \left( {1 + \eta_{0} } \right)\left( {1 - \frac{\theta }{\Gamma }} \right)d_{0} $$
(7.5)
$$ {\text{When}}\;t = 2,\quad d_{2} = \left( {1 + \eta_{1} } \right)\left( {1 - \frac{\theta }{\Gamma }} \right)d_{1} = (1 + \eta_{0} )(1 + \eta_{1} )\left( {1 - \frac{\theta }{\Gamma }} \right)^{2} d_{0} $$
(7.6)
$$ {\text{When}}\;t = n,\quad d_{n} = \prod\limits_{i = 0}^{n - 1} {(1 + \eta_{i} )} \left( {1 - \frac{\theta }{\Gamma }} \right)^{n} d_{0} $$
(7.7)

Herein, \( \prod\nolimits_{i = 0}^{n - 1} {(1 + \eta_{i} )} = (1 + \eta_{0} )(1 + \eta_{1} ) \cdots (1 + \eta_{n - 1} ) \). \( \theta \) is the effective rescue rate; \( \Gamma \) is the treatment cycle for each infected person. To facilitate the calculation process in the following sections, we assume that \( \Gamma \) to be an integral multiple of rescue cycle. Equation (7.3) is used to calculate the linear scale factor of the change in demand. Equation (7.4) is the initial demand in the epidemic area, and \( I(0) \) represents the initial number of infected people in the epidemic area. Equations (7.5)–(7.7) represent demand for medical resources in rescue cycle \( 1,2, \ldots ,n \), respectively.

7.2.3 Dynamic Demand and Inventory for the UHD

To facilitate the calculation process in the following sections, we assume that initial inventory of medical resources in each UHD is zero. Besides, we suppose that capacity of each UHD is \( V_{cap} \). \( d_{t}^{v} \) represents demand for medical resources in UHD in rescue cycle t. \( P_{t} \) represents the total output of medical resources in UHD in rescue cycle t. Thus, the forecasting model for dynamic demand in UHD can be formulated as follows:

$$ d_{t}^{v} = \left\{ {\begin{array}{*{20}l} {V_{cap} ,} \hfill & {t = 0} \hfill \\ {P_{t - 1} ,} \hfill & {t = 1,2, \ldots ,n} \hfill \\ \end{array} } \right. $$
(7.8)

Correspondingly, suppose that \( V_{t} \) is inventory of medical resources in UHD in rescue cycle t, we can get the following equation:

$$ V_{t} = \left\{ {\begin{array}{*{20}l} {0,} \hfill & {t = 0} \hfill \\ {V_{cap} - P_{t - 1} ,} \hfill & {t = 1,2, \ldots ,n} \hfill \\ \end{array} } \right. $$
(7.9)

7.3 Optimization Model and Solution Procedure

7.3.1 Optimization Model

The following assumptions are needed to facilitate the model formulation in the following sections:

  1. (1)

    Once an epidemic outbreak, each EDH can be isolated from other areas to avoid the spread of the disease.

  2. (2)

    It is reasonable to assume that the government can ensure the adequate supply of the needed medicines either from domestic pharmaceutical companies or imported. Hence, there are enough medical resources during the entire operation process.

  3. (3)

    Holding cost of medical resources is not considered in this study.

  4. (4)

    Medical resources in this section are an assembled product, which may includes water, vaccine, antibiotic, etc.

Notations used in the following optimization model are specified as follows.

\( nc_{ij} \):

Unit replenishment cost of medical resources from NSS \( i \) to UHD \( j \).

\( ce_{jk} \):

Unit distribution cost of medical resources from UHD \( j \) to ADPC \( k \).

\( eh_{kl} \):

Unit distribution cost of medical resources from ADPC \( k \) to EDH \( l \).

\( ns_{i} \):

Amount of medical resources supplied by NSS \( i \) in each rescue cycle.

\( V_{cap} \):

Capacity of UHD.

\( d_{lt} \):

Demand for medical resources in EDH \( l \) in rescue cycle \( t \).

\( d_{jt}^{v} \):

Demand for medical resources in UHD \( j \) in rescue cycle \( t \).

\( P_{jt} \):

Total output of medical resources in UHD \( j \) in rescue cycle \( t \).

\( V_{jt} \):

Inventory of medical resources in UHD \( j \) in rescue cycle \( t \).

\( x_{ijt} \):

Amount of medical resources that will be transported from NSS \( i \) to UHD \( j \) in rescue cycle \( t \).

\( y_{jkt} \):

Amount of medical resources that will be transported from UHD \( j \) to ADPC \( k \) in rescue cycle \( t \).

\( z_{klt} \):

Amount of medical resources that will be transported from ADPC \( k \) to EDH \( l \) in rescue cycle \( t \).

\( TC \):

Total rescue cost of the three-level medical logistics network.

\( N \):

Set of NSSs.

\( C \):

Set of UHDs.

\( E \):

Set of ADPCs.

\( H \):

Set of EDHs.

\( T \):

Set of decision-making cycles.

According to the above explanations and assumptions, the three-level and dynamic linear programming model for allocating medical resources based on epidemic diffusion model can be formulated as follows:

$$ Min\begin{array}{*{20}c} {} \\ \end{array} TC = \sum\limits_{t \in T} {\sum\limits_{i \in N} {\sum\limits_{j \in C} {x_{ijt} nc_{ij} + \sum\limits_{t \in T} {\sum\limits_{j \in C} {\sum\limits_{k \in E} {y_{jkt} ce_{jk} } } } } } } + \sum\limits_{t \in T} {\sum\limits_{k \in E} {\sum\limits_{l \in H} {z_{klt} eh_{kl} } } } $$
(7.10)
$$ {\text{s}} . {\text{t}} .\quad \sum\limits_{j \in C} {x_{ijt} } \le ns_{i} ,\quad \forall i \in N,\;t \in T $$
(7.11)
$$ \sum\limits_{i \in N} {x_{ijt} } = d_{jt}^{v} ,\quad \forall j \in C,\;t \in T $$
(7.12)
$$ d_{jt}^{v} = V_{cap} ,\quad \forall j \in C,\;t = 0 $$
(7.13)
$$ d_{jt}^{v} = P_{jt - 1} ,\quad \forall j \in C,\;t = 1,2, \cdots ,T $$
(7.14)
$$ P_{jt} = \sum\limits_{k \in E} {y_{jkt} } ,\quad \forall j \in C,\;t \in T $$
(7.15)
$$ \sum\limits_{k \in E} {y_{jkt} } \le V_{cap} ,\quad \forall j \in C,\;t \in T $$
(7.16)
$$ \sum\limits_{j \in C} {\sum\limits_{k \in E} {y_{jkt} } } = \sum\limits_{k \in E} {\sum\limits_{l \in H} {z_{klt} } } ,\quad \forall t \in T $$
(7.17)
$$ \sum\limits_{k \in E} {z_{klt} } = d_{lt} ,\quad \forall l \in H,\;t \in T $$
(7.18)
$$ d_{lt} = aI_{l} (t),\quad \forall l \in H,\;t = 0 $$
(7.19)
$$ d_{lt} = \prod\limits_{i = 0}^{t - 1} {(1 + \eta_{li} )} \left( {1 - \frac{\theta }{\Gamma }} \right)^{t} d_{l0} ,\quad \forall l \in H,\;t = 1,2, \ldots ,T $$
(7.20)
$$ \prod\limits_{i = 0}^{t - 1} {(1 + \eta_{li} )} = (1 + \eta_{l0} )(1 + \eta_{l1} ) \cdots (1 + \eta_{lt - 1} ),\quad \forall l \in H,\;t = 1,2, \ldots ,T $$
(7.21)
$$ x_{ijt} \ge 0,\quad \forall i \in N,\;j \in C,\;t \in T $$
(7.22)
$$ y_{jkt} \ge 0,\quad \forall j \in C,\;k \in E,\;t \in T $$
(7.23)
$$ z_{klt} \ge 0,\quad \forall k \in E,\;l \in H,\;t \in T $$
(7.24)

Herein, the objective function in Eq. (7.10) is to minimize the total rescue cost of the three-level medical distribution network. Equations (7.11) and (7.12) are constraints for flow conservation in the upper level sub-problem. Equations (7.13)–(7.15) are the dynamic demand models in the upper level sub-problem. Equations (7.16)–(7.18) are constraints for flow conservation in the lower level sub-problem. Equations (7.19)–(7.21) are the time-varying demand models in the lower level sub-problem. At last, Eqs. (7.21)–(7.23) ensure all the arc flows in the time-space network within their bounds.

7.3.2 Solution Procedure

As Fig. 7.2 shows, the solution procedure for the proposed optimization model is presented as follows:

  • Step 1. Decompose the entire recovered stage of epidemic rescue process into n decision-making cycles.

  • Step 2. Let t = 0, and initialize parameters in the SEIR epidemic diffusion model.

  • Step 3. Analyze the epidemic diffusion rule, and calculate the initial demand for medical resources in each EDH according to Eqs. (7.3)–(7.7).

  • Step 4. Solve the programming model in rescue cycle t = 0 and obtain the initial solution.

  • Step 5. Improve the initial solution by heuristic algorithm. Detail about the heuristic algorithm, please go to Liu et al. [17].

  • Step 6. Get the final solution for medical resources allocation in this rescue cycle.

  • Step 7. Let t = t + 1, if the termination condition for the rescue cycle has not been satisfied, update the demand in each EDH, and update the inventory level of medical resources in each UDH, go back to Step 3. Else, go to the next step.

  • Step 8. End the program and output the final result.

7.4 Numerical Example

To test how well the proposed model may be applied in an actual event, we present a numerical example to illustrate its efficiency. Assume there is a smallpox outbreak in a city, which has 3 NSSs, 4 UHDs, 6 ADPCs and 8 EDHs. The values of parameters in SEIR epidemic diffusion model are given in Table 7.1.

Table 7.1 Values of parameters in SEIR epidemic diffusion model

Figure 7.3 depicts a numerical simulation of the epidemic model at EDH 1 in this effected region. The four curves respectively represent the number of four groups of people (S, E, I, R) over time. As mentioned in Liu and Zhao [16], the process of epidemic diffusion is divided into three stages and our research focus on the recovered one. According to the above figure, we assume that such stage range from the 45th day (decision-making cycle t = 0) to the 55th day (decision-making cycle t = 10). For simplicity, the decision-making cycle is assumed to be one day. A total of 138,240 variations are generated in the experiment. During an actual epidemic activity, decision makers can adjust these parameters according to the actual situation.

Fig. 7.3
figure 3

Solution of the SEIRS epidemic diffusion model (EDH 1)

Let \( a = 1 \), \( \theta = 90\% \) and \( \Gamma = 15 \), the MATLAB mathematic solver coupled with Eqs. (7.2)–(7.7) is adopted to forecast the time-varying demand for each EDH. Taking the EDH 1 as an example, the demand for medical resources in each rescue cycle is shown in Fig. 7.4. One can observe in Fig. 7.4 that time-varying demand is way below traditional demand, suggesting that the allocation of medical resources in the early periods will significantly reduce the demand in the following periods. The second observation is that both curves exhibit similar trends, namely, the demand will decrease after the epidemic is brought under control.

Fig. 7.4
figure 4

Demand in EDH 1 by the two different methods

After getting the demand for medical resources in each rescue cycle, in what follows, we are going to discuss how to allocate these medical resources to the epidemic areas, and at the same time, how to replenish medical resources to each UHD, with the objective of minimizing the total rescue cost. Table 7.2 shows the unit cost from the supply points to the demand points (Here, we suppose that NSS 1 has been preset as the HUB location).

Table 7.2 Unit cost of medical resources between two different departments

Assume that three NSS can supply 400, 420 and 450 unit of medical resources in each rescue cycle, and suppose that capacity of each UHD is 320. Let us take the allocation result at cycle t = 0 as example, we can solve the programming model according to the solution procedure. The initial solution is reported in Table 7.3.

Table 7.3 Solution of the optimization model at cycle t = 0

Then, we can improve the initial solution by heuristic algorithm in Liu et al. [17]. As Table 7.3 shows, when replenishment arcs \( (N_{2} ,C_{1} ) \in D^{d} \) and \( (N_{3} ,C_{1} ) \in D^{d} \) are transferred from the direct shipment delivery system to the hub-and-spoke delivery system, such as \( N_{2} \to N_{1} \to C_{1} \) and \( N_{3} \to N_{1} \to C_{1} \), the total rescue cost will be reduced 10.75% when compared with the cost before adjustment (4090/3650). Similarly, we can complete the whole operations according to the solution procedure. Replenishment arcs that need to be transferred in each cycle are shown in Table 7.4. Total rescue cost at each cycle is presented in Fig. 7.5.

Table 7.4 Transferred arcs in each rescue cycle
Fig. 7.5
figure 5

Total rescue cost at each rescue cycle

Figure 7.5 shows the change in total rescue cost over time. From this figure, we can get the following two conclusions: (1) Coupled with Fig. 7.4, we can see that demand for medical resource is decreasing, which implies that epidemic diffusion is on the recovered stage. (2) Coupled with Table 7.4, we can see that the total rescue cost can be reduced in a certain degree by using the proposed heuristic algorithm. It is worth mentioning that there is no adjustment after rescue cycle t = 4, for that NSSs and UHDs which are adjacent to the epidemic areas will have stored enough resources at that time.

Figure 7.6 shows the inventory level in different UHDs. It shows that inventory level in each UHD has been improved and raised as time goes by. Therefore, with the application of the three-level and dynamic optimization model, the total rescue cost can be controlled effectively, and meanwhile, inventory level in each UHD can be restored and raised gradually. Thus, such optimization model achieves a win-win rescue effect.

Fig. 7.6
figure 6

Inventory level in different UHD over time

7.5 Conclusions

In this chapter, we develop a discrete time-space network model to study the medical resources allocation problem in the recovered stage when an epidemic outbreak. In each decision-making cycle, the allocation of medical resources across the region from NSSs through UHDs and ADPCs to EDHs is determined by a linear programming model with the dynamic demand that is forecasted by an epidemic diffusion rule. The novelty of our model against the existing works in literature is characterized by the following three aspects:

  1. (1)

    While most research on medical resources allocation studies a static problem taking no consideration of the time evolution and dynamic nature of the demand, the model proposed in this chapter addresses a time-series demand that is forecasted in match of the course of an epidemic diffusion. The model couples a multi-stage linear programming for optimal allocation of medical resources with a proactive forecasting mechanism cultivated from the epidemic diffusion dynamics. The rationale that the medical resources allocated in early periods will take effect in subduing the spread of the epidemic spread and thus impact the demand in later periods has been for the first time incorporated into our model.

  2. (2)

    A win-win emergency rescue effect is achieved by the integrated and dynamic optimization model. The total rescue cost is controlled effectively, and meanwhile, inventory level in each UHD is restored and raised gradually.

  3. (3)

    In this chapter, the medicine logistics operation problem has been decomposed into several mutually correlated sub-problems, and then be solved systematically in the same decision scheme. Thus, the result will be much more suitable for real operations.

As the limitation of the model, it is developed for the medical resources allocation in a geographic area where an epidemic disease has been spreading and it does not consider possible cross area diffusion between two or more geographic areas. We assume that once an epidemic outbreaks, the government will have effective means to separate the epidemic areas so that cross-area spread can be basically prevented. However, this cannot always be guaranteed in reality.