Network flow formulations for a class
- f nurse scheduling
problems
Pieter Smet Peter Brucker Patrick De Causmaecker Greet Vanden Berghe April 3, 2014
Smet et al. - Network flow formulations for a class of nurse scheduling problems 1/19
Network flow formulations for a class of nurse scheduling problems - - PowerPoint PPT Presentation
Network flow formulations for a class of nurse scheduling problems Pieter Smet Peter Brucker Patrick De Causmaecker Greet Vanden Berghe April 3, 2014 Smet et al. - Network flow formulations for a class of nurse scheduling problems 1/19
Pieter Smet Peter Brucker Patrick De Causmaecker Greet Vanden Berghe April 3, 2014
Smet et al. - Network flow formulations for a class of nurse scheduling problems 1/19
E E E E Employee 1 L L L E E Employee 2 N N L L L Employee 3 N N Employee 4 N N N Employee 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Number of E shifts Number of L shifts Number of N shifts Days
4 5 5 2 3 E shift 4 2 L shift 3 3 N shift 2 2 3
Smet et al. - Network flow formulations for a class of nurse scheduling problems 2/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 3/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 4/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 4/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 4/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 4/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 4/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 4/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 5/19
◮ Shift succession constraints
◮ Number shift types worked
◮ Number of days worked ◮ Number of consecutive days worked ◮ Number of consecutive days-off Smet et al. - Network flow formulations for a class of nurse scheduling problems 6/19
◮ Shift succession constraints
◮ Number shift types worked
◮ Number of days worked ◮ Number of consecutive days worked ◮ Number of consecutive days-off Smet et al. - Network flow formulations for a class of nurse scheduling problems 6/19
◮ Shift succession constraints
◮ Number shift types worked
◮ Number of days worked ◮ Number of consecutive days worked ◮ Number of consecutive days-off Smet et al. - Network flow formulations for a class of nurse scheduling problems 6/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 7/19
jk ≤ du jk
Smet et al. - Network flow formulations for a class of nurse scheduling problems 8/19
jk ≤ du jk
Smet et al. - Network flow formulations for a class of nurse scheduling problems 8/19
jk ≤ du jk
Smet et al. - Network flow formulations for a class of nurse scheduling problems 8/19
jk ≤ du jk
Smet et al. - Network flow formulations for a class of nurse scheduling problems 8/19
xijk = 1 if nurse i works shift k on day j
min
cijkxijk (1) s.t.
xijk ≤ 1 ∀ i ∈ N, j ∈ T (2) dl
jk ≤
xijk ≤ du
jk
∀ j ∈ T, k ∈ S (3)
xijk = ai ∀ i ∈ N (4) xijk ∈ {0, 1} ∀ i ∈ N, j ∈ T, k ∈ S (5)
Smet et al. - Network flow formulations for a class of nurse scheduling problems 9/19
s f Source Sink
Smet et al. - Network flow formulations for a class of nurse scheduling problems 10/19
s f Shift nodes <j,k> j = 1,...,t k = 1,...,s
.. ..
dl
jk ≤ x ≤ du jk
Source Sink
Smet et al. - Network flow formulations for a class of nurse scheduling problems 10/19
s f Shift nodes Time nodes <j,k> <i,j> j = 1,...,t k = 1,...,s i = 1,...,n j = 1,...,t
.. .. .. ..
0 ≤ x ≤ 1 cijk dl
jk ≤ x ≤ du jk
Source Sink
Smet et al. - Network flow formulations for a class of nurse scheduling problems 10/19
s f Shift nodes Time nodes <j,k> <i,j> i j = 1,...,t k = 1,...,s i = 1,...,n j = 1,...,t i = 1,...,n Nurse nodes
.. .. .. .. .. ..
0 ≤ x ≤ 1 x = ai cijk dl
jk ≤ x ≤ du jk
0 ≤ x ≤ 1 Source Sink
Smet et al. - Network flow formulations for a class of nurse scheduling problems 10/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 11/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 12/19
Monday Tuesday Wednesday early late early late early late [2,3] [1,2] [2,3] [1,2] [1,2] [1,2] s
M e M l T e T l W e W l M 1 M 2 M 3 M 4 M 5 T 1 T 2 T 3 T 4 T 5 W 1 W 2 W 3 W 4 W 5 1 2 3 4 5
f
{2,3} {1,3} {2,3} {1,2} {1,2} {1,2} {2} {2} {2} {2} {2}
Smet et al. - Network flow formulations for a class of nurse scheduling problems 13/19
Monday Tuesday Wednesday early late early late early late [2,3] [1,2] [2,3] [1,2] [1,2] [1,2]
2 2 2 1 1 2
s
2 2 2 2 2
M e M l T e T l W e W l M 1 M 2 1 2 3 4 5
f
M 5 T 1 T 2 T 3 T 4 T 5 W 1 W 2 W 3 W 4 W 5 M 3 M 4
Smet et al. - Network flow formulations for a class of nurse scheduling problems 13/19
Monday Tuesday Wednesday early late early late early late [2,3] [1,2] [2,3] [1,2] [1,2] [1,2]
2 2 2
s
M e M l T e T l W e W l M 1 M 2 M 3 M 4 M 5 T 1 T 2 T 3 T 4 T 5 W 1 W 2 W 3 W 4 W 5 1 2 3 4 5
f Smet et al. - Network flow formulations for a class of nurse scheduling problems 13/19
Monday Tuesday Wednesday early late early late early late [2,3] [1,2] [2,3] [1,2] [1,2] [1,2]
W 5
2 2 2
s
M e M l T e T l W e W l M 1 M 2 M 3 M 4 M 5 T 1 T 2 T 3 T 4 T 5 W 1 W 2 W 3 W 4
e l Employee 1
1 2 3 4 5
f Smet et al. - Network flow formulations for a class of nurse scheduling problems 13/19
Monday Tuesday Wednesday early late early late early late [2,3] [1,2] [2,3] [1,2] [1,2] [1,2]
W 5
2 2 2
s
M e M l T e T l W e W l M 1 M 2 M 3 M 4 M 5 T 1 T 2 T 3 T 4 T 5 W 1 W 2 W 3 W 4
e e Employee 3
1 2 3 4 5
f Smet et al. - Network flow formulations for a class of nurse scheduling problems 13/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 14/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 14/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 14/19
Best known CPLEX LEMON Days Nurses
Feasible
Feasible
Feasible 7 25 305.11 88.27% 245.41 100.00% 245.41 100.00% 50 587.07 90.03% 489.77 100.00% 489.77 100.00% 75 912.86 88.70% 740.11 100.00% 740.11 100.00% 100 1389.23 90.49% 1191.19 100.00% 1191.19 100.00%
Table: Comparison of solution quality.
Smet et al. - Network flow formulations for a class of nurse scheduling problems 15/19
Days Nurses Best known CPLEX LEMON 7 25 1.6636 0.0206 0.0014 50 4.4157 0.0324 0.0031 75 12.4680 0.0447 0.0062 100 20.0003 0.0579 0.0102 Table: Comparison of calculation time (in seconds).
Smet et al. - Network flow formulations for a class of nurse scheduling problems 16/19
◮ For days ◮ For shifts
◮ For days ◮ For shifts
Smet et al. - Network flow formulations for a class of nurse scheduling problems 17/19
◮ For days ◮ For shifts
◮ For days ◮ For shifts
Smet et al. - Network flow formulations for a class of nurse scheduling problems 17/19
◮ For days ◮ For shifts
◮ For days ◮ For shifts
Smet et al. - Network flow formulations for a class of nurse scheduling problems 17/19
◮ For days ◮ For shifts
◮ For days ◮ For shifts
Smet et al. - Network flow formulations for a class of nurse scheduling problems 17/19
◮ What about number of shift types worked?
→ No, see Osogami and Imai (2000)
◮ What about consecutiveness constraints?
→ . . .
Smet et al. - Network flow formulations for a class of nurse scheduling problems 18/19
◮ What about number of shift types worked?
→ No, see Osogami and Imai (2000)
◮ What about consecutiveness constraints?
→ . . .
Smet et al. - Network flow formulations for a class of nurse scheduling problems 18/19
◮ What about number of shift types worked?
→ No, see Osogami and Imai (2000)
◮ What about consecutiveness constraints?
→ . . .
Smet et al. - Network flow formulations for a class of nurse scheduling problems 18/19
◮ What about number of shift types worked?
→ No, see Osogami and Imai (2000)
◮ What about consecutiveness constraints?
→ . . .
Smet et al. - Network flow formulations for a class of nurse scheduling problems 18/19
◮ What about number of shift types worked?
→ No, see Osogami and Imai (2000)
◮ What about consecutiveness constraints?
→ . . .
Smet et al. - Network flow formulations for a class of nurse scheduling problems 18/19
Smet et al. - Network flow formulations for a class of nurse scheduling problems 19/19