scieee AI-readable full text Open interactive document viewer

A decomposition heuristic for rotational workforce scheduling

Becker, Tristan

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Becker, Tristan Article — Published Version A decomposition heuristic for rotational workforce scheduling Journal of Scheduling Provided in Cooperation with: Springer Nature Suggested Citation: Becker, Tristan (2020) : A decomposition heuristic for rotational workforce scheduling, Journal of Scheduling, ISSN 1099-1425, Springer US, New York, NY, Vol. 23, Iss. 5, pp. 539-554, https://doi.org/10.1007/s10951-020-00659-2 This Version is available at: https://hdl.handle.net/10419/288361 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/ Journal of Scheduling (2020) 23:539–554 https://doi.org/10.1007/s10951-020-00659-2 A decomposition heuristic for rotational workforce scheduling Tristan Becker1 Published online: 30 June 2020 © The Author(s) 2020 Abstract In rotational workforce planning, a schedule is constructed from a sequence of work and rest periods. Each employee starts at a different part of the schedule, and after a certain amount of time, the schedule repeats. The length of the schedule increases with a higher number of employees. At the same time, various constraints on work sequences and days off have to be considered. For a large number of employees, it is difficult to construct a schedule that meets the requirements. It is important to ensure low solution times independently of the problem instance characteristics. In this work, a novel decomposition approach for rotational shift scheduling is proposed. The decomposition exploits the fact that most constraints in rotational workforce scheduling are imposed on the work shift sequence. By considering a fixed set of blocks to cover the demand, the problem complexity can be greatly reduced. Given afixed set ofblocks, we propose a network model that determines whether a feasible sequence of shift blocks exists. The decomposition approach is applied to the problem structure of the Rotating Workforce Scheduling Problem but may be extended to different problem structures. In a computational study, the decomposition approach is compared to a mathematical formulation and previous exact and heuristic approaches. Computational results show that the decomposition approach greatly outperforms previous heuristics on the standard benchmarks. Keywords Staff scheduling ·Integer programming ·Decomposition ·Rotating Workforce Scheduling Problem 1 Introduction Human resources are typically one of the most expensive resources of a company. Shift planning thus plays a vital role for efficient operations. A sufficient staffing level must be ensuredwhilelegalandpractical constraintsare respectedfor each individual schedule. One of the most common requirements in shift scheduling is to work several consecutive days, as this typically implies multiple consecutive days off. Generally, it is possible to employ either a manual or rotational schedule. With a rotational schedule, every employee works the same schedule lagged in time. After a certain number of days, the rotational schedule repeats. Rotating schedules are especially well suited for organizations with static workforce demand, a work load that exceeds the working time of a single employee (e.g., 3 shifts per day, seven days a week) and homogeneous skill levels among employees. This structure is often found in manufacturing and BTristan Becker [email protected] 1RWTH Aachen University, School of Business and Economics, Chair of Operations Management, Kackertstraße 7, 52072 Aachen, Germany organizations from the public sector such as emergency medical services, fire, and police departments (Laporte 1999). Once a suitable rotational schedule has been found, planning is greatly simplified as the manager and employees repeat the same schedule (Becker et al. 2019). An exemplary rotational schedule and the resulting coverage are depicted in Fig. 1. The schedule covers a demand pattern that repeats after seven days. Staffing requirements for each shift type are shown at the bottom. The schedule requires a number of nine employees who start with an offset of seven days, i.e., every employee could start at the beginning of a different row. After a number of 63days, the schedule repeats from the employee’s point of view. In each row of the schedule, the last day is adjacent to the first day of the next row. While rotational schedules reduce planning efforts, negative health effects and employee dissatisfaction are often reported (Åkerstedt 2003). For shift scheduling, there are different commercial software packages available. Important aspects of computational methods for workforce scheduling comprise the flexibility and computational time required to facilitate an interactive planning process. Standard software often cannot provide the required flexibility for rotational workforce scheduling prob- 123 540 Journal of Scheduling (2020) 23:539–554 Fig. 1 An exemplary weekly rotational workforce schedule (feasible solution for a benchmark instance from Musliu et al. (2018), M = morning, A =afternoon, N =night) lems or requires a high amount of computational time (Burke et al. 1999; Musliu 2006). A standard problem structure for the Rotating Workforce Scheduling Problem (RWS) is proposed by Musliu (2006). In addition, a set of benchmark problems is presented that is inspiredbyproblemsfrompracticeto evaluatecomputational methods for the RWS. Recently, the benchmark set has been further extended (Musliu et al. 2018). Several studies propose exact and heuristic methods for the RWS (Triska and Musliu 2011; Mutingi and Mbohwa 2015a; Erkinger and Musliu 2017; Musliu et al. 2018). Given the importance of rotational shift scheduling, efficient computational methods are a continuing interest of research. We propose a novel state-of-the-art decomposition heuristic that is applicable for rotational shift scheduling problems and other types of scheduling problems where a cyclic plan is desired.The decomposition is appliedto the RWS toillustrate the benefits for computational performance. The decomposition approach is very efficient for feasible instances from the RWS benchmark set and greatly improves the results of previous heuristics. The contribution of this study is threefold: – Innovative decomposition approach for rotational scheduling problems – Novel state-of-the-art heuristic for the RWS – Comparison of exact and heuristic solution approaches for the RWS in a computational benchmark study The remainder of this paper is structured as follows: Sect. 2 provides a literature review on solution approaches for shift scheduling with a focus on the RWS. A formal statement and mathematical formulation of the RWS are given in Sect. 3. The mathematical formulation serves as the basis for the discussion of the decomposition approach. The decomposition approach consists of a master and a subproblem and is explained in detail in Sect. 4. A decomposition heuristic using a heuristic solution method for the master problem and an exact method for the subproblem is described in Sect. 5. Section 6compares the performance of the decomposition heuristic with previous results and the mathematical formulation from Sect. 3using the standard benchmarks for RWS. Finally, Sect. 7gives a conclusion and provides some perspective for future research on the decomposition approach. 2 Literature review A rich body of literature exists on the theory and practice of shift scheduling. Surveys are provided by Ernst et al. (2004) and Van Den Bergh et al. (2013). Computational methods of shift scheduling have been applied to various problems in practice. Many studies have focused on the problem of nurse rostering. The nurse rostering problem is a complex shift scheduling problem that considers many practical and legal constraints, as well as employee preferences. Typically, employee preferences and the violation of some constraints are considered as objective. Owing to the heterogeneous qualifications among nurses, schedules are mostly generated for a limited amount of time. Due to the complexity and variety of features found in nursing wards, the nurse rostering problem remains one of the most studied problems in shift scheduling literature (Burke et al. 2004). Therefore, numerous papers on solution methodology and decomposition approaches focus on nurse rostering problems. The RWS is a more specialized problem. The objective is to find a feasible schedule that provides the required staffing level at all times with a homogeneous workforce. No violation of hard constraints is allowed. We focus this literature review on solution approaches for shift scheduling and the generation of rotational workforce schedules. 2.1 Solution approaches for shift scheduling Many variants of shift scheduling problems have been investigated by the literature. Solution approaches that have been specifically applied to the RWS are discussed in Sect. 2.2. Valouxis and Housos (2000) investigate solution methodology for the monthly creation of nurse rosters. They formulate an integer program that is difficult to solve with standard commercial software. They find that preferences for specific worksequencescannot be efficientlymodeled byintegerprogramming. A hybrid solution method that combines local and tabu search is used to obtain acceptable solutions from a 123 Journal of Scheduling (2020) 23:539–554 541 practical perspective. Brucker et al. (2010) propose a decomposition approach for non-cyclic nurse scheduling. In the first stage, work sequences with a high quality regarding the nurse preferences are selected. The second stage iteratively constructs a schedule by combining sequences that meet constraints for the overall roster. Local search techniques are applied to improve the initially constructed roster. Rocha et al. (2014) discuss a constructive heuristic for rotational staff scheduling in the glass industry. Their approach finds a sequence of blocks that each comprise multiple work shifts. They note that the number of breaks between blocks is important to obtain a feasible solution. An approach to assess the feasibility of the problem based on the parameters and the resulting number of shift breaks is presented. Their study focuses the case of a constant workforce demand. They assume a requirement of exactly one shift group per day and shift. Brucker et al. (2011) analyze the complexity of several classes of personnel scheduling problems. Several mathematical models that cover different personnel scheduling cases are presented. The models are differentiated by polynomial solvable and NP-hard problems. Kiermaier et al. (2016) present a stochastic optimization approach for rotational rostering in the service industry. While the days and shifts are fixed, the starting times may be adjusted in the short term to react to changes in demand. A multi-stage stochastic program is proposed, but it turns out to be intractable. Two approximations are presented that reduce the program to a two-stage problem. Various decomposition strategies have been applied to shift scheduling problems. Furthermore, the idea to aggregate sequential work shifts to shift blocks is frequently used in solution approaches. 2.2 Rotational workforce schedules An early survey of rotational workforce scheduling is provided by Baker (1976). They differentiate between shift scheduling and days-off scheduling. Days-off scheduling determines the work days only, while shift scheduling determines the shifts assigned for each work day. Tour scheduling is the integrated assignment of both work days and shifts (Ernst et al. 2004). Laporte et al. (1980) formalize some conditions for rotational schedules and propose an integer programming-basedalgorithm to create rotational schedules. They note that an essential property of the structure of rotational schedules is that there is an alternating sequence of consecutive work shifts and days off. Bartholdi et al. (1980) introduce the (k, m)-scheduling problem. It involves finding a schedule of length mwhere every employee works a number of ksuccessive days. Millar and Kiragu (1998) present a mathematical model for cyclic and non-cyclic nurse scheduling. They construct a network where each node resembles either a sequence of work shifts or days off. The mathematical formulation finds a shortest path in the network with side constraints to construct a schedule. Rocha et al. (2013) propose a new mathematical formulation for cyclic staff scheduling. A new approach for the formulation of work sequence constraints is incorporated into the model. The practical applicability is illustrated by two case studies. Balakrishnan and Wong (1990) present a network model for the Rotating Workforce Scheduling Problem (RWS). Musliu et al. (2002) propose a four step decomposition approach for the RWS. They begin by choosing a fixed set of allowable lengths for work blocks. Then, a schedule that assigns work days and days off is constructed by selecting a particular sequence of work blocks and days off. The construction of the schedule also takes into account weekend preferences. Next, feasible shift sequences are enumerated given the possible work block sequences and shift sequences are assigned to work blocks so that the staffing requirements are met. It is noted that different schedules can be constructed by rearranging the order of work blocks. Moerz and Musliu (2004) propose a genetic algorithm for the RWS.Newmutation and crossover operators are presented. Musliu (2006) presents a unified problem structure and benchmark set of 20 testinstances, whichare inspired byreal rotationalworkforce scheduling applications. Several problem instances from the literature are included in the benchmark set. They propose new heuristic methods for the automatic generation of rotational workforce schedules. Experiments show that a tabu searchheuristicwithaconflictminimizationstrategy(MC-T) is well suited for solving the RWS.TheMC-T greatly outperforms standard software for shift scheduling. Although many problem instances are solved quickly, there is still a high solution time for several instances. Various algorithms and methods have been applied to the benchmark set provided by Musliu (2006). These include integer programming, constraint programming, genetic algorithms, iterated local search, and satisfiability modulo theories. In the following, several heuristic and exact approaches for the RWS are discussed. Most of these approaches were specifically developed for the problem structure of the RWS. Musliu (2011) apply an iterated local search method to the RWS. For some instances, their approach is faster than the state of the art, while the overall performance is comparable. Triska and Musliu (2011) propose a constraint programming formulation for the RWS. As a constraint programming formulation, it represents an exact method. For some small problem instances, the solution times are lower than those of the MC-T. Overall, it is not competitive with the solution times of the MC-T. Mutingi and Mbohwa (2015a) and Mutingi and Mbohwa (2015b) apply variants of an evolutionary algorithm to the RWS. The algorithms are inspired by a biological metamorphosis process. In comparison with the MC-T, the mean solution time of their best performing algorithm is less than half as high. 123 542 Journal of Scheduling (2020) 23:539–554 Rocha et al. (2013) demonstrate that their general mathematical formulation for cyclic staff scheduling is also applicable to the RWS, although it was not specifically developed for the RWS. However, many problem instances cannot be solved within the time limit. Erkinger and Musliu (2017) investigate satisfiability modulo theories as an option for an exact method to solve the RWS. A number of instances of the test set can be solved quickly. Yet, for some instances no feasible solution is found within the time limit. Different mathematical and constraint programming formulations for solving the RWS are evaluated by Musliu et al. (2018). The mathematical formulations are solved with Gurobi, and the best performance is obtained by the use of a deterministic finite automaton constraint to ensure feasible shift sequences. While this type of constraint is typically used in constraint programming, they note that Gurobi is able to transform the mathematical formulation to a network model which can be solved very efficiently. The best overall performanceis obtainedbya constraintprogrammingformulationthat is solvedwithChuffed.Inthis formulation,a direct modeling approach is pursued, where there is mostly a one- to-one correspondence between the model constraints and practical restrictions. To strengthen the formulation, valid inequalities are added. Furthermore, the benchmark set proposed by Musliu (2006) is extended by an additional 1980 randomly generated problem instances of realistic structure so that an overall of 2000 instances are obtained. Extensive computational experiments are conducted to compare the mathematical and constraint programming formulations to other exact and heuristic methods for the RWS. The computational experiments establish their constraint programming formulation as the fastest state-of-the-art method to obtain solutions for the RWS. Furthermore, the experiments show that mathematical programming is most robust to detect infeasibility. Musliu (2013) note that the most efficient solution method is dependent on the specific instance characteristics. Using a larger test set, they apply different machine learning techniques to select the solution method on the basis of the instance characteristics. 2.3 Implications Many solution approaches for shift scheduling have been proposed. Decomposition approaches were often successfully used for nurse rostering problems. A number of solution approaches have been applied for the RWS.Only recently solution approaches were proposed that provide lower solution times in comparison with the heuristic proposed alongside the benchmark set (Musliu 2006; Mutingi and Mbohwa 2015b; Musliu et al. 2018). The computational time required to generate a feasible schedule is an important preference of decision makers (Burke et al. 1999). Thus, it is important for solution methods to generate feasible schedules quickly independent of the problem instance. Moreover, there is further potential to reduce the computational times of the state-of-the-art solution methods. This paper fills the gap by proposing a novel decomposition approach which is applied to the RWS. It differs from the existing decomposition approach proposed by Musliu et al. (2002), since different constraints are taken into account by the master and subproblem. In particular, the decomposition approach presented in this paper takes the staffing requirements into account in the master problem. In that way, the master problem has to consider the complete set of feasible work shift sequences. As a result, there is no necessity for an intermediate step which determines the feasible shift sequences for the selected work days and the subproblem does not have to account for the staffing requirements. In addition, an exact approach based on a network model is used to efficiently enumerate the solution space of the subproblem. The novel decomposition approach proposed in this paper is applied to the RWS, and computational results indicate that it is very efficient for feasible instances in comparison with the current state of the art using the recently proposed benchmark set. 3 Problem description and mathematical formulation In the following, we give a formal statement of the Rotating Workforce Scheduling Problem (RWS) (Musliu 2006). Table 1gives an overview of the parameters used in the problem description and mathematical formulation. 3.1 Problem description The RWS involves the construction of a schedule for a given workforce and number of days that exactly covers all shift demands on each day. Shift demands are specified for each shift on every day separately. Different shift types may comprise morning, afternoon, and night shifts. In a problem instance of the RWS, the workforce can be either split into homogeneous groups or each employee can be considered explicitly. More formally, given a set of employees E,a schedule has to be derived over a number of days that can be repeated to cover the demand Tds for each day dand shift type s. The length of the schedule is defined by the number of employees and the offset between the start days of each employee. For example, in Fig. 1a schedule for 9 employees is shown. The offset between the start days is seven, so that everyemployeestarts withthefirst shiftinher respectiverow. Looking at Fig. 1column-wise, all shifts in each column are worked simultaneously so that the workforce demand is covered. The average weekly working time is implicitly defined 123 Journal of Scheduling (2020) 23:539–554 543 Table 1 Declaration of used sets, parameters, and variables Name Description d∈DDays of the schedule d∈GDays of the planning period s∈SShifts e∈EEmployees Offset between employee start days Tds Staffing requirement on day din shift s mindMinimum number of consecutive days off required maxdMaximum number of consecutive days off allowed minwork Minimum number of consecutive work days required maxwork Maximum number of consecutive work days allowed minwork sMinimum number of consecutive shifts of type sallowed maxwork sMaximum number of consecutive shifts of type sallowed F2Set of forbidden shift sequences of length 2 F3Set of forbidden shift sequences of length 3 xds 1, if shift son day dis part of the schedule, 0 otherwise yd1, if a sequence of minwork shifts starts on day d, 0 otherwise zds 1, if a sequence of minwork sshifts of type sstarts on day d, 0 otherwise by the parameters, since the number of employees and days included in the schedule is known, as well as the total number of shifts to be covered. Formally, the schedule comprises a numberof|E|timeperiodswithalengthofeach.Typically, a number of seven days is selected for the length of a single time period . This ensures that the schedule rotates over the same weekdays. After a number of |E|·days, the schedule repeats. At this point, every employee has worked the complete schedule so that an equal work distribution among the workforce is ensured. The demand Tds is specified for every day d∈G, where Gis defined as {1,...,}. If there is a repeating pattern in the demand that comprises more than seven days, a longer time span has to be selected for the value of . The schedule has to adhere to various constraints with regard to work shift sequence and days off. The minimum and maximum number of days for each work shift sequence isdefined by minwork andmaxwork,respectively. That is,each shift sequence has to include at least minwork and at most maxwork consecutive days. Between shift sequences, there must be at least a number of minddays off and at maximum a number of maxddays off. A shift sequence may consist of different shift types. Within a work sequence, the minimum and maximum number of consecutive shifts of type sis defined by minwork sand maxwork s, respectively. Finally, there are forbidden shift sequences of different length. F2 denotes the set of forbidden shift sequences of successive shifts. These shift sequences may not occur in a shift block. Shift sequences included in F3relate to forbidden sequences between two shift blocks with only one day off in between. A forbidden shift sequence can be, e.g., a night shift that is followed by a morning shift on the next day, or an afternoon shift, that is followed by a day off and a morning shift. 3.2 Mathematical formulation We propose the following mathematical formulation for the RWS. The objective is to find a solution that satisfies all constraints. Several mathematical formulations with similar features are proposed by Rocha et al. (2013); Musliu et al. (2018); Becker et al. (2019). It is a direct formulation in the sense that most practical constraints can be directly mapped tomathematicalconstraints.Thus,toapplythismathematical formulation, a problem must have the characteristics detailed in the previous section.  d∈D|((d−1)mod )+1=d xds=Tds ∀d∈G,s∈S(1)  d∈{d,...,d+maxd} s∈S xds≥1∀d∈D(2) 1− s∈S xds ≤2− s∈S (x(d−1)s+x(d+1)s)∀d∈D(3) 123 544 Journal of Scheduling (2020) 23:539–554  d∈{d,...,d+maxwork} s∈S xds≤maxwork ∀d∈D(4) yd≤d∈{d,...,d+minwork −1}s∈Sxds minwork ∀d∈D(5) x(d+minwork −1)s≤ d∈{d,...,d+minwork −1} yd∀d∈D,s∈S(6) xds1≤1−x(d+1)s2∀(s1,s2)∈F2,d∈D(7) xds1≤1+ s∈S x(d+1)s−x(d+2)s2∀(s1,s2)∈F3,d∈D (8)  s∈S xds ≤1∀d∈D(9)  d∈{d,...,d+maxwork s} xds≤maxwork s∀d∈D,s∈S(10) zds ≤d∈{d,...,d+minwork s−1}xds minwork s ∀d∈D,s∈S(11) x(d+minwork s−1)s≤ d∈{d,...,d+minwork s−1} zds∀d∈D,s∈S (12) xds,yd,zds ∈{0,1}∀d∈D,s∈S(13) It follows from the previous discussion that the set of days Din the rotational schedule is defined as {1,...,·|E|} for the set of employees Eand an offset between employee start days. It is a cyclic set and repeats after ·|E|days. When the schedule is implemented, the start day of each employee is defined by dstart e=·(e−1)+1∀e∈E.Asa consequence, every day dof the schedule provides coverage for day (d−1mod)+1∀d∈D. Let variable xds ∈{0,1} denote whether shift type son day dis part of the schedule. Then, constraints (1) ensure that each shift is covered on every day by the required number of employees Tds. To ensure that no sequence of days off violates the maximum number of consecutive days off, Constraints (2)are introduced. At least one shift needs to be scheduled in every sequence of days of length maxd+1. For the case mind=2, Constraints (3) are introduced. If no shift is scheduled on day d, at least one of the days {d−1,d+1}must not contain any shifts. Constraints (4) ensure no shift sequence exceeds a length of maxwork. In combination, Constraints (3) and (4) imply that shift sequences are separated by at least a single day off. Each shift sequence needs to include at least minwork shifts. Let variable yd∈{0,1}denote whether a shift sequence of a length of at least minwork starts on day d. Constraints (5) only allow a value yd=1 if a number of minwork are scheduled on days {d,...,d+minwork −1}. Then, Constraints (6) ensure that every shift is part of a shift sequence that respects the minimum length. Forbidden shift sequences of length two are considered by Constraints (7). Constraints (8) are used to exclude forbidden sequences that span three shifts, where the second day of the sequence is a day off. Only one shift can be worked per day (Constraints (9)). Further,the minimumand maximumlengthof shiftblocks minwork sand maxwork sof type shas to be respected. Constraints (10) ensure that no shift block exceeds the maximum length per type. Let value zds ∈{0,1}denote whether a shift sequence of type swith a length of at least minwork sbegins on day d. Then, Constraints (11–12) enforce the minimum shift block length per type sanalogously to Constraints (5– 6). Finally, Constraints (13) limit the decision variables to their domains. 4 Decomposition approach In this section, a formal description of the decomposition approach is given. The algorithmic framework is separately described in the next section. Table 2gives an overview of the symbols used in this section. A feasible solution to an instance of the RWS is characterized by a sequence of shift blocks separated by sequences of days off. This is explained by the fact that employees and in turn decision makers value schedules, where employees work sequences of shifts and recover during sequential days off. Owing to the various constraints regarding the minimum and maximum length of shift blocks and undesirable shift sequences, the set of feasible shift blocks is highly constrained. Thus, the RWS is split into two subproblems: –Master problem Find a combination of tuples with a specified start day and shift block (g,b)such that the staffing requirements Tds are covered. –Subproblem Construct a schedule by finding a feasible sequence of block tuples (g,b)based on the solution of the master problem. 4.1 Master problem The set of feasible shift blocks can typically be easily enumerated. Let b∈Bdenote the set of shift blocks that respect all constraints on shift sequences with regard to the specific problem instance. The master problem is defined as finding a set of shift blocks that meet the staffing requirements Tds exactlyonevery daydand ineveryshift s.Notethat coverage for every day of the staffing requirements can be provided by a shift block starting on day g∈G. For example, assume =7. Given a single shift type 1, that is denoted by Min the following, a shift block could comprise, e.g., the sequence MMM. If this shift block is scheduled on day 1, coverage is provided for days {1,2,3}. With start day 7, coverage would be provided on days {7,1,2}. The problem represents an extension of the exact 123 Journal of Scheduling (2020) 23:539–554 545 Table 2 Declaration of used sets, parameters, and variables Name Description b∈BFeasible shift blocks w∈WSubtours n∈NSet of nodes g∈GShift block start days Cds Set of tuples (g,b)that contain shift son day d KSet of edges (i,j)that must not be used dij Additional employees required if node jsucceeds node i λgb Number of times shift block bstarts on day g vij ∈{0,1}1 if node jis visited after node i; 0 otherwise Fig. 2 Exemplary covering of staffing requirements by use of a set of shift blocks covering problem, where each element has to be covered a specified number of times and each set can be selected multiple times. Coverage requirements are specified by Tds. The sets are defined by every combination of start day and block (g,b). Figure 2shows an example for the master problem. Workforce requirements Tds are shown on the upper left side. An exemplary subset of feasible shift blocks Bthat is defined by the constraints of the RWS is shown on the right side. One possible solution to the master problem is shown on the left side. In each row, a combination of start day gand block bis shown. In terms of the mathematical formulation from section 3.2, the master problem ensures that the staffing requirements (1), constraints on the length of shift blocks (4– 6), constraints on forbidden shift sequences in shift blocks (7), and constraints on the length of shift sequences of each type (10–12) are satisfied. The master problem neglects only constraints on consecutive days off and sequences of shift blocks. Formally, the master problem can be stated as follows: Let λgb ∈N0denote the number of times shift block bstarts on day g. Set Cds contains the tuples of start day and shift block (g,b)that provide coverage for shift son day d.Thesetof solutions of the master problem has to satisfy the following equations:  (g,b)∈Cds λgb =Tds ∀d∈G,s∈S(14) In case the master problem is infeasible, the overall RWS instance is also infeasible. Typically, there are many solutions to the master problem for a feasible instance of the RWS. However, there may not be a feasible sequence of shift blocks for a solution of the master problem, as it may not be possible to find a sequence that satisfies constraints on minimum and maximum number of days off and conflicts between shift blocks. 123 546 Journal of Scheduling (2020) 23:539–554 Solutions also may vary greatly in structure. Consider, e.g., a solution for the master problem with shift block AAANNN. The shift block could always be split into two parts AAA and NNN, while maintaining feasibility for the first problem if the work shift sequence constraints are satisfied for the two parts. Generally, a single block with many shifts will lead to a shorter schedule compared to two single blocks, as there are no days off in between. Given conflicts between shift blocks, a lower number of blocks reduce the potential number of conflicts, but the number of breaks is also reduced. Consequently, it is important to find solutions of different structures to search the solution space effectively. 4.2 Subproblem For a given solution of the master problem, the subproblem determines whether a feasible sequence of shift blocks exists. In terms of the mathematical formulation from Sect. 3.2,the subproblem has to only consider constraints on consecutive days off (2–3) and constraints on forbidden sequences of shift blocks (8). Some examples for feasible and infeasible sequencesofstartdayandshiftblocksareillustrated inFig.3. Ina feasible sequence ofshiftblocks (g,b)each combination of start day and block (g,b)needs to be included λgb times. Furthermore, the number of days off has to satisfy the constraints on minimum and maximum number of consecutive days off (2–3) and no forbidden sequences of shift blocks must occur (8). It is important to note that the number of employees required for the schedule may vary depending on the sequence of shift blocks (g,b). A schedule that uses a lower or higher number of employees implies a higher or lower weekly workload, respectively, since the same staffing demand is covered by a different number of employees. To obtain a rotational schedule for a workforce with a number of |E|employees, the length of the sequence has to be exactly |E|·. If the subproblem is feasible for a given solution of the master problem, a solution for the RWS is obtained. The subproblem can be seen as the problem of finding a Hamiltoniancycle1withasumofedgeweightsthatisexactly |E|in a graph with node precedence constraints. Let Gbe a graph that contains a node n∈Nfor every shift block (g,b) in the solution of the master problem. If λgb >1, multiple nodes are added for shift block (g,b)according to the value of λgb in the solution of the master problem. The cardinality of Gis thus defined as g∈Gb∈Bλgb, i. e., the number of blocks in the master problem solution. To ensure coverage of the staffing requirements (Eq. 14), every shift block (g,b) has to be included into the schedule. The subproblem can be 1AHamiltonian cycle isacyclethatcontainsallnodes(Bollobas2013). stated as follows:  i∈N j∈N dijvij =|E|(15)  j∈N|i= j vij =1∀i∈N(16)  i∈N|i= j vij =1∀j∈N(17)  i∈w j∈w vij ≤|w|−1∀w∈W(18) vij =0∀(i,j)∈K(19) vij ∈{0,1}∀i∈N,j∈N(20) Constraints (15) enforce a length of ·|E|for the schedule, so that the schedule is feasible for the available number of employees. In the following, an example is given to illustrate how the number of employees varies depending on the block sequence and how edge weights dij are defined. We assume that the staffing demand is T=2222222 2222222.The first shift type is a morning shift, denoted as M, and the second shift type is a night shift, denoted by N. For simplicity, we assume that only a single shift block MMNN is allowed. Figure 4shows two rotational schedules that cover the workforce requirements. In the first column, the number of the employee starting at the beginning of each row is described. It can be seen that has a value of seven since each row includes seven days. The last shift of each row is adjacent to the first shift of the next row. In the last column, the set of start days of blocks which begin in the respective row are shown. Note that the example involves seven shift blocks with start days {1,...,7}. Both schedules use exactly the same set of shift block and start day tuples (g,b)and provide the same coverage. Figure 4shows that the length of the schedule varies depending on the sequence of shift block and start day tuples (g,b). As the length of the schedule needs to match the number of employees in the RWS, a sequence is a feasible solution to the second subproblem only if |D| =|E|. In the example, the shift block starts exactly once on each g∈{1,...,7}. Thus, the graph for the subproblem comprises seven nodes and we will refer to each node by the number of the start day. Now, let dij denote the number of employees required additionally for the schedule if node i succeeds node j. Then, i∈Nj∈Ndijvij equals the number of employees required for the rotational schedule defined by the block sequence. The graph associated with the exemplaryschedulesis shownin Fig.5.The top graph corresponds to the top schedule in Fig. 4, and the bottom graph corresponds to the bottom schedule in Fig. 4. Edge weights show thevalueofdij.Forexample,ifedge(4,5)isselected,i.e.,the shift block with start day 4 is succeeded by the shift block with start day 5, a number of two employees are required 123 Journal of Scheduling (2020) 23:539–554 553 Table 6 Average run time and standard deviation (in s) across the set of feasible instances that were solved by the respective solution method for each category #Shifts 2 3 #Employees* <20 20–30 30–40 ≥40 <20 20–30 30–40 ≥40 Avg. SD Avg. SD Avg. SD Avg. SD Avg. SD Avg. SD Avg. SD Avg. SD DH-Rota 0.03 0.09 0.29 1.64 0.03 0.07 0.09 0.24 0.02 0.05 0.11 0.85 0.15 0.9 0.44 2.45 MP (Sect. 3.2) 2.22 4.79 2.27 4.98 7.53 18.18 10.31 28.73 5.38 13.85 11.15 23.95 20.41 36.72 19.79 28.36 MP (Musliu et al. 2018) 1.33 0.64 2.47 1.23 4.04 1.89 5.53 2.33 3.75 2.24 9.4 5.68 14.84 9.51 21.82 14.01 *Intervals include the lower bound and exclude the upper bound. In addition to the number of employees, the number of shifts is an influencing factor of the run time. The number of decision variables considered by the exact approaches directly depends on the number of shifts. In Table 5,the number of feasible instances solved by the solution methods executedduringthecomputationalexperimentsisshown,differentiated by the number of shifts and employees. Table 6 shows the average run time and standard deviation for each category of instances. The data for each solution approach only include results for the run time on feasible instances solved, as specified in Table 5. The data from Table 6show that the average run time of the mathematical formulation proposed by Musliu et al. (2018) strictly increases with a higher number of shifts or employees. A similar trend is evident for the mathematical formulation (Sect. 3.2) and DH-Rota. However, comparing the average run time of the mathematical formulation (Sect. 3.2) for the case of 3 shifts between the categories 20–30 and ≥40 employees, the average run time slightly decreases from 20.41 to 19.79s. It is important to note that there are a large number of instances wherethemathematicalformulation(Sect.3.2)didnotobtain a feasible solution in both categories. Additionally, the mathematical formulation (Sect. 3.2) exhibits the highest standard deviation among all solution approaches in each category. Furthermore, the influence of the number of shifts on the run times of DH-Rota does not appear very consistent from the data in Table 6. While the number of shifts increases the decision variables considered by exact approaches, it does not have such a direct influence on DH-Rota. Looking at the standard deviation, DH-Rota exhibits the lowest values in mostcategories.Relativetotheaverageruntime,thestandard deviation of DH-Rota is higher than that of the mathematical formulation of Musliu et al. (2018). This is also evident from the higher number of outliers for DH-Rota and the large range of run times shown by the box plots in Fig. 8. Overall, the results indicate that the new decomposition approach efficiently exploits the problem structure and provides a major reduction in run times for feasible RWS problem instances. While DH-Rota does not improve the results of the state-of-the-art exact approaches presented in Musliu et al. (2018), it is able to solve feasible instances of the RWS very efficiently and thus confirms the benefits of the new decomposition approach. 7 Conclusion Rotational workforce scheduling is an important tool for organizations with homogeneous skills among employees and staffing requirements. This study has presented a novel decomposition approach (DH-Rota) for the Rotating Workforce Scheduling Problem (RWS). The heuristic first constructs a fixed set of shift blocks that covers the staffing requirements. Then, a network model is used to determine whether a feasible sequence of shift blocks exists. By considering a fixed set of shift blocks to cover the demand, the problem complexity can be greatly reduced. We have proposed a new greedy heuristic to find combinations of blocks that cover the staffing requirements and an exact branch-and- cut algorithm that determines whether there exists a feasible sequence such that the constraints on days off and forbidden blocks sequences are satisfied. Computational experiments confirm the efficiency of the decomposition approach and heuristic. The heuristic approach very quickly provides solutions for feasible instances. Although it does not improve the state of the art for exact methods, the average run time across the set of feasible instances solved by DH-Rota is only 0.18s. This greatly improves the results of previous heuristics for the RWS. Thus, the proposed approach is able to quickly generate feasible schedules for real-world Rotating Workforce Scheduling Problems. The decomposition approach is not limited to the RWS. Various future studies that build on the ideas of the decomposition are apparent. It can be extended by additional practical constraints.Furtherstudiescouldthusinvestigatetheapplica- 123 554 Journal of Scheduling (2020) 23:539–554 bility and performance for different application areas. These include various scheduling problems where cyclic schedules are desired, such as nurse rostering. Another possible area of future research would be a more systematic approach to findingcombinationsofblocksthatcoverthestaffingrequirements. If the set of solutions to this covering problem is systematically enumerated, an exact approach is obtained. Acknowledgements Open Access funding provided by Projekt DEAL. The author would like to thank three anonymous referees for their valuable and detailed comments. Their comments have helped to greatly improve the manuscript. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitteduse,youwillneedtoobtainpermissiondirectlyfromthecopyright holder. To view a copy of this licence, visit http://creativecomm ons.org/licenses/by/4.0/. References Åkerstedt,T.(2003).Shiftworkanddisturbedsleep/wakefulness.Occupational Medicine,53(2), 89–94. Baker, K. R. (1976). Workforce allocation in cyclical scheduling problems: A survey. Journal of the Operational Research Society, 27(1), 155–167. Balakrishnan, N., & Wong, R. (1990). A network model for the rotating workforce scheduling problem. Networks,20(1), 25–42. Bartholdi, J. J., Orlin, J. B., & Ratliff, H. D. (1980). Cyclic scheduling via integer programs with circular ones. Operations research, 28(5), 1029–1257. Becker, T., Steenweg, P. M., & Werners, B. (2019). Cyclic shift scheduling with on-call duties for emergency medical services. Health Care Management Science,22, 676–690. Bollobas, B. (2013). Modern graph theory., Graduate texts in mathematics New York: Springer. Brucker, P., Burke, E. K., Curtois, T., Qu, R., & Berghe, G. V. (2010). A shift sequence based approach for nurse scheduling and a new benchmark dataset. Journal of Heuristics,16(4), 559–573. Brucker, P., Qu, R., & Burke, E. (2011). Personnel scheduling: Models and complexity. European Journal of Operational Research, 210(3), 467–473. Burke, E., De Causmaecker, P., & Van den Berghe, G. (1999). A hybrid tabu search algorithm for the nurse rostering problem. In B. McKay, X. Yao, C. S. Newton, J. H. Kim, & T. Furuhashi (Eds.), Simulated Evolution and Learning (pp. 187–194). Berlin: Springer. Burke, E., De Causmaecker, P., Berghe, G. V., & Van Landeghem, H. (2004). The state of the art of nurse rostering. Journal of Scheduling,7(6), 441–499. Carrabs, F., Cerulli, R., Pentangelo, R., & Raiconi, A. (2018). A two-level metaheuristic for the all colors shortest path problem. Computational Optimization and Applications,71(2), 525–551. Erkinger, C., & Musliu, N. (2017) Personnel scheduling as satisfiability modulo theories. In IJCAI international joint conference on artificial intelligence (pp. 614–621). Ernst, A. T., Jiang, H., Krishnamoorthy, M., & Sier, D. (2004). Staff scheduling and rostering: A review of applications, methods and models. European Journal of Operational Research,153(1), 3–27. Kiermaier, F., Frey, M., & Bard, J. F. (2016). Flexible cyclic rostering in the service industry. IIE Transactions (Institute of Industrial Engineers),48(12), 1139–1155. Laporte, G. (1999). The art and science of designing rotating schedules. The Journal of the Operational Research Society,50(10), 1011– 1017. Laporte, G., Nobert, Y., & Biron, J. (1980). Rotating schedules. European Journal of Operational Research,4(1), 24–30. Millar, H., & Kiragu, M. (1998). Cyclic and non-cyclic scheduling of 12 h shift nurses by network programming. European Journal of Operational Research,104(3), 582–592. Moerz, M., Musliu, N. (2004) Genetic algorithm for rotating workforce scheduling. In Proceedings of second IEEE international conference on computational cybernetics (pp. 121–126). Musliu, N. (2006). Heuristic methods for automatic rotating workforce scheduling. International Journal of Computational Intelligence Research,2(4), 309–326. Musliu, N. (2011) Constructing cyclic staff schedules by iterated local search. In MIC 2011: The IX metaheuristics international conference (pp. 3–5). Musliu, N. (2013) Applying machine learning for solver selection in scheduling: A case study (pp. 6–8). Musliu, N., Gärtner, J., & Slany, W. (2002). Efficient generation of rotating workforce schedules. Discrete Applied Mathematics, 118(1–2), 85–98. Musliu,N.,Schutt,A.,& Stuckey,P. J.(2018).Solverindependent rotating workforce scheduling. In W. J. van Hoeve (Ed.), Integration of constraint programming, artificial intelligence, and operations research (pp. 429–445). Cham: Springer. Mutingi, M., & Mbohwa, C. (2015a). Nurse scheduling: A fuzzy multicriteria simulated metamorphosis approach. Engineering Letters, 23(3), 222–231. Mutingi,M., &Mbohwa,C. (2015b)A multi-criteriaapproach fornurse scheduling fuzzy simulated metamorphosis algorithm approach. In IEOM 2015—Proceeding of 5th international conference on industrial engineering and operations management. Rocha, M., Oliveira, J. F., & Carravilla, M. A. (2013). Cyclic staff scheduling: Optimization models for some real-life problems. Journal of Scheduling,16(2), 231–242. Rocha, M., Oliveira, J. F., & Carravilla, M. A. (2014). A constructive heuristic for staff scheduling in the glass industry. Annals of Operations Research,217(1), 463–478. Triska, M., & Musliu, N. (2011). A constraint programming application for rotating workforce scheduling (pp. 83–88). Berlin: Springer. Valouxis, C., & Housos, E. (2000). Hybrid optimization techniques for the workshift and rest assignment of nursing personnel. Artificial Intelligence in Medicine,20(2), 155–175. Van Den Bergh, J., Beliën, J., De Bruecker, P., Demeulemeester, E., & De Boeck, L. (2013). Personnel scheduling: A literature review. European Journal of Operational Research,226(3), 367–385. Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. 123