1 Introduction

Health care systems constitute one of the most critical service sectors in any society. According to the World Health Organization, the average global health expenditure per capita has more than doubled (from US$480 in 2000 to US$1111 in 2018). Moreover, in March 2020, the World Health Organization proclaimed the coronavirus disease (COVID-19), a global pandemic (Ali & Kannan, 2022; Fattahi et al., 2023; Sohrabi et al., 2020; Ferreira et al., 2022). As a result, the need for hospital resource such as intensive care units (ICU) and wards has increased significantly over the world. In addition, aging phenomena put emphasis on the importance of health care systems, signaling its growing need for attention and planning. Clearly, hospitals play a critical role in health systems and operating rooms (ORs) are the most expensive services as they deploy a great number of precious resources such as surgeons, staff, and equipment (Macario, 2010; van Oostrum et al., 2008). In addition, ORs are the foremost source of annual income and have a direct effect on patient safety (Liu et al., 2011). Then, it is conceivable that any improvements in OR productivity could lead to a more productive hospital and better patient satisfaction (Durán et al., 2017). Accordingly, integrated planning and scheduling can be the capstone to managing and improving the efficiency of hospitals.

In the real world, patients, after being operated in ORs, frequently stay in downstream units, such as the recovery unit or post-anesthesia care unit (PACU), ICU, CCU, and wards, which are also limited (Fügener et al., 2014). As a result, considering just ORs capacity does not result in practical scheduling for patients, since the lack of enough downstream units keeps patients from moving forward, significantly decreasing ORs utilization. For instance, when there are not enough available beds in recovery units for incoming patients after surgery, some of them must remain in ORs until one recovery bed becomes available.

Elective patients can stay on a waiting list and be scheduled in advance. However, emergency patients must be operated on as soon as possible. Therefore, the arrival of emergency patients may lead to delays in elective patients surgeries because of their priority. A great number of hospitals deal with emergency surgeries problem by reserving some operating theater (OT) capacity. There are three ways to do it (Van Riet & Demeulemeester, 2015): (1) reserving some ORs’ capacity (reserved-OR), (2) use elective patients OR (shared-OR) (3) a combination of (1) and (2) (van Essen et al., 2012). In situation (1), emergency patients are operated on in the reserved OR, but they should wait for the reserved OR to become available if the reserved ORs are busy. In this situation, the utilization of ORs is chronically low. In situation (2), emergency patients are operated on in the first available OR. In this strategy, although the utilization of OR is reasonable, the high rate of elective patient surgery cancelation is undeniable. Situation (3) is a combination of situations (1) and (2), which means that the emergency patient is operated on at once if the reserved OR is available. Otherwise, they have to wait until the reserved ORs or one of the elective ORs becomes available. van Veen-Berkx et al. (2016) demonstrated that strategy 1 works better than strategy 2 in terms of utilization, overtime, and case cancellations.

Due to the inherent randomness in emergency patient arrival, historical data and geographical information systems are applied to obtain the emergency patient arrival time. Therefore, proper forecasting of this process can be used as a basis for management to better allocate OTs resources. Machine learning is an artificial intelligence subtype that employs algorithms, learning large quantities of data iteratively but not explicitly programmed to do so (Obermeyer & Emanuel, 2016). They can extract schematics from various data sources, explain them, and create a predictive model (Rajkomar et al., 2019). Machine learning models can be a proper method for forecasting emergency patients' arrivals time and surgery duration.

The contributions of this paper are summarized as follows:

  • The fully integrated model is developed for the OTs. The proposed model is integrated into three concepts:

    1. 1.

      Considering elective patients and emergency patients,

    2. 2.

      Regarding ORs and downstream units.

    3. 3.

      Proposing hierarchical weekly, daily, and rescheduling mathematical models.

  • The model ensures that the emergency patients will be assigned to an OR at most within the specified amount of time.

  • OTs' capacity is reserved for emergency patients while multi-shared-OR scheduling is considered for emergency patients.

  • Since cancelling patients’ surgery may result in dissatisfaction and anxiety, the rescheduling model ensures that their surgery day will not change.

  • Geographical information systems and random forest machine learning models are modified to predict the arrival time of emergency patients and patient surgery duration, respectively.

The remainder of this paper is organized as follows. Section 2 presents a detailed literature review. In Sect. 3, the problem definition and three-phase model are presented. In Sect. 4 solution methods are developed. Section 5 describes case study. Sections 6 and 7 provides computational results and discussion, respectively. Eventually, The conclusion is summarized in Sect. 8.

2 Literature review

The scheduling of OT is a broad topic. A detailed literature review can be found in (Cardoen et al., 2009; Guerriero & Guido, 2011; Rahimi & Gandomi, 2021; Van Riet & Demeulemeester, 2015; Zhu et al., 2019). The weekly scheduling (Di Martinelly & Meskens, 2017; Fei et al., 2009, 2010; Luo & Wang, 2019; Soudi et al., 2019), the daily scheduling (Aringhieri et al., 2015; Atighehchian et al., 2020; Gauthier & Legrain, 2016; Guido & Conforti, 2017; Guido et al., 2018; Riise et al., 2016; Varmazyar et al., 2020), and the rescheduling (Addis et al., 2014, 2016; Akbarzadeh et al., 2019; Gul et al., 2015) are well studied in the literature. Therefore, the literature focuses here that consider emergency patients and elective patients in OTs scheduling or applying machine learning models for OTs planning.

Soudi et al. (2019) benefitted from a hybrid flow workshop scheduling formulation for ORs weekly planning. Also, they applied a chance-constrained model for the arrival of emergency patients. Erdem et al. (2012) formulated a mixed-integer linear programming model to reschedule elective surgeries on the arrival of emergency patients. They considered ORs and recovery units to minimize the cost of overtime, postponing surgeries, and emergency patients’ rejections. Essen et al., (2012) developed a new concept to minimize the emergency patient surgery waiting time. They introduced the break-in-moment (BIM), which is where an emergency surgery could start an operation, and the break-in-interval, which defines as the interval between two consecutive BIMs concepts. Zonderland et al. (2010) considered semi-urgent surgeries and elective patients simultaneously for balancing the OR idle time and canceling elective surgeries. Lamiri et al. (2007) studied a stochastic optimization model to minimize elective patients' and ORs' overtime costs. They tried to schedule elective patients in OR and reserve a random capacity for emergency patients. Bargetto et al. (2018) provided a dynamic optimization model to balance emergency patients’ waiting times, the delay of elective patient surgery, and the overtime of staff. They considered emergency patients with different emergency levels to arrive as a nonhomogeneous Poisson process. Meersman and Maenhout (2022) analyzed the capacity distribution between elective and emergency patients to optimize patient appointment waiting times. Kroer et al. (2018) examined elective and emergency surgeries with uncertain duration aimed at reducing OR and overtime costs.

A stochastic programming model was developed by Farzad and Mohammad (2016) to represent the problem, taking into account priority rules based on moral values, and aiming to reduce waiting time and overtime for elective surgeries. Arab Momeni et al. (2022) proposed a mixed-integer mathematical programming model to assign COVID-19 as well as non-COVID-19 patients and specialty teams to ORs. Wang et al. (2016) considered uncertainty in surgical durations as well as emergency patient arrivals time and utilized a discrete simulation model. Jebali and Diabat (2017) considered the duration of patient surgery and the length of stay in ICU as random variables and formed a two-stage chance-constrained model for emergency and elective patients in the advance scheduling problem. Bruni et al. (2015) proposed a stochastic programming framework with three recourse strategies for the uncertainty of arrivals of emergency patients and surgery duration. Silva and de Souza (2020) considered approximate dynamic programming with an integer model to monitor daily scheduling for emergency and elective patients.

Tuwatananurak et al. (2019) applied a proprietary machine learning algorithm, leap Rail, to estimate the duration of patient surgery. The algorithm learned how to predict based upon a data set of 15,000 surgery cases. Fairley et al. (2019) used the machine learning algorithm to forecast the time of the PACU. As a result, total PACU holdings have been reduced, leading to substantial cost savings. Schiele et al. (2021) considered a three-step model for master surgery scheduling, in which they integrated the ORs and downstream units. They predict ICU bed occupancy based on a neural network model. Shuvo et al. (2020) proposed a deep reinforcement learning-based policy for inadequate beds in the Bangladesh hospital. They applied the machine learning algorithm, Advantage Actor-Critic (A2C), to reduce the cost.

Surgery cancellations are a cause of ineffective use of OTs. Luo and Wang (2019) used machine learning models to identify the surgeries with high risks of cancellation. They applied random forest, support vector machine, and XGBoost models and found that the random forest model attained the greatest performance. These new techniques make it possible for OT managers to provide preventive measures to reduce cancellation rates in OTs. Luo et al. (2016) applied techniques of machine learning to predict the cancellation of surgery at the West China Hospital. Models such as bagging, boosting, Bayesian additive regression trees, and the random forest were used. Erekat et al. (2020) examined four different standard data mining techniques to predict surgical cancellations for successful schedules of surgical patients. The prediction of surgery cancellation leads to efficient scheduling that eventually leads to cost reductions. Another example is the use of these new technologies is in robotic surgery, which involves significant costs. Zhao et al. (2019) considered 500 robotic surgeries and examined 28 variables. They applied a number of supervised machine learning techniques, including neural networks and random forest. As mentioned, the machine learning model seems to be very helpful in the OT schedule.

According to the reviewed literature, many authors have ignored downstream units and regarded them as limitless resource, which is not conceivable in the real world. Although some resources have been addressed in prior papers, the lack of sufficient downstream units prevents patients from going forward and results in improper realistic scheduling. In addition, while many authors have focused on elective patients, it is vital to take all patients into consideration for complete and effective planning and scheduling. In this study, elective and emergency patients are taken into account in ORs and downstream units simultaneously. Also, a three-phase model, weekly and daily scheduling as well as rescheduling, is proposed to integrate all the decisions in the OTs department. To the best of our knowledge, such an integrated model has not been discussed in the literature which can be completely useful for OT management. Also, geographical information systems are utilized for to forecast the emergency patient arrival time. In addition, a random forest machine learning model is used to predict emergency patients' surgery duration.

3 Problem definition and formulation

This paper develops an approach for scheduling and rescheduling for both elective and emergency patients in OTs. OR capacities are divided into some blocks, which are assigned in advance. For this purpose, a three-phase model is extended to schedule patients weekly and daily as well as to reschedule patients after arriving emergency patients if needed. The Three-phase model is presented hierarchically, where the results of each phase are the input for the subsequent phases. Figure 1 demonstrates the flowchart of the scheduling process.

Fig. 1
figure 1

Flowchart of the scheduling process

Phase 1 is weekly scheduling in which the scheduler needs to allocate OTs to surgical groups for the next week. In the same way, he or she reserves some OT capacity for emergency patients according to their arrival rate. Phase 2 studies daily scheduling in which the exact time and sequencing of elective patient’s surgery are determined within the assigned blocks for each patient. Finally, phase 3 implies rescheduling. In this phase, when an emergency patient arrives, he or she needs to be scheduled within a limited specific time. This may disrupt a subset of daily scheduled elective surgeries, and then it is needed to be rescheduled.

The assumptions are as follows:

  • Elective and emergency patients are considered together in OT, composed of multiple ORs, recovery, ICU, CCU, and ward units.

  • Some capacity in OTs is reserved for emergency patients, and they can also use elective patients ORs if needed.

  • All patients are transferred to the recovery unit after surgery, and they are transferred to one of the ICU, CCU, or ward. Patients from the ICU and CCU are also transferred to the ward unit after they have passed the specific conditions.

  • The duration of the patient's stay in the OR and the recovery unit are measured in the sum of the number of blocks and sub-block. The duration of the patient's stay in other downstream parts is measured in the sum of the number of days.

  • The ORs are opened at 8 AM and closed at 4 PM.

  • Each day is divided into four blocks, and each block is divided into ten sub-blocks.

  • The start time of each surgery can be changed, yet the day of operation is unchangeable.

3.1 Weekly scheduling

Before developing weekly scheduling, the arrival patterns of emergency patients must be forecasted to reserve some OT capacities. The number of reserved ORs can be different from one block to another since their arrival patterns can be different.

Indices and sets:

  • \(O\): Set of ORs indexed by \(o\)

  • \(I\): Set of surgeries days indexed by \(i\)

  • \(J\): Set of surgeries blocks indexed by \(j\)

  • \(S\): Set of surgeries groups indexed by \(s\)

Parameters:

  • \({L}_{s}\): The length of average surgery duration of the surgical group \(s\)

  • \(LE\): The length of average surgery duration of the emergency patient

  • \({LR}_{s}\): The length of stay in the recovery room of the surgical group\(s\)

  • \({LI}_{s}\): The length of stay in the ICU of the surgical group \(s\)

  • \({LC}_{s}\): The length of stay in the CCU of the surgical group \(s\)

  • \({LW}_{s}\): The length of stay in the ward unit of the surgical group \(s\)

  • \({BR}_{i}\): The number of available beds in the recovery room on day \(i\)

  • \({BI}_{i}\): The number of available beds in ICU on day \(i\)

  • \({BC}_{i}\): The number of available beds in CCU on day \(i\)

  • \({BW}_{i}\): The number of available beds in the ward unit on day \(i\)

  • \({S}_{ijs}\): The number of surgeons from the surgical group \(s\) on day \(i\) and block \(j\)

  • \({D}_{s}\): Demand for surgical group \(s\)

  • \({DE}_{ij}\): Demand for emergency patients on day \(i\) and block \(j\)

Decision variables:

  • \({X}_{ijos}^{w}\): A binary variable, equal to 1, if block \(j\) on the day \(i\) from the OR \(o\) assigns to the surgical group \(s\); 0, otherwise

  • \({Y}_{ijs}^{w}\): An integer variable equal to the number of assigned blocks to the surgical group \(s\) on the day \(i\) on block \(j\)

  • \({Z}_{ijo}^{w}\): A binary variable, equal to 1, if block \(j\) on the day \(i\) from the OR \(o\) assigns to the emergency patients; 0, otherwise

  • \({Q}_{is}^{w}\): An integer variable, equal to the number of assigned blocks to the surgical group \(s\) on day \(i\)

The mathematical formulation of the weekwangly scheduling is as follows:

$$\mathrm{min}\sum_{i}\sum_{j}\sum_{o}\sum_{s}j\times {X}_{ijos}^{w}$$
(1)

subject to:

$$ \sum\limits_{o} {X_{{ijos}}^{w} } \, \le \,S_{{ijs}} \quad \forall \,i,\,j,\,s $$
(2)
$$ \sum\limits_{s} {X_{{ijos}}^{w} } \, + Z_{{ijo}}^{w} \, \le \,1\quad \forall \,i,\,j,\,s$$
(3)
$$ \sum\limits_{i} {\sum\limits_{j} {\sum\limits_{o} {X_{{ijos}}^{w} } } } \, \ge \,D_{s} \, \times \,L_{s} \quad \forall \,s $$
(4)
$$ \sum\limits_{o} {Z_{{ijo}}^{w} } \, \ge \,DE_{{ij}} \, \times \,LE\quad \forall \,i,\,j $$
(5)
$$ \sum\limits_{o} {X_{{ijos}}^{w} } \, \le \,Y_{{ijs}}^{w} \quad \forall \,i,\,j,\,s $$
(6)
$$ \sum\limits_{j} {Y_{{ijs}}^{w} } \, \le \,Q_{{is}}^{w} \quad \forall \,i,\,s $$
(7)
$$ \sum\limits_{s} {\left( {Y_{ijs}^{w} + Y_{{i\left( {j - 1} \right)s}}^{w} + \ldots + Y_{{i\left( {j - LR_{s} + 1} \right)s}}^{w} } \right)} \times \left( {{\raise0.7ex\hbox{$1$} \!\mathord{\left/ {\vphantom {1 {L_{s} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${L_{s} }$}}} \right) \le BR_{i} \quad \forall\, i,\,j $$
(8)
$$ \sum\limits_{s} {\left( {Q_{{is}}^{w} + Q_{{(i - 1)s}}^{w} + \ldots + Q_{{\left( {i - LI_{s} + 1} \right)s}}^{w} Q_{{\left( {i - LI_{s} + 1} \right)s}} } \right)} \, \le \,BI_{i} \quad \forall \,i $$
(9)
$$ \sum\limits_{s} {\left( {Q_{{is}}^{w} + Q_{{(i - 1)s}}^{w} + \ldots + Q_{{\left( {i - LC_{s} + 1} \right)s}}^{w} } \right)} \, \le \,BC_{i} \quad \forall \,i $$
(10)
$$ \sum\limits_{s} {\left( {Q_{{\left( {i - LI_{s} - LC_{s} } \right)s}}^{w} + Q_{{\left( {i - LI_{s} - LC_{s} - 1} \right)s}}^{w} + \cdots + Q_{{(i - LI_{s} - LC_{s} - LW_{s} + 1)s}}^{w} Q_{{\left( {i - LI_{s} + 1} \right)s}} } \right)} \, \le \,Bw_{i} \quad \forall \,i $$
(11)
$$ X_{{ijos}}^{w} ,\,Z_{{ijo}}^{w} \, \in \,\left\{ {{\text{0}},{\text{1}}} \right\},\,Y_{{ijs}}^{w} ,\,Q_{{is}}^{w} \, \in \,int $$
(12)

The objective function (1) strives to schedule a surgical group each day as soon as possible. Constraint (2) allows the assigning of OR to the surgical groups when a needed surgeon is available. Constraint (3) assures that each block is assigned to one patient or left empty. Constraints (4) and (5) ensure that each surgical group's total assigned time must be more than the needed time. Constraints (6) and (7) show the number of surgery in each block and day. Constraints (8–11) consider the integration of downstream units to ORs. Constraint (12) shows the domain of variables.

3.2 Daily scheduling

By the weekly scheduling, it is determined that each block from each OR is assigned to which surgical group. A daily scheduling model is developed to find the optimal sequence of patients’ surgery. When an emergency patient arrives, the patient will be supported in the emergency department with initial treatments before transferring to an OR. This transfer must be done within a limited amount of time. The following notations are used for the daily scheduling mathematical modeling in addition to the explained notations of the weekly scheduling:

Indices and sets:

  • \(K\): Set of sub-blocks indexed by \(k\)

  • \(P\): Set of the patients from the surgical groups indexed by \(p\)

Parameters:

  • \({X}_{ijos}^{w}\): The output of the weekly scheduling indicating block \(j\) of operation room \(o\) on the day \(i\) assigns to surgical group \(s\)

  • \({Z}_{ijok}^{w}\): The output of the weekly scheduling indicating block \(j\) of operation room \(o\) on the day \(i\) assigns to emergency group \(k\)

  • \({LO}_{sp}\): The surgery duration of patient \(p\) from the surgical group \(s\)

  • \({W}_{sp}\): Priority of patient \(p\) from the surgical group \(s\)

  • \({C}_{ijk}\): A factor in the objective function whose purpose is to put the operations in the earliest possible time \(\left({C}_{ijk}={c}_{i}\times i+{c}_{j}\times j+{c}_{k}\times k where {c}_{i}>{c}_{j}>{c}_{k}\right)\)

  • \({R}_{ijk}\): The number of elective patients ORs that could potentially assign to the emergency patient if needed at this time (day \(i\), block \(j\), and sub-block \(k\))

Decision variables:

  • \({X}_{ijkosp}^{d}\): A binary variable, equal to 1, if sub-block \(k\) from block \(j\) on the day \(i\) from the OR \(o\) assigns to patient \(p\) from the surgical group \(s\); 0, otherwise

  • \({ST}_{ijkosp}^{d}\): A binary variable, equal to 1, if sub-block \(k\) from block \(j\) on the day \(i\) from the OR \(o\) assigns to patient \(p\) from the surgical group \(s\) and the patient’s surgery starts in this sub-block; 0, otherwise

  • \({EM}_{ijkos}^{d}\): A binary variable, equal to 1, if sub-block \(k\) from block \(j\) on the day \(i\) from the OR \(o\) from the surgical group \(s\) is empty; 0, otherwise

The mathematical formulation of the daily scheduling is as follows:

$$\mathrm{min}\sum_{i}\sum_{j}\sum_{k}\sum_{o}\sum_{s}\sum_{p}{C}_{ijk}\times {W}_{sp}\times {ST}_{ijkosp}^{d}$$
(13)
$$subject \, to:$$
$${X}_{ijkosp}^{d}+{EM}_{ijkos}^{d}\le {X}_{ijos}^{w} \forall i,j,k,o,s,p$$
(14)
$$\sum_{p}{X}_{ijkosp}^{d}+{EM}_{ijkos}^{d}\le 1 \forall i,j,k,o,s$$
(15)
$${ST}_{ijkosp}^{d}\le {X}_{ijkosp}^{d} \forall i,j,k,o,s,p$$
(16)
$$\sum_{i}\sum_{j}\sum_{k}\sum_{o}{ST}_{ijkosp}^{d}=1 \forall s,p$$
(17)
$$\sum_{o}\left({Z}_{ijok}^{w}+\sum_{s}\left(\sum_{p}{ST}_{ijkosp}^{d}+{EM}_{ijkos}^{d}\right)\right)\ge {R}_{ijk} \forall \left\{i,j,k\right\}$$
(18)
$${ST}_{ijkosp}^{d}\times {LO}_{sp}\le \left({ST}_{i(jk)osp}^{d}+{ST}_{i(jk+1)osp}^{d}+\dots +{ST}_{i(jk+{LO}_{sp}-1)osp}^{d}\right) \forall i, j,k,s,p,o$$
(19)
$$\sum_{o}\sum_{s}\sum_{p}\left({ST}_{i(jk-{LO}_{sp})osp}^{d}+{ST}_{i(jk-{LO}_{sp}-1)osp}^{d}+\dots +{ST}_{i\left(jk-{LO}_{sp}-{LR}_{sp}+1\right)osp}^{d}\right)\le {BR}_{i} \forall i,j,k$$
(20)
$$\sum_{j}\sum_{k}\sum_{o}\sum_{s}\sum_{p}\left({ST}_{ijkosp}^{d}+{ST}_{(i-1)jkosp}^{d}+\dots +{ST}_{(i-{LI}_{sp}+1)jkosp}^{d}\right)\le {BI}_{i} \forall i$$
(21)
$$\sum_{j}\sum_{k}\sum_{o}\sum_{s}\sum_{p}\left({ST}_{ijkosp}^{d}+{ST}_{(i-1)jkosp}^{d}+\dots +{ST}_{(i-{LC}_{sp}+1)jkosp}^{d}\right)\le {BC}_{i} \forall i$$
(22)
$$\sum_{j}\sum_{k}\sum_{o}\sum_{s}\sum_{p}\left({ST}_{\left(i-{LI}_{sp}-{LC}_{sp}\right)jkosp}^{d}+{ST}_{\left(i-{LI}_{sp}-{LC}_{sp}-1\right)jkosp}^{d}+{ST}_{\left(i-{LI}_{sp}-{LC}_{sp}-{LW}_{sp}+1\right)jkosp}^{d}\right)\le {BW}_{i} \forall i$$
(23)
$${X}_{ijkosp}^{d}, {ST}_{ijkosp}^{d}, {EM}_{ijkos}^{d}\in \left\{\mathrm{0,1}\right\}$$
(24)

In objective function (13), function \({C}_{ijk}\) is an increasing function. Therefore, it strives to start patients' operations as soon as possible with regarding the priority of each patient. In constraint (14), using the weekly scheduling output which assigns each block to a surgical group, first, each block is divided into ten sub-blocks which is represented by k, and eventually, each sub-block is assigned to elective patients or left empty. Constraint (15) ensures that at most one surgery is conducted in each OR each time. Constraints (16) and (17) indicate the start time for each elective patient. Thus, among the blocks that are assigned to each patient, the first sub-block is the start time of each patient. Constraint (18) dedicates to emergency patients and ensures that any emergency patient could operate in elective OR in a maximum limited time if reserved ORs are not available. This guarantees the ability to assign at least \({R}_{ijk}\) of the elective patients OR to the emergency patient. There will be empty ORs or an operation begins in one of the OR, where the operation can be delayed and given to emergency patients. Constraint (19) notifies the completion time of the surgery as well as indicates that an operation from the beginning to the end should be done without interruption in one OR. Constraint (20) states the number of occupied recovery beds which in each period should not be more than the available number. Constraints (21–23) consider the integration of other sections to ORs. Constraint (24) demonstrates the domain of variables.

3.3 Rescheduling

In phase 1, OTs are reserved for emergency patients, \({Z}_{ijoK}^{w}\) is the reserved ORs. In phase 2, \(R\) of the ORs in each time potentially are available to assign to emergency patients. Whenever an emergency patient arrives randomly, the patient must transfer to an OR within a limited time. This limitation is crucial and completely different from one patient to another. One emergency patient must be operated on in a maximum of 15 min, while another one could wait until tomorrow. The patient is operated on at once if the reserved OR is empty. Otherwise, he or she must wait until the reserved ORs or one of the elective ORs becomes available. In the proposed model, the maximum waiting time for emergency patients is controllable for elective ORs, which can be from 1 sub-block to whatever required. Suppose an emergency patient arrives at \({T}_{a}\), the earliest time when a reserved OR becomes available is \({T}_{r}\), and his or her time limit is \({T}_{l}\), if \({T}_{r}-{T}_{a}\le {T}_{l}\), he or she can wait until the reserved OR become available. In contrast, if \({T}_{r}-{T}_{a}>{T}_{l}\), the patient must operate in the first available ORs. Therefore, the starting times of surgeries that begun earlier than \({T}_{a}\) remain fixed and the remaining surgeries must be rescheduled to take the emergency surgery into account.

This reschedule model is referred to as the online model, in which the daily remaining elective patients are rescheduled again. In this model, the number of patients reduces to the remaining patients (\({p}^{^{\prime}}\)) of the day, who should operate in this day according to daily scheduling. Also, overtime is allowed, and the objective function tries to minimize the total number of overtimes. In the weekly and daily scheduling, the number of needed surgeons is known in advance. Therefore, it is possible to schedule patients without considering the availability of surgeons. Yet in rescheduling, patients with the available surgeons must schedule. Therefore let \({S}_{js}\) as a parameter to indicate the number of available surgeons who can operate in the surgical group \(s\) in block \(j\). In addition, integrity constricts for ICU, CCU, and the ward units are not necessary since they are considered in the daily schedule, yet the rescheduling process cannot change the day of the surgery. In the rescheduling model, all the parameters and decision variables are the same as the daily and weekly scheduling, yet the difference is the rescheduling program for the remaining patients in one day.

The following notations are used in addition to the explained notations in the mathematical model.

Indices and sets:

  • \({P}^{\mathrm{^{\prime}}}\): Set of remaining patients of the day indexed by \({p}^{\mathrm{^{\prime}}}\)

  • \(Q\): Set of blocks in the overtime

Parameters:

  • \({LO}_{s{p}^{\mathrm{^{\prime}}}}\): The length of surgery duration of patient \({p}^{\mathrm{^{\prime}}}\) from the surgical group \(s\)

  • \({LR}_{s{p}^{\mathrm{^{\prime}}}}\): The length of recovery duration of patient \({p}^{\mathrm{^{\prime}}}\) from the surgical group \(s\)

  • \({S}_{jks}\): The number of available surgeons from the surgical group \(s\) in block \(j\) and sub-block \(k\)

  • \({C}_{jk}\): A factor in the objective function whose purpose is to put the operations in the earliest possible time \(\left({C}_{jk}={c}_{j}\times j+{c}_{k}\times k where {c}_{j}>{c}_{k}\right)\)

  • \({R}_{jk}\): The number of ORs, which could assign to emergency patients in block \(j\) and sub-block \(k\)

Decision variables:

  • \({X}_{jkos{p}^{\mathrm{^{\prime}}}}^{r}\): A binary variable, equal to 1, if sub-block \(k\) from block \(j\) of the OR \(o\) assigns to patient \({p}^{\mathrm{^{\prime}}}\) from the surgical group \(s\); 0, otherwise

  • \({ST}_{jkos{p}^{\mathrm{^{\prime}}}}^{r}\): A binary variable, equal to 1, if sub-block \(k\) from block \(j\) of the OR \(o\) assigns to patient \({p}^{\mathrm{^{\prime}}}\) from the surgical group \(s\) and the patient’s surgery starts in this sub-block; 0, otherwise

  • \({EM}_{jkos}^{r}\): A binary variable, equal to 1, if sub-block \(k\) from block \(j\) of the OR \(o\) from the surgical group \(s\) is empty; 0, otherwise

  • \({XS}_{jkos}^{r}\): A binary variable, equal to 1, if a surgeon from the surgical group \(s\) in sub-block \(k\) from block \(j\) assigns to the OR \(o\); 0, otherwise

The mathematical formulation of the rescheduling is as follows:

$$\mathrm{min}\sum_{j\in Q}\sum_{k}\sum_{o}\sum_{s}\sum_{{p}^{^{\prime}}}{C}_{jk}\times {X}_{jkos{p}^{^{\prime}}}$$
(25)

subject to:

$$\sum_{o}{XS}_{jkos}^{r}\le {S}_{jks} \forall j,k,s$$
(26)
$$\sum_{s}{XS}_{jkos}^{r}\le 1 \forall j,k,o$$
(27)
$${X}_{jkos{p}^{^{\prime}}}^{r}+{EM}_{jkos}^{r}\le {XS}_{jkos}^{r} \forall j,k,o,s,{p}^{^{\prime}}$$
(28)
$$\sum_{{p}^{^{\prime}}}{X}_{jkos{p}^{^{\prime}}}^{r}+{EM}_{jkos}^{r}\le 1 \forall j,k,o,s$$
(29)
$${ST}_{jkos{p}^{^{\prime}}}^{r}\le {X}_{jkos{p}^{^{\prime}}}^{r} \forall j,k,o,s$$
(30)
$$\sum_{j}\sum_{o}\sum_{k}{ST}_{jkos{p}^{^{\prime}}}^{r}=1 \forall s,{p}^{^{\prime}}$$
(31)
$$\sum_{o}\left({Z}_{ijok}^{w}+\sum_{s}\left(\sum_{{p}^{^{\prime}}}{X}_{jkos{p}^{^{\prime}}}^{r}+{EM}_{jkos}^{r}\right)\right)\ge {R}_{jk} \forall \left\{j,k\right\}\in\Phi $$
(32)
$${ST}_{jkos{p}^{^{\prime}}}^{r}\times {LO}_{s{p}^{^{\prime}}}\le \left({X}_{(jk)os{p}^{^{\prime}}}^{r}+{X}_{(jk+1)os{p}^{^{\prime}}}^{r}+\dots +{X}_{\left(jk+{LO}_{sp}-1\right)os{p}^{^{\prime}}}^{r}\right) \forall j,k,s,{p}^{^{\prime}},o$$
(33)
$$\sum_{o}\sum_{s}\sum_{{p}^{^{\prime}}}\left({ST}_{\left(jk-{LO}_{s{p}^{^{\prime}}}\right)kos{p}^{^{\prime}}}^{r}+{ST}_{\left(jk-{LO}_{s{p}^{^{\prime}}}-1\right)kos{p}^{^{\prime}}}^{r}+\dots +{ST}_{\left(jk-{LO}_{s{p}^{^{\prime}}}-{LR}_{s{p}^{^{\prime}}}+1\right)kos{p}^{^{\prime}}}^{r}\right)\le \mathrm{BR} \forall j,k$$
(34)
$${X}_{jkos{p}^{^{\prime}}}^{r},{XS}_{jkos}^{r}, {ST}_{jkos{p}^{^{\prime}}}^{r}, {EM}_{jkos}^{r}\in \left\{\mathrm{0,1}\right\}$$
(35)

In the objective function (25), function \({C}_{jk}\) is an increasing function. Therefore, it strives to start patients' operations as soon as possible to minimize the total number of overtime sub-blocks. Constraints (26) and (27) assign surgeons to ORs. In the constraint (28) and (29), each sub-block assigns to elective patients or leave empty. Constraints (30) and (31) indicate the start time for each elective patient. Thus, from among the blocks that are assigned to each patient, the first sub-block is the start time of each patient. Constraint (32) is for emergency patients and ensures that any emergency patient could operate in elective OR in a maximum limited time if reserved ORs are not available. This Constraint guarantees that at least one OR will be able to assign to the emergency patient in each sub-block. In these sub-blocks, there will be empty ORs or an operation begins in one of the OR, where the operation can delay and give to emergency patients. Constraint (33) demonstrates the completion time of the surgery, and also indicates that an operation from the beginning to the end should be done without interruption in one OR. Constraint (34) states the number of occupied recovery beds in each period should not be more than the available number. Constraint (35) shows the domain of variables.

4 Solution method

The proposed mathematical models of this paper can be regarded as a flexible job shop scheduling problem that has been proved to be NP-hard (Fattahi et al., 2007). Therefore, for large-size models, it is required to find a near-optimal solution within a reasonable time. To do so, GA and PSO are modified and applied for solving the models.

4.1 Genetic algorithm

GA is a well-known meta-heuristic method, which is based on the evolutionary concept and has been extensively applied to tackle different optimization problems. For instance, Marques et al. (2014), Hooshmand et al. (2018), and Wang et al. (2022) used GA to solve OR scheduling problems.

In the proposed GA, the chromosome is a \(4 \times N (\sum {n}_{s})\) matrix as shown in Fig. 2, where \({n}_{s}\) is the number of patients in each surgical group and \(N\) is the total number of patients in the entire surgical groups. Columns 1 to \({n}_{1}\) are the first surgical group patients. Columns \({n}_{1}+1\) to \({n}_{1}+ {n}_{2}\) are the second surgical group patients, etc. This matrix has 4 rows. The first row shows ORs in which the patient will operate. The second row indicates the day of operation. The third, as well as fourth rows, show the exact start time of each operation (block and sub-blocks). According to this, for example, the first patient will operate on the third day of the week and in the second block and the fifth sub-block in the second OR. Figure 3 demonstrates the pseudo-code of the proposed GA.

Fig. 2
figure 2

Chromosome structure of the problem

Fig. 3
figure 3

The pseudo-code of GA steps

4.2 Particle swarm optimization

PSO initially has been introduced for simulating swarm behavior. Swarm intelligence inherently represents optimum behavior in nature. Therefore, swarm simulation can lead to optimization (Kennedy & Eberhart, 1995). PSO reported being a successful algorithm in several fields such as antennas, biomedical, etc. (Poli, 2007, 2008; Devika et al., 2016). The velocity of each bird in a swarm is related to adjacent birds and stochastic factors. Furthermore, swarming birds move around the whole swarm central position and tend to land where food can be found (Heppner & Grenander, 1990). In PSO, the central position of the swarm is the best solution found in the entire swarm and each particle has its own best solution. Two mentioned rules on birds’ swarm lead to the velocity formulation of PSO shown in Eq. (36).

$${new V}_{p}=\omega {V}_{p}+{\varphi }_{p}rand\left(Pbest,{x}_{p}\right)+{\varphi }_{g}rand\left(Gbest,{x}_{p}\right)$$
(36)

where \({V}_{p}\) is the velocity of particle \(p\). \(Pbest\) and \(Gbest\) notify the best-known solution of each particle and the swarm, respectively. \({x}_{p}\) displays the current particle solution. Parameter \(\omega \) is the inertia factor. Parameters \({\varphi }_{p}\) and \({\varphi }_{g}\) indicate that how much each particle should rely on the best swarm known solution or its own local solution.

In this research, PSO is implemented with the adaptive inertia parameter of Taherkhani and Safabakhsh (2016). PSO with adaptive inertia parameter is shown in Eqs. (3739). In the PSO solution structure, each row represents a particle, which all variables are serialized in columns. Index \(i\) is the particle number and \(j\) is the dimension number. Equation (39) is the velocity updating. The pseudo-code of PSO can be found in Fig. 4.

Fig. 4
figure 4

The pseudo-code of PSO steps

$$ \delta _{i} \left( t \right) = \left\{ {\begin{array}{*{20}l} {1\,if\,f\left( {x_{i} \left( {t - 1} \right)} \right)} \hfill & {{ < }f(Pbest\left( t \right))} \hfill \\ { - 1} \hfill & {else} \hfill \\ \end{array} } \right. $$
(37)
$${w}_{ij}\left(t+1\right)=\left\{\begin{array}{c}min({w}_{max},{w}_{ij}\left(t\right)+\left(1-{w}_{0}\right)*\mathrm{exp}\left(\frac{{\left({x}_{ij}\left(t+1\right)-{Pbest}_{ij}\left(t\right)\right)}^{2}}{-2{\sigma }^{2}}\right)+\varepsilon if {\delta }_{i}\left(t\right)>0\, and \,{\delta }_{i}\left(t-1\right)>0\\ \mathrm{min}\left({w}_{min},{w}_{ij}\left(t\right)-{w}_{0}*(1-\mathrm{exp}\left(\frac{{\left({x}_{ij}\left(t+1\right)-{Pbest}_{ij}\left(t\right)\right)}^{2}}{-2{\sigma }^{2}}\right)\right)+\varepsilon if {\delta }_{i}\left(t\right)<0\, and\, {\delta }_{i}\left(t-1\right)<0\\ {w}_{ij}\left(t\right) else\end{array}\right.$$
(38)
$${V}_{ij}={\omega }_{ij}{V}_{ij}+{\varphi }_{p}rand\left({Pbest}_{ij},{x}_{ij}\right)+{\varphi }_{g}rand\left({Gbest}_{ij},{x}_{ij}\right)$$
(39)

Initial particle values and velocity are set randomly with respect to minimum and maximum expected values of the variables of the problem. Except for parameter \(\omega \) which is adaptive to runtime, \({\varphi }_{p}\) is set to -0.6 and \({\varphi }_{g}\) is 2.6 (Pedersen, 2010). Furthermore, the maximum velocity of the particles is considered to avoid divergence of particles. To validate PSO, the problem is solved by GA. Discovering the first feasible solution is tested for each algorithm. The maximum iteration number of PSO is set to 1000.

5 Case study

The case study of this paper is a hospital located in the sixth district of Tehran. The sixth district is a major commercial and administrative center and is ranked 17th populated among 22 districts (Iran, 2016). Despite having a low population, a large number of people travel to this district during the day (Atlas, 2020). It has the third rank in car accidents and the first rank in casualties. Therefore, most of the emergency patients arriving at the hospital are due to car accidents. The investigated hospital has 10 ORs with capacities of more than 200 patients per week and eight elective surgical groups. Elective surgeries are operated on five days a week from Saturday to Wednesday. The usual working hour is from 8 AM to 4 PM and may take up to 4 h of overtime if needed. It is supposed the length of each block and sub-block to be 2 h and 12 min, respectively. Therefore, a week consists of 200 blocks and 2000 sub-blocks. To estimate the emergency arrivals to the hospital, historical time-related data about accidents and geographical information related to various types of accidents are required. Figure 5 demonstrates the absorbed travels in Tehran districts and summarizes the data used for emergency patients’ arrivals.

Fig. 5
figure 5

Travel absorbed by different districts and different types of accidents used for emergency surgery arrivals

The data discussed so far represent the distribution of average accidents on daily basis, however, the arrivals during a day are required for modeling. To achieve sub-block arrivals, the traffic load is used to represent the activity level in the city during the day. Traffic load is obtained from Google map data which is provided by the Traffic Index website (index, 2021), and is represented by weighted colors (green, orange, red, and dark red) used by Google Maps to express traffic congestion index (TCI). The traffic data is distributed by TCI and interpolated by cubic smoothing spline interpolation for emergency patients’ arrivals. The cubic spline is a parametric model whose parameters can be optimized to obtain well-shaped curvature (Kouibia et al., 2011). Figure 6 shows the interpolated average TCI index during a day.

Fig. 6
figure 6

Average TCI index for Tehran interpolated by cubic spline

Surgical duration is a continuous variable, and it is difficult to be determined directly. Machine learning techniques can help us to predict surgical duration more accurately from various parameters of a surgery. Although the surgical duration is a continuous variable and can be handled as a regression problem, the prediction needs to be fed into the mathematical model and it should be binned first to fit the model. Surgical duration is categorized into four scenarios based on unsupervised learning. Expected maximization is used to obtain the clusters whose result can be seen in Fig. 7. Different cluster numbers are tested and analyzed by Silhouette clustering validity measure (Lovino et al., 2022). The number of clusters which maximizes the Silhouette measure is selected. A random forest algorithm is applied to predict the duration scenario based on the surgery characteristics. Random forest is a well-known machine learning model used in medical prediction studies which has been proven to be an effective classification model (Kong et al., 2020; Lin et al., 2019). It is an ensemble learning algorithm that generates multiple decision trees to enhance prediction accuracy. The features which are used to build a prediction model are the age of the patient, surgery type, type of anesthesia, preconditions of the patient, operation room number, number of staff, month, and day of the week. The operation room number in addition to the location of the surgery represents the operation team experience and the physical equipment of the room. Figure 8 shows the prediction performance by applying tenfold cross-validation. The average duration of the predicted scenario is used for the optimization model. As shown in Fig. 8 the longer surgeries are predicted with higher accuracy and the longest surgery duration doesn’t have any misclassification.

Fig. 7
figure 7

Different scenarios generated by expected maximizing clustering on surgery duration

Fig. 8
figure 8

Prediction accuracy of the random forest model

6 Computational results

This section explains the results of numerical experiments that examine the performance of the solution methods. All computations are performed on Intel Core i7-3632QM equipped with an 8 GB RAM computer. Customized GA and PSO are coded in the MATLAB programming language. Furthermore, the ILOG IBM CPLEX is applied to solve small-size models.

6.1 Performance of solution methods

In weekly scheduling, surgery blocks are assigned to surgery groups. Therefore, the dimensionality is not high and it is possible to achieve exact solutions in a reasonable time for this model. Since the number of patients is high in daily scheduling, the dimension of the daily scheduling problem is high. On the other hand, the rescheduling model is considered only for the remaining patients in a day. Thus, the dimensionality of this model is not high. Consequently, the weekly scheduling and rescheduling models are solved with CPLEX, and GA and PSO are applied to find the daily scheduling. To evaluate the performance of the proposed algorithms, 20 small-size test problems are generated. Table 1 provides the characteristics of these problems.

Table 1 Characteristics of generated test problems

For each test problem, first, CPLEX results are computed. Then, the same problem is solved 5 times using the proposed GA and PSO. To tune the parameters of GA and PSO, the Taguchi method is applied but the corresponding results are not reported because of brevity. The average objective function of 5 runs is examined for evaluation. The gap between the exact solutions of test problems from both GA and PSO is considered as a criterion of the accuracy of the algorithms’ response and is calculated as Eq. (40).

$${Gap}_{a}^{t}\left(\mathrm{\%}\right)=\frac{{Z}_{a}^{t}-{Z}_{CPLEX}^{t}}{{Z}_{CPLEX}^{t}}\times 100\quad \forall\, a\in \left\{\mathrm{1,2},\dots ,20\right\} \,and\, t\in \left\{GA,PSO\right\}$$
(40)

where \({Z}_{a}^{t}\) implies the objective function value of the proposed methods for each test problem.

Table 2 reports the results of CPLEX, GA, and PSO for daily scheduling. As seen in this table, by growing the dimensions of the problems, the difference between the solution times for the CPLEX, and proposed GA, and PSO is increasing. Given the small gap between the exact solution of the problem and the algorithm's, it seems that the proposed GA gap is around 2%, and the PSO gap is around 4%. Therefore, the GA has a better function and can reliably use to solve real-world problems that the CPLEX cannot solve at the logical time.

Table 2 Results of test problems

6.2 Results

After assessing the performance of the proposed solution methods, we concentrate on a real case study that inspired this research. Patients’ surgeries performed at the hospital during the first 20 weeks of 2020 are taken into account to assess the performances of the proposed three-phase model in the real-world problem. This is accomplished by comparing the current patient schedule for these weeks to the optimum schedule of the three-phase model.

Doctors’ suggestions for elective patients who had surgery in these twenty weeks are considered for surgery duration and length of stay in downstream units. Also, geographical information systems and random forests model are applied for years 2019 and 2020 to predict emergency patient’s arrival time and surgery durations. Regarding the 20 weeks data, the three-phase model is applied. The weekly scheduling and rescheduling models are solved with CPLEX. In addition, GA is applied to find the daily scheduling. Table 3 shows the results of the real-world case. Equation (41) calculates the Improvement percentage of the three-phase model compare to the current patient scheduling.

Table 3 Real-word case results
$$ Improvement_{w} \left( \% \right) = \frac{{Remaining_{w} - Overtime_{w} }}{{Total{\mkern 1mu} number{\mkern 1mu} of{\mkern 1mu} sub - blocks}} \times 100\quad {\text{ }}\forall \,lw\, \in \left\{ {{\text{1}},{\text{2}}, \ldots ,20} \right\} $$
(41)

where \({Remaining}_{w}\) and \({Overtime }_{w}\) indicate the number of remaining sub-blocks after the last elective patient surgery and the total number of overtime sub-blocks after rescheduling, respectively. The results show that by applying the proposed model, the performance of OT can improve by approximately 10.5% on average.

Figure 9 illustrates the elective patients scheduling on the first day that the rescheduling model is needed, in which horizontal and vertical axes indicate ORs and sub-blocks, respectively. For example, in OR1, S4-P3 means that the surgery of the third patient from the fourth surgical group begins at sub-block 8 and finishes at sub-block 18. If an emergency patient arrives at the time of implementing the program and the reserved ORs are full, and the emergency patient cannot wait until the reserved ORs become available, the elective ORs should assign to the emergency and reschedule elective patients. EMERGENCY1 is the first emergency patient that needs to use the elective patient ORs and it is needed to run the rescheduling model. EMERGENCY1 arrives in the hospital at 12:30 PM and cannot wait until reserved ORs become available. Therefore, the surgeries that began before this time are unchanged which are determined in Fig. 10. The first available OR (OR2) will assign to EMERGENCY1, and also the remaining patient will be rescheduled as shown in Fig. 11.

Fig. 9
figure 9

Patients’ daily scheduling

Fig. 10
figure 10

Remaining patients’ scheduling when EMERGENCY1 arrives

Fig. 11
figure 11

Patients’ rescheduling. (Color figure online)

7 Discussion

Limited surgical capacities of hospitals which stems from various factors such as pandemics, and aging make effective OT management critical. Although the ORs planning and scheduling problem is popular research that has been widely studied in the literature, there is still a considerable research gap in this area. It is shown that integration is a missing key in this field of research. Considering the integrated planning is of great importance because many surgeries are canceled due to the lack of enough downstream units which keeps patients from moving forward, and emergency patients unexpectedly arrive at the OT. Therefore, the proposed model takes into account the elective and emergency patients scheduling for OT in a hospital instead of ORs. This OT is composed of multiple ORs, PACU, ICU, CCU, and wards. Also, our three-phase model integrates all the decisions in the OT department.

The results showed that near-optimal solutions can be found for large instances with more than 200 surgeries in a reasonable time. In addition, since the lack of enough downstream units keeps patients from moving forward, significantly decreasing ORs' utilization, the integrated model considers the needed downstream units for patients to ensure the practicality of the proposed model. Moreover, the proposed model guarantees that an emergency patient assigns to an OR within a specific limit time and the rescheduling model ensures that the patient's surgery day will not change, which may result in patient dissatisfaction and anxiety.

By increasing the presence of pandemics, the lack of hospital resources, and the excessive workload of medical staff, in general, are aggravated. Hospital resources must expand as quickly as possible to restore their previous performance level and enable them to continue providing quality care to patients. As a result of the pandemic, health systems are unable to supply hospitals appropriately and rapidly with the necessary sources. Therefore, operations research techniques such as the three-phase model described in this paper can help to ensure that hospital resources are correctly allocated, and patients are treated fairly in such a situation.

It is shown that machine learning is an effective way for predicting the duration of a surgery, which is a nondeterministic variable that depends on various parameters. Surgery durations are clustered based on maximum Silhouette measure for different number of clusters. Four duration scenarios are generated by the clusters and the random forest classifier could successfully predict the scenario based on the surgery characteristics.

8 Conclusion

This paper addresses the integrated elective and emergency patient scheduling and rescheduling model in operating theater (OT), which is consists of multiple operating rooms (ORs), recovery, ICU, CCU, and ward units. Elective surgeries are scheduled in the OTs in advance on which some OT capacity must be reserved for emergency patients who may arrive randomly. Once an emergency patient arrives, it is ensured that ORs will assign to the patient in a limited time, if needed.

For developing schedules for OTs, a three-phase model was presented. Phase 1 allocates the surgical groups to OR blocks on each day of a week. Phase 2 develops a daily detailed patient schedule and sequence. Although some OR capacity is reserved for emergency patients in the weekly schedule, they could use elective patients OR whenever they need. Since the arrival of emergency patients is completely random, geographical information systems and random forest machine learning models were applied to forecast the arrival time and surgery duration of emergency patients. ​Phase 3 is an online model to reschedule elective patients’ daily scheduling when an emergency patient needs to use elective patients OR. Phase 3 is a small sample of Phase 2, which can easily be solved in a reasonable time.

To solve the proposed NP-hard problem, genetic algorithm (GA), as well as particle swarm optimization (PSO), was modified and proposed. In addition, the Taguchi method is utilized for tuning the parameters of the proposed algorithms. The results showed the high accuracy of GA in comparison with PSO, and it is able to find the solution for the real-world problem in an appropriate time with a negligible gap. The proposed three-phase models were applied for a hospital in Tehran as a real-world case. The comparison between the results of the proposed models with the current scheduling for the hospital was performed to identify the performance of the proposed models. Comparing the proposed method to the hospital’s present scheduling reveals that the three-phase model has a significant positive impact on the OT schedule. The results indicated that within the scheduling provided by the proposed models, the performance of the OT department will go up by about 10.5% on average.

Eventually, some suggestions are provided as to future research directions. OTs scheduling can be performed under uncertainty or probabilistic conditions. In addition, applying machine learning models to forecast elective patient’s surgery duration and/or the length of stay in downstream units may help researchers to make improvements in OT management.