Skip to main content
Log in

A note on a single-shift days-off scheduling problem with sequence-dependent labor costs

  • Published:
Journal of Scheduling Aims and scope Submit manuscript

Abstract

Elshafei and Alfares have developed a dynamic programming (DP) algorithm for minimizing the total sequence-dependent cost in a constrained single-shift days-off scheduling problem. In general, however, their proposed DP algorithm may not obtain an optimal solution unlike their claim; in their highlighted security personnel scheduling example, we show how to improve their alleged optimal schedule just by inspection. The purpose of this paper is to describe better solution approaches to their challenging sequence-dependent workforce scheduling problem. We first explain why their DP algorithm encounters difficulties in finding an optimal solution with emphasis on the importance of proper state description for DP. We then describe how to correct their DP procedure with minimal effort. After that, we confirm such a better scheduling result by solving an associated mathematical programming problem with the Gurobi Optimizer, a widely recognized mathematical programming solver.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3

Notes

  1. In Elshafei and Alfares (2008, p. 88), the week number j ranges from 0 to \(\lceil T/7 \rceil \).

References

  • Alfares, H. K. (2006). Compressed workweek scheduling with days-off consecutivity, weekend-off frequency, and work stretch constraints. INFOR, 44(3), 175–189.

    Google Scholar 

  • Baker, K. R., Burns, R. N., & Carter, M. W. (1979). Staff scheduling with day-off and workstretch constraints. AIIE Trans, 6(11), 286–292.

    Article  Google Scholar 

  • Bellman, R. (1957). Dynamic Programming. Princeton University Press.

  • Bellman, R. (1962). Dynamic programming treatment of the traveling salesman problem. Journal of the ACM (JACM), 9(1), 61–63.

    Article  Google Scholar 

  • 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.

    Article  Google Scholar 

  • Burns, R. N. (1978). Manpower scheduling with variable demands and alternate weekends off. INFOR, 16, 101–111.

    Google Scholar 

  • Burns, R. N., & Carter, M. W. (1985). Work force size and schedules with variable demands. Mgmt Sci, 31, 599–607.

    Article  Google Scholar 

  • Davis, S. G., & Reutzel, E. T. (1981). A dynamic programming approach to work force scheduling with time-dependent performance measures. Journal of Operations Management, 1(3), 165–171.

    Article  Google Scholar 

  • Dreyfus, S. E. (1969). An appraisal of some shortest-path algorithms. Operations Research, 17(3), 395-412 .

    Article  Google Scholar 

  • Elshafei, M., & Alfares, H. K. (2008). A dynamic programming for days-off scheduling with sequence dependent labor costs. Journal of Scheduling, 11, 85–93.

    Article  Google Scholar 

  • 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, 3–27.

    Article  Google Scholar 

  • Gurobi Optimizer (2019) Stable release 9.1 is available at https://www.gurobi.com/products/gurobi-optimizer/

  • Held, M., & Karp, R. M. (1962). A dynamic programming approach to sequencing problems. Journal of the Society for Industrial and Applied Mathematics, 10(1), 196–210.

    Article  Google Scholar 

  • Hung, R. (1991). Single-shift workforce scheduling under a compressed workweek. Omega, 19(5), 494–497.

    Article  Google Scholar 

  • Hung, R. (1994). Single-shift off-day scheduling of a hierarchical workforce with variable demands. European Journal of Operational Research, 78(1), 49–57.

    Article  Google Scholar 

  • IBM CPLEX Optimizer (2018). Available at https://www.ibm.com/analytics/cplex-optimizer/

  • Ikegami, A., & Niwa, A. (2003). A subproblem-centric model and approach to the nurse scheduling problem. Math Program Ser B, 97, 517–541.

    Article  Google Scholar 

  • Lau, H. C. (1996). On the complexity of manpower shift scheduling. Computers and Operations Research, 23(1), 93-102 .

    Article  Google Scholar 

  • Millar, H. H., & Kiragu, M. (1998). Cyclic and non-cyclic scheduling of 12H shift nurses by network programming. European Journal of Operational Research, 104, 582–592.

    Article  Google Scholar 

  • Mizutani, E., & Dreyfus, S. (2021). On using dynamic programming for time warping in pattern recognition. Information Sciences, 580, 684–704.

    Article  Google Scholar 

  • Narasimhan, R. (2000). An algorithm for multiple-shift scheduling of hierarchical workforce on four-day or three-day workweek. INFOR, 38(1), 14–32.

  • Pillay, N. (2014). A survey of school timetabling research. Annals of Operations Research, 218, 261–293.

  • Saksena, J. P., & Kumar, S. (1966). The routing problem with K specified nodes. Operations Research, 14(5), 909–913.

    Article  Google Scholar 

  • Tien, J., & Kamiyama, A. (1982). On manpower scheduling algorithm. SIAM Reviews, 24, 275–287.

  • Van den Bergh, J., Belien, J., De Bruecker, P., Demeulemeester, E., & De Boeck, L. (2013). Personnel scheduling: A literature review. European Journal of Operational Research, 226, 367–385.

    Article  Google Scholar 

Download references

Acknowledgements

Eiji Mizutani would like to thank Stuart Dreyfus for nearly 30 years of optimal guidance with valuable discussions on the art of dynamic programming. Special thanks must go to Johnny Tsai and Mashahiro Oishi for useful discussions.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Eiji Mizutani.

Ethics declarations

Declarations

The authors declare that they have no conflict of interest. The work is partially supported by the Ministry of Science and Technology, Taiwan, under grant 108-2221-E-011-098-MY3.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Appendix: a backward procedure

Appendix: a backward procedure

In Sect.4.2, we have shown a forward dynamic programming (DP) procedure with Eq. (25); for comparison, we present its backward DP version using the same notations defined therein; it appears to be more natural than the preceding forward counterpart.

Backward DP formulation:

  • ① Definition of an optimal value function:

  • \(S_t(x_{t-L},x_{t-L+1},...,x_{t-2},x_{t-1})=\) minimum cost to go, starting day t to end, when \(x_{t-k}\), \(k \!=\! 1,...,L\), are the assignments made over the last L days.

  • ② Recurrence relation:

    $$\begin{aligned} \begin{array}{l} S_t \big (x_{t-L},x_{t-L+1},...,x_{t-2},x_{t-1} \big )\quad \\ \qquad = \!\! \begin{array}{c} \\ \text{ minimum } \\ {{{x_{t} \!=\! v^k_t \! \in \! J_v(t)}}} \end{array} \! \! \Big \{ \! {\displaystyle Z_{t}\big (x_{t-L},x_{t-L+1}, ...,x_{t-1}, x_{t} \big ) } \\ + ~~ S_{t+1}\big (x_{t-L+1},...,x_{t-1},x_{t}\big ) \Big \} \\ \end{array} \end{aligned}$$
    (A1)

    where the decision is to choose a best v-pattern in (12) to be recorded by the policy function \(\pi _t(x_{t-L},...,x_{t-1})\).

  • ③ Boundary conditions:

    $$\begin{aligned} S_{T+1} \big ( x_{{\tiny {T \!-\! L \!+\! 1}}}, x_{{\tiny {T \!-\! L \!+\! 2}}}, ..., x_{{\tiny {T \!-\! 1}}}, x_{{\tiny {T}}} \big ) = 0. \end{aligned}$$
    (A2)
  • ④ Answer is given by \( S_1(\text{-,-, } \text{... } \text{,- }) \) with no past history.

In Eq. (A1), \(Z_{t}(x_{t-L},x_{t-L+1}, ...,x_{t-1}, x_{t})\) is the stage cost for the daily assignment on day t as defined for Eq. (25).

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Mizutani, E., Sánchez Galeano, K.A. A note on a single-shift days-off scheduling problem with sequence-dependent labor costs. J Sched 26, 315–329 (2023). https://doi.org/10.1007/s10951-022-00749-3

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10951-022-00749-3

Keywords

Navigation