Skip to content

TAIL-OR/tailor-prescription

Repository files navigation

Prescriptive model for cost minimization in ICU bed management

This model aims to minimize costs related to constructing new hospitals and acquiring, repairing, and transferring equipments, infrastructure, and staff while managing the allocation of ICU beds in the territory of Brazil's Federal District.

Data

  • $F$: set of hospitals eligible to accommodate ICU beds;
  • $K$: subset of $F$ for hospitals already constructed;
  • $R$: set of requirements necessary for allocating an ICU bed;
  • $E \subseteq R$: subset of equipment requirements (e.g., ventilator, electrocardiograph);
  • $I \subseteq R$: subset of infrastructure requirements (e.g., X-ray room, laundry);
  • $S \subseteq R$: subset of staff requirements (e.g., nurse, janitor);
  • $d$: total demand for ICU beds;
  • $c_i$: construction cost of hospital $i \in F$ ($c_i = 0$ for all $i \in K$);
  • $l_i$: minimum number of ICU beds allocated to hospital $i \in F$, if constructed;
  • $u_i$: maximum number of ICU beds allocated to hospital $i \in F$;
  • $p_j$: price of acquiring requirement $j \in R$;
  • $r_j$: repair cost of requirement $j \in E \cup I$;
  • $n_j$: proportion of requirement $j$ needed per ICU bed;
  • $a_{ji}$: total number of units of requirement $j \in E \cup I$ in working condition at hospital $i \in F$;
  • $m_{ji}$: number of units of requirement $j \in E \cup I$ needing repair at hospital $i \in F$ within the analyzed time period;
  • $t_{jil}$: cost of transferring requirement $j \in E \cup S$ from hospital $i \in F$ to hospital $l$.

Variables

  • $x_i$: number of ICU beds hospital $i \in F$ should accommodate;
  • $y_i$: whether hospital $i \in F$ is constructed;
  • $z_{ji}$: number of units of requirement $j \in R$ acquired for hospital $i \in F$;
  • $w_{ji}$: number of units of requirement $j \in E \cup I$ from hospital $i \in F$ undergoing repair;
  • $v_{jil}$: number of units of requirement $j \in E \cup S$ transferred from hospital $i \in F$ to hospital $l \in F$ (where $l \neq i$).

Formulation

$$\begin{align} \min & \sum_{i \in F} \left(c_i y_i + \sum_{j \in R} p_j z_{ji} + \sum_{j \in E \cup I} m_{ji} w_{ji} + \sum_{j \in E \cup S} \sum_{l \in F\ |\ l \neq i} t_{jil} v_{jil}\right) \\ \text{subject to} & \qquad \sum_{i \in F} x_i \geq d \\ & \qquad a_{ji} + z_{ji} + w_{ji} + \sum_{l \in F\ |\ l \neq i} v_{jli} - v_{jil} \geq n_j x_i && i \in F, j \in E \\ & \qquad a_{ji} + z_{ji} + w_{ji} \geq n_j x_i && i \in F, j \in I \\ & \qquad a_{ji} + z_{ji} + \sum_{l \in F\ |\ l \neq i} v_{jli} - v_{jil} \geq n_j x_i && i \in F, j \in S \\ & \qquad w_{ji} \leq m_{ji} && i \in F, j \in E \cup I \\ & \qquad \sum_{l \in F\ |\ l \neq i} v_{jil} \leq a_{ji} && i \in F, j \in E \cup S \\ & \qquad y_i l_i \leq x_i \leq u_i && i \in F \\ & \qquad y_i = 1 && i \in K \\ & \qquad x_i/u_i \leq y_i \leq x_i && i \in F \\ & \qquad x_i \in \mathbb{Z} && i \in F \\ & \qquad y_i \in {0, 1} && i \in F \\ & \qquad z_{ji} \in \mathbb{Z} && i \in F, j \in R \\ & \qquad w_{ji} \in \mathbb{Z} && i \in F, j \in E \cup I \\ & \qquad v_{jil} \in \mathbb{Z} && i, l \in F, j \in E \cup S. \end{align} $$

The objective function aims to minimize the sum of costs for constructing new hospitals and acquiring, repairing, and transferring requirements for all hospitals. Constraints 1 ensure that the total demand for ICU beds is met. Constraints 2-4 determine that each hospital has all necessary requirements to operate its ICU beds, considering present requirements ($a_{ji}$), acquired ($z_{ji}$), repaired during maintenance ($w_{ji}$), incoming transfers ($v_{jli}$), and outgoing transfers ($v_{jil}$). Constraints 5 limit the number of requirements undergoing repair to the number of requirements in that condition in each hospital, while Constraints 6 limit the outgoing transferred requirements ($v_{jil}$) to those present in that hospital ($a_{ji}$). Constraints 7 limit the number of ICU beds per hospital within the minimum and maximum allowed, and Constraints 8 inform about existing constructed hospitals. Constraints 9 ensure that $y_i=1$ if $x_i$ is positive (i.e., if hospital $i$ has at least one ICU bed, then it is necessarily constructed). Finally, Domain Constraints 10-14 ensure that the variables $x_i$, $z_{ji}$, $w_{ji}$, and $v_{jil}$ are integers, and the variables $y_i$ are binary.

Installation

Install the package dependencies, then build the pyomo extensions with:

foo@bar:~$ pyomo build-extensions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published