Abstract
BACKGROUND:
This research studies a medical staff scheduling problem, which includes government regulations and hospital regulations (hard constraints) and the medical staff’s preferences (soft constraints).
OBJECTIVE:
The objective function is to minimize the violations (or dissatisfaction) of medical staff’s preferences.
METHODS:
This study develops three variants of the three-phase modified bat algorithms (BAs), named BA1, BA2, and BA3, in order to satisfy the hard constraints, minimize the dissatisfaction of the medical staff and balance the workload of the medical staff. To ensure workload balance, this study balances the workload among medical staff without increasing the objective function values.
RESULTS:
Based on the numerical results, the BA3 outperforms the BA1, BA2, and particle swarm optimization (PSO). The robustness of the BA1, BA2, and BA3 is verified. Finally, conclusions are drawn, and directions for future research are highlighted.
CONCLUSIONS:
The framework of this research can be used as a reference for other hospitals seeking to determine their future medical staff schedule.
Keywords
Introduction
Emergency departments, which specialize in treating patients with sudden and unexpected injuries, are a critical part of modern hospitals and feature diverse patients with various medical conditions [1, 2, 3]. The public demand for medical treatment is continually increasing, and insufficient medical resources have led to patient overcrowding and bed shortages in emergency departments. In addition, the stressful work environment and unsatisfactory pay have led to overworked medical personnel and labor shortages [4, 5]. Among such shortages, a lack of nurses impedes patients from acquiring satisfactory medical treatment. Therefore, appropriately deploying emergency staff to take care of patients has become a crucial challenge for all medical institutions [6, 7, 8, 9, 10]. Labor costs have been rising gradually. Numerous industries, including technology, electronics, service, and even medical industries, have incorporated the business model of operating 24 hours a day, 7 days a week, 52 weeks a year to serve their customers. Allocating the labor force into appropriate units is a decision problem for hospital managers [11, 12]. Every day, uncertainty surrounds patient-oriented hospital services. For example, the number and types of patients vary daily, and medical personnel are the frontline workers in medical facilities, contacting patients the most directly and frequently [13, 14]. Incorrectly deploying medical personnel leads to their physical and psychological fatigue and indirectly reduces the quality of medical services. Effectively deploying medical staff substantially affects the quality of medical services [10].
Scheduling medical personnel is a key procedure in healthcare organizations’ human resource allocation. Numerous restrictions have complicated the medical staff scheduling problem (MSSP) [11, 15, 16, 17, 18, 19, 20, 21]. Burke et al. [22] addressed the complexity of the MSSP. Creating shift schedules that create a fair work environment and balance the preferences of medical personnel enhances the work attitudes as well as mitigates the workload of medical personnel profoundly. Developing a medical workforce scheduling system is imperative to creating effective and fair shift schedules, thereby satisfying the preferences of medical personnel. Hospital managers are required to personally schedule medical personnel every month – a process that requires the consideration of government regulations and medical workforce demands; consequently, such a manual scheduling method is time- and labor-intensive. The MSSP has been shown to be a nondeterministic polynomial-time hard (NP-hard) problem [23]. Studies worldwide have investigated medical staff scheduling. The current study develops three three-phase modified bat algorithms (BAs), named BA1, BA2, and BA3, to solve the MSSP involving various constraints, thereby creating a shift schedule that minimizes the dissatisfaction of medical staff’s preferences and provides hospital managers with a reference. In addition to investigating the preferences of medical personnel, this study statistically analyzes the workload of each medical worker in the shift schedule of each hospital sub-department. The preferences and workload are thus incorporated to form a much more satisfying shift schedule for the medical staff.
The remainder of this article is organized as follows. Section 2 reviews the literature on medical staff scheduling using metaheuristics and the BAs. Section 3 defines the research problem, the proposed mathematical model, and the modified BAs. Section 4 uses a case study to validate the proposed methodology described in Section 3. Finally, Section 5 concludes the paper and suggests future directions for research.
Literature review
Medical staff scheduling using metaheuristics
Distinct from the exact optimization methods, metaheuristics are a new type of solution approach inspired by the laws of nature and behaviors of animal communities [16, 24, 25]. For the NP-hard problems, when the problem size is large, the solving time when searching for an optimal solution increases exponentially [26]. As the MSSP has been proven to be an NP-hard problem [23], using the exact optimization methods to solve the large MSSP makes it difficult to obtain an optimal solution within a reasonable timeframe [24, 25]. Furthermore, related studies have shown that metaheuristics obtain a good or near-optimal solution of the MSSP within a reasonable timeframe [20, 27, 28, 29, 30, 31, 32, 33, 34]. Thus, researchers have applied different metaheuristics to solve the MSSPs [28, 31].
The literature on using metaheuristics to solve the MSSP is summarized as follows. Gutjahr and Rauner [27] verified the applicability of the ACO algorithm for solving the MSSP and confirmed the close relationship between the soft and hard hospital constraints and the shift schedule. Xiang et al. [33] showed that the modified ACO algorithm had better performance on the makespan, resources’ working time, individual maximum overtime, and nurses’ overtime than the schedule used in the case hospital. Tsai and Li [28] considered government and hospital regulations and medical personnel preferences by incorporating a two-phase mathematical model and an GA to solve the MSSP in another case hospital. Lin et al. [31] developed a novel preference satisfaction function to calculate the preference of each medical personnel based on the preferred work shifts and preferred days off by applied the GA. Todorovic and Petrovic [30] applied the Bee colony optimization algorithm to solve the MSSP in a case hospital in consideration of hospital regulations, nurse levels, and the restrictions on the nurse level and the number of personnel in each shift. Awadallah et al. [29] developed a hybrid artificial bee colony algorithm to the nurse rostering problem. Wong et al. [8] indicated that the mathematical model enabled the schedule to satisfy all the hard constraints and most of the soft constraints while shortening the scheduling time considerably. Michael et al. [32] considered five soft constraints in their medical staff model and used the competitive nurse roistering agent-based algorithm to search the minimal violations of medical personnel’s preferences. Zheng et al. [20] developed a randomized variable neighborhood search method to solve a nurse rostering problem. Moon [35] suggested that the efficient model of the hospital information system for nurse resource management could forecast optimum nurse resources based on the nursing intensity of the hospitalized patients. Yao et al. [36] used a bat algorithm to find the optimal referral between Hospitals with the unfixed daily patient referral policy.
Development and application of the BAs
Bats, the only mammals capable of powered flight, use a special echolocation principle to avoid obstacles and detect prey in the dark. Yang [37] simulated the relationship between bats’ preying behavior and optimization, thereby formulating the BAs. For the global search, each bat’s position and velocity are updated by using Eqs (1)–(3). For the local search, the position of each bat is updated by using Eq. (2.2), the loudness is reduced by using Eq. (5), and the pulse rate is increased by using Eq. (6).
BA surpassed the GA and particle swarm optimization approach (PSO) methods in terms of its solving time and efficiency [37]. Since its development, BA has been employed to solve optimization problems involving continuous variables effectively [38]. Sheng and Ye [39] recoded and initialized the BA according to the restrictions encountered in solving a discrete permutation flow-shop scheduling problem Meanwhile, Xu et al. [40] improved BA contained a new encoding method and added the crossover and mutation operations in order to increase the searching ability for a dual flexible job-shop scheduling problem. Li et al. [41] used the genetic mutation BA to solve a 0 and 1 knapsack problem according to the characteristics of the problem. Furthermore, Zhou et al. [42] designed a novel complex-valued encoding BA to solve the 0 and 1 knapsack problem. Osaba et al. [43] developed an improved discrete BA to solve the symmetric and asymmetric traveling salesman problems. Cai et al. [44] studied how to improve the optimal solution quality of the standard BA and developed two improved strategies: an optimal forage strategy and a random disturbance strategy. Yahya and Tokhi [45] studied a constrained optimization problem that included multiple constraints and found that violating a constraint could be transformed into adding a penalty for the objective function values by a developed modified adaptive bat sonar algorithm.
Based upon the literature reviewed, although there have been many successful applications of metaheuristics to solve the MSSP with multiple hard constraints, two issues have emerged. First, it usually takes time to find an initial solution without violating hard constraints, especially for multiple hard constraints of the MSSP. Second, when performing the local search of metaheuristics, it is easy to generate an infeasible solution due to the violation of hard constraints for each iteration; this requires a good repair/correction mechanism to make the schedule feasible. The current research deals with the two issues. The first issue is designing an initial solution to satisfy some of the hard constraints in Phase 1, which can avoid designing the corresponding correction mechanisms, thereby reducing repair/correction time. The second issue is designing shift schedule correction mechanisms applied in Phases 1 and 2 in order to repair the violation of hard constraints. Hence, a feasible schedule can be obtained. The detailed procedures of initializing a feasible schedule and making corrections for infeasible schedules are described in Section 3.2.
Methodology
Mathematical programming of the MSSP
This study considers a radiological technologist schedule in the case hospital. The director of the imaging center assigns 16 radiological technologists to support X-ray (X), portable X-ray (P), and computed tomography (CT) services. The notations, hard and soft constraints, and the objective function of the MSSP can be referred to [46, 47]. The mathematical model of the MSSP can be summarized as follows:
Medical staff scheduling problem (MSSP):
Minimize Eq. (27) in [46]
Subject to:
Equations (19)–(23) in [46] for hard constraints. Equations (24)–(26) in [46] for soft constraints.
The purpose of the developed modified three-phase BAs is to solve the MSSP, which means that the developed BAs need to satisfy all hard constraints while minimizing the violation of the weighted soft constraints, thereby improving medical staff’s satisfaction with their monthly schedule.
Solution procedures and corresponding pseudo code of the three-phase modified BAs
In this study, the three-phase modified BAs were developed to solve the MSSP. The modified BAs consisted of the initial shift schedule generation, the shift schedule correction, the shift schedule update, and the workload balance mechanisms. In Phase 1, an initial shift schedule satisfying some of the hard constraints was created; if an infeasible solution was obtained, the shift schedule would be corrected to satisfy all hard constraints. In Phase 2, the initial shift schedule was modified into a new shift schedule through the BAs’ global and local search mechanisms. If the new shift schedule was an infeasible solution, the shift schedule would be corrected to satisfy all hard constraints. Finally, the workload balance mechanism in Phase 3 was implemented to reduce the uneven workload among medical staff. Detailed procedures are introduced in the following paragraphs.
Solution procedures for minimization problems:
The detailed procedures are described as follows:
Phase 1:
Initialize parameters: Before the modified BAs were executed, the initial position, initial velocity, initial pulse rate, initial loudness, maximal and minimal pulse frequency, and maximum number of iterations were established. The initial iteration was set to one. Each bat represented a monthly shift schedule for radiological technologists. Generate a random shift schedule: For each bat, a shift schedule with the number of total medical staff was required to be created. The shifts of all the medical personnel on the first day of the month were generated in random numbers in accordance with the labor demand for every shift of each sub-department in order to satisfy hard constraints, as shown in Eqs (19) and (20) in [46]. The shifts on the second day were generated in the same manner, and the process continued until the schedule for the entire month was complete. In other words, the shift schedule for all the medical personnel was created on a day-by-day basis rather than instantly for the entire month. Assess solution feasibility: The initial shift schedule was examined for any violation of the remaining hard constraints (i.e., violating at least one of Eqs (21)-(23) in [46]). If the schedule violated any hard constraint, then the corresponding shift schedule correction mechanism was incorporated. This procedure was repeated until the shift schedule of each worker in the solution of each bat had satisfied all hard constraints. Hence, Phase 1 ended.
After Phase 1 was complete, the initial feasible solutions (or the shift schedules) were obtained. The shift schedules that satisfied all the hard constraints from Phase 1 were used as the initial solutions in Phase 2 of the modified BAs.
Phase 2:
The detailed procedures are described as follows:
Update the shift schedule: The bat movement in the BAs was enhanced to fit the questions in this study. The subsequently formulated updating method was applied to update the schedules through the use of the frequency and speed generated by each bat as the bat movement [37]. Figure 1 depicts an example of the movement schematic diagram. For example, the original eight-worker schedule is that Worker 1 takes the R1 shift and Worker 5 takes the R2 shift. If the four movements are calculated by the BA, the updated eight-worker schedule will be that Worker 1 takes the R2 shift (Worker 5’s shift Assess whether the random number ( Generate an adjacent solution for local searches: The factors that affected the shift schedule were numerous and complex. To identify the improved solutions effectively in the nearby area, three adjacent-solution generation methods were proposed as three variants of the modified BAs. The merits of these three methods are to maintain the feasibility of Eqs (19) and (20) in [46]. The ranges of influence by these three methods varied; the comparison results are presented in Section 4. The three methods are as follows:
Generation Method 1 (BA1): Select one random day and two random workers to exchange their shifts. Figure 2 illustrates the shift schematic diagram, in which Day 2 was selected and the shifts of Worker 2 and Worker 6 were exchanged, thereby changing the shift of Worker 2 from P1 to P2 and that of Worker 6 from P2 to P1. Generation Method 2 (BA2): Select one random day and one random worker as the referring point. Exchange the shift of the first worker with that of the last worker, that of the second worker with that of the second-to-last worker, etc. Figure 3 illustrates the shift schematic diagram, in which Day 3 and Worker 4 were selected as the referring point for executing the aforementioned shift exchange pattern until the referring point was reached or no more shifts could be exchanged. Generation Method 3 (BA3): Select two random days and exchange the shifts of all personnel on these two days. Figure 4 illustrates the shift schematic diagram, in which the shifts on Day 4 are exchanged with those of Day 21. For Worker 1, Day 4 is changed from R1 to a day off while Day 21 is changed from a day off to R1. The shifts of the other workers were similarly changed. Assess solution feasibility: The current shift schedule was examined for any violation of the hard constraints(i.e., violating at least one of Eqs (21)-(23) in [46]). If the schedule violated these constraints, then the three correction mechanisms were executed; otherwise, go to the next step. Assess whether the random number ( Assess whether the maximum number of iterations was achieved: If the current iteration reached the maximum number of iterations, go to Phase 3; otherwise, go to Step 1 of Phase 2.
Example of updating the shift movement.
Schematic diagram of Adjacent Solution Generation Method 1 (BA1).
Schematic diagram of Adjacent Solution Generation Method 2 (BA2).
Schematic diagram of Adjacent Solution Generation Method 3 (BA3).
Phase 3:
The detailed procedures are described as follows:
Workload balance mechanism:
After the best shift schedule was created using the three variants of the modified BAs, the shift workload of each worker in this month was calculated according to the shifts in the schedule. Because the objective function value was determined in advance, only the same shifts of the same day were exchanged in order to adhere to all the hard constraints. The workload in the studied emergency radiology sub-departments could not be directly compared with each another due to qualitatively different required duties. Calculating the workload involved analyzing the radiology patient data from the past four months with respect to the number of patients in each shift of each sub-department. The consistency of the total patient ratio in each shift of each sub-department with the monthly ratio was verified. Thus, the workload was determined using the total patient ratio.
The workload balance mechanism was applied to reduce the standard deviation of the shift workload of each worker. Figure 5 shows the schematic diagram of the workload balance mechanism, in which Worker 5 has Shift R2 with a workload of 6 on Day 5. The shift of Worker 5 could only be exchanged with that of another worker on the same shift (i.e., Shift 2). Worker 2 has Shift P2 with a workload of 4.5, and Worker 6 has Shift C2 with a workload of 6.5. Because the shift workload and shift weight of Worker 5 were larger than those of Worker 2, the two shifts were exchanged, thereby reducing Worker 5’s workload.
Schematic diagram of the workload balance mechanism.
Shift schedule correction mechanism:
For the shift schedule correction mechanism, a correction mechanism was formulated in the problem-solving process to make every shift schedule solution feasible. The correction processes for adhering to the hard constraints – repairing any violation of Eqs (21)-(23) in [46] – were as follows:
If an infeasible solution needs to be repaired, a repairing procedure will be performed by one of Correction Mechanisms 1, 2, and 3. The repairing procedure goes repeating until the repaired solution satisfies Eqs (21)-(23) in [46]. Example of Correction Mechanism 1. Example of Correction Mechanism 2.

Correction Mechanism 1 (Fig. 6): No worker was allowed more than four consecutive days off for Eq. (21) in [46]. The correction steps are described in the following:
The total number of consecutive days off provided to each worker was calculated. For each worker, if the total number of consecutive days was more than four, then the following procedure was executed. For those workers whose schedules violated Eq. (21) in [46], a random off-duty day from the schedule was exchanged for the working day from another worker on the same day to satisfy Eq. (21) in [46]. The number using Correction Mechanism 1 increased by one. The total number of consecutive days off provided to each worker was recalculated. If the schedules of all the workers satisfied Eq. (21) in [46], the correction was complete; otherwise, Step b was repeated.
Correction Mechanism 2 (Fig. 7): Each worker was required to take at least one day off in every seven-day period for Eq. (22) in [46]. The correction steps are described in the following:
The total number of consecutive working days assigned to each worker in the schedule was calculated. For each worker, if the total number of consecutive working days was equal to or greater than seven, then the following procedure was executed. For those workers whose schedules violated Eq. (22) in [46], a random working day from the schedule was exchanged for the day off of another worker on the same day to satisfy Eq. (22) in [46]. The number using Correction Mechanism 2 increased by one. The total number of consecutive working days assigned to each worker in the schedule was recalculated. If the schedules of all the workers satisfied Eq. (22) in [46], the correction was complete; otherwise, Step b was repeated.
Correction Mechanism 3 (Fig. 8): Workers could not take shift
The shifts of each worker after the shift If any such shift was present, which means violating Eq. (23) in [46], then the following procedure was executed. For those workers whose schedules violated Eq. (23) in [46], their shifts on the previous day were exchanged with those of the other workers assigned with the same sub-department shifts on the previous day. The number using Correction Mechanism 3 increased by one. The shifts of each worker after the shift If the schedules of all the workers satisfied Eq. (23) in [46], the correction was complete; otherwise, Step b was repeated.
Example of Correction Mechanism 3.
Section 4.1 introduces the background of the case hospital, the imaging center, and radiological technologists. Section 4.2 introduces the weight calculation for the corresponding soft constraints based on the radiological technologists’ preferences, which were analyzed using an analytic hierarchy process (AHP) questionnaire. Section 4.3 presents the workload calculation for each shift of each sub-department based on the case hospital’s data. Section 4.4 describes the parameter settings of the modified BAs. Section 4.5 analyzes the results of the BA1, BA2, BA3, and PSO. Finally, Section 4.6 discusses the managerial implications of this study.
Background of the case hospital and imaging center
The case hospital has 1,278 beds and four departments: Internal Medicine, Surgery, Obstetrics and Gynecology & Pediatrics, and Other departments (Chinese Medicine, Dentistry, Emergency Medicine, Radiation Oncology, Radiology, Outpatient Services, etc.). In the Department of Radiology, the director of the case imaging center is responsible for X-ray, portable X-ray, CT, magnetic resonance imaging (MRI), and ultrasound services.
The emergency radiological technologist team requires 3 shifts a day and 7 days a week, making it the most difficult shifts to schedule due to the worker size, shift regulations, and workers’ preferences. Hence, this study focuses on the 16 radiological technologists who work for the emergency radiological technologist team, including X-ray, portable X-ray, and CT services. Based on past experiences for scheduling shifts, the director identified radiological technologists’ useful preferences – namely, three unsatisfied working shift patterns, such as working for two different shifts on consecutive days, working the off-working shift-off pattern, and working the working shift-off-working shift pattern. Therefore, this study formulates these three unsatisfied working shift patterns as soft constraints, as presented in Eqs (24)–(26) in [46], respectively.
Hierarchical analysis weightings
In light of the constraints on the MSSP and the discussions with the director of the case imaging center, an AHP [48, 49] questionnaire on the weights for the soft constraints was designed to measure the importance of these soft constraints to the medical staff.
Based on the results of the questionnaires for investigating the radiological technologists’ preferences, the AHP method was applied to generate the corresponding weights for the soft constraints, as listed in Table 1. The AHP method are detailed in the references [18, 48, 49]. The weights for the soft constraints were used as the weights for the objective function in Eq. (27) in [46] to ensure the generated shift schedule satisfied not only government and hospital regulations, but also most of the preferences of the medical staff.
Weights for the soft constraints
Weights for the soft constraints
This research collected the data of daily patients who required physical examinations in the case imaging center for four months. Table 2 lists the numbers of patients for each shift of each sub-department in the case imaging center. The total number of patients in sub-department
Number of patients in each shift of each sub-department
Workload for each shift of each sub-department
The data collected indicated that the number of patients in each shift of each sub-department varied day by day, thereby causing fluctuations in the radiological technologists’ workload. In this study, the workload of medical staff in each shift of each sub-department was calculated using the average number of patients. In practice, medical staff’s workload may be quite different between weekdays and weekends in some medical departments. Integrating the varied workloads into the MSSP to generate a more balanced workload schedule becomes a challenging issue. Hence, researchers may consider the workload factor for future medical staff scheduling research in order to equalize the workload balance among medical staff.
This research used an Intel(R) Core(TM) i7–6700 CPU 3.40 GHz, DDR3 8GB, and Microsoft Windows 7 computer. The three-phase modified BAs (i.e., BA1, BA2, and BA3) applied in this study were devised using the Hypertext Preprocessor (PHP). Before applying the proposed method, the parameters that affect the mechanisms in the modified BAs must be determined. Yang [37] indicated that selecting parameters requires testing them according to the characteristics of the problem. For the BA, eight parameters (
After Phase 3, results of 18 (
,
,
,
) parameter settings of BA1, BA2, and BA3
After Phase 3, results of 18 (
Note: Bold means the minimal value of the average minimal objective function value of the 18 parameter settings for each BA.
For the modified BAs, the number of bats is closely related to the maximum number of iterations. A higher number of bats increases a chance to achieve the convergence of the objective function value. The 1,001-iteration test was performed 10 times for BA1, BA2, and BA3. As the maximum number of iterations of each individual trail reached about 900 iterations in Fig. 9a–c, the convergence of the objective function value in the modified BAs was achieved. Therefore, to achieve the convergence, the maximum number of iterations was set at 1,000.
a. Curve diagram of the maximum number of iterations for BA1. b. Curve diagram of the maximum number of iterations for BA2. c. Curve diagram of the maximum number of iterations for BA3.
When the number of bats increases, more satisfactory (or smaller) solutions may be obtained, but the solving time may be prolonged. In order to determine an appropriate number of bats, this study conducted 10 parameter settings, from 1 to 10 bats, each of which underwent 20 replications. The results showed that, when the number of bats for the BA1 increased from 1 to 5, the average objective function value decreased, thereby generating a better solution; when the number of bats for the BA1 increased from 5 to 10, the average objective function value decreased slightly. For the solving time, the results in Table 5 showed that, when the number of bats for the BA1 increased from 1 to 10, the solving time increased. Similarly, the same findings were obtained for the BA2 and BA3. Therefore, the number of bats for the BA1, BA2, and BA3 in this study was determined to be five.
After Phase 3, results of varying numbers of bats, from 1 to 10, adapted in the BA1, BA2, and BA3
For easier use and viewing of the schedule, a program interface was designed to enable the user to select the year, month, and number of radiological technologists for scheduling in a schedule, as well as the number of bats and maximum number of iterations. After the parameters are set for the 9 to 10 medical worker scenario, the user can click on the modified BA solution button (i.e., BA3 Run). Once the problem-solving process is complete, the best shift schedule obtained is obtained. After Phase 2 ended, before the workload balance mechanism was performed, the minimum workload for the shifts was 4.99 and the maximum workload of the shifts was 8.22; after the workload balance mechanism was performed in Phase 3, the minimum workload was 5 and the maximum workload was 7.65. Before and after the workload balance mechanism, the mean workload of the 16 workers in the entire month was 6.22; however, the standard deviation of the weights was 0.93 and 0.46 before and after the workload balance mechanism, respectively.
For the same 9 to 10 medical worker scenario, the testing instance was run for 20 replications using the same parameters to verify the stability of the workload balance mechanism for the BA1, BA2, and BA3. Table 6 shows the results of the three variants of the modified BAs after performing the procedures in Phases 1, 2, and 3. The results of the BA1 in Table 6 revealed that, when the objective function values remained, the average standard deviation of each medical worker was 0.95 and 0.45 before and after the workload balance mechanism, respectively, constituting a standard deviation reduction of up to 53%. The results of the BA2 in Table 6 revealed that, when the objective function values remained, the average standard deviation of each medical worker was 0.94 and 0.46 before and after the workload balance mechanism, respectively, constituting a standard deviation reduction of up to 51%. The results of the BA3 in Table 6 revealed that, when the objective function values remained, the average standard deviation of each medical worker was 0.99 and 0.48 before and after the workload balance mechanism, respectively, constituting a standard deviation reduction of up to 52%. Therefore, the workload balance mechanism applied in the BA1, BA2, and BA3 of this study effectively reduced the workload differences among the medical personnel.
Furthermore, in Table 6, BA3 had the smallest average objective function value, and all three BA variants could be executed within 150 seconds. Since the means of BA1 and BA2 failed to the normality test, the Mann-Whitney
In order to analyze the three correction mechanisms, the results in Table 8 showed that, for the same 9 to 10 medical worker scenario with 20 replications, the average number of Correction Mechanism 1 performed in Phases 1 and 2 was 4,543, 4,140, and 3,955 times for BA1, BA2, and BA3, respectively, in order to repair the violation of Eq. (21) in [46]. The average number of Correction Mechanism 2 performed in Phases 1 and 2 was 80,560, 78,016, and 78,814 times for BA1, BA2, and BA3, respectively, in order to repair the violation of Eq. (22) in [46]. Finally, the average number of Correction Mechanism 3 performed in Phases 1 and 2 was 1,532,230, 1,487,982, and 1,482,923 times for BA1, BA2, and BA3,
Solutions and solving time of BA1, BA2, and BA3 after Phase 3
Solutions and solving time of BA1, BA2, and BA3 after Phase 3
Note: Std represents standard deviation.
Comparisons of the average objective function values of BA1, BA2, and BA3 after Phase 3 by the Mann-Whitney
Average number of corrections and updates performed in different phases of the BA1, BA2, and BA3
respectively, in order to repair the violation of Eq. (23) in [46]. The results showed that Correction Mechanism 3 required being performed more times to repair Eq. (23) in [46], which included three sub-constraints: workers must not take shift 1 the day after taking shift 2, workers must not take shift 1 the day after taking shift 3, and workers must not take shift 2 the day after taking shift 3. Furthermore, these results implied that, if a better correction mechanism can be developed to repair the violation of Eq. (23) in [46], the solving time may be reduced proportionally due to the reduction of the number of times the developed correction mechanism was performed.
In order to test the robustness of the BA1, BA2, and BA3, the authors conducted two scenarios, involving 9 to 10 and 11 to 12 medical workers, and compared results to the PSO method. The PSO method consisted of the same parameters, such as five particles and the maximum iteration
Comparisons of the average objective function values and solving time of the BA1, BA2, BA3, and PSO in the 9 to 10 medical worker scenario
Comparisons of the average objective function values of BA1, BA2, BA3, and PSO by the Mann-Whitney
Since the mean of BA3 did not pass the normality test, the Mann-Whitney
In the 11 to 12 medical worker scenario, Table 11 shows that the average objective function values of the BA1 were between 5.72 and 7.74 while the standard deviation of the objective function values ranged between 0.45 and 0.70; the average objective function values of the BA2 were between 5.28 and 6.07 while the standard deviation of the objective function values ranged between 0.38 and 0.64; and the average objective function values of the BA3 were between 4.72 and 5.59 while the standard deviation of the objective function values ranged between 0.39 and 0.60. The results indicated that, for the BA1, BA2, and BA3, the average objective function value and the standard deviation objective function value fell in a small range of values. This meant that the BA1, BA2, and BA3 were robust.
Comparisons of the average objective function values and solving time of the BA1, BA2, BA3, and PSO in the 11 to 12 medical worker scenario
Since the mean of PSO did not pass the normality test, the Mann-Whitney
Comparisons of the average objective function values of BA1, BA2, BA3, and PSO by the Mann-Whitney
In this study, a favorable mathematical model was provided, an interface enabling users to easily use and view the shift schedule was established, and the three variants of BAs were applied to solve the MSSP. Incorporating the modified BAs required discussing the current state of the case hospital with managers and understanding the challenges and scheduling requirements of the hospital. Thus, a reference was provided to the managers for the results following a change in future scheduling.
Three variants of the modified BAs were proposed in this study. Using the BA3 obtained more satisfactory solutions overall than did using either the BA2, BA3, or PSO while minimizing worker dissatisfaction with the shift schedule. Without compromising the average objective function value, the workload of the medical personnel was balanced. Thus, each worker received a more evenly distributed workload.
Regarding the medical personnel preference questionnaire, because each worker’s schedule preferences varied, an AHP as well as expert input was used to establish the critical and influential preference factors. In addition, the consistency of the factors was verified according to their hierarchical weightings, thereby ensuring that the factors were qualified for representing the experts’ mutual opinions. Thus, hospital managers could adjust the shift schedule according to the specified preferences of the medical personnel and ultimately shorten the scheduling time. However, overly high average objective function values must be avoided to reduce medical personnel’s dissatisfaction with the schedule.
Conclusions and future research
In this study, the original BA was adapted and three modified BAs with varying adjacent solution generation methods were developed. These new variants of BAs allowed for creating a shift schedule that satisfied the hard constraints arising from government and hospital regulations while preventing errors in manual scheduling. Applying the BA3 in the MSSP yielded a better shift schedule than the BA1, BA2, PSO and shortened the scheduling time considerably from the manual scheduling to computer scheduling based on the case imaging center’s schedule setting. The manual scheduling usually takes 1 to 2 days for the director of the imaging center to generate a monthly schedule. As part of the interview of the medical personnel in the case hospital, an AHP questionnaire was distributed to determine their schedule preferences and thereby establish soft constraints. The weighted values of the preferences were then calculated using the AHP. Thus, the weighted values were no longer scores derived intuitively and the shift schedule satisfied the preferences of the medical personnel more favorably and flexibly. In this study, medical personnel’s schedule preferences and their workload level were combined and solved consecutively to improve shift schedule fairness and flexibility. Currently, numerous medical facilities require incorporating systematic, consistent medical staff scheduling models like the one incorporated in this study. This model can reduce the time and resources required for manual scheduling not only in medical staff scheduling systems, but also in other types of weighted scheduling processes.
According to the challenges and limitations encountered in this study, three suggestions are proposed for future studies. First, workers with a large workload in one month may be provided with a decreased workload in the following month, thereby improving the fairness of the shift schedule. Second, the program logics, along with bat mechanisms and parameters, can be improved to obtain more desirable solutions. Third, as the workload balance issue becomes more and more important for workers in practice, researchers should integrate the workload balance into the objective function in their future research. In this way, the results will generate an optimal schedule with a less standard deviation of the workload among workers, thereby generating a more balanced workload schedule for workers.
Footnotes
Acknowledgments
This research is supported by the Ministry of Science and Technology – Taiwan, R.O.C under contract no. MOST 109-2221-E-033-028.
Conflict of interest
None to report.
