The Doctor Rostering Problem - Asser Fahrenholz
The Doctor Rostering Problem - Asser Fahrenholz
The Doctor Rostering Problem - Asser Fahrenholz
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Appendix B. GAMS Model 77<br />
2<br />
3 option iterlim =999999999; // avoid limit on iterations<br />
4 option reslim =50000; // timelimit for solver<br />
5 option optcr =0.0; // gap tolerance<br />
6 option solprint = OFF ; // include solution print in . lst file<br />
7 option limrow =0; // limit number of rows in . lst file<br />
8 option limcol =0; // limit number of columns in . lst file<br />
9<br />
//------------------------------------------------------------------------------<br />
10 SETS<br />
11 day days / 1 * 28 /<br />
12 mondays ( day ) mondays / 1, 8,<br />
15 , 22 /<br />
13 fridays ( day ) fridays / 5, 12 ,<br />
19 , 26 /<br />
14 weekend ( day ) weekends / 6, 7,<br />
13 , 14 , 20 , 21 , 27 , 28 /<br />
15 workingdays ( day )<br />
16 shift shifts / 1 * 4 /<br />
17 nightshift ( shift ) night shifts / 1 /<br />
18 noonshift ( shift ) noon shift / 2 /<br />
19 afternoonshift ( shift ) afternoon shift / 3 /<br />
20 eveningshift ( shift ) evening shift / 4 /<br />
21 assignmentshifts ( shift )<br />
22 nonshifts ( shift )<br />
23 doctor doctors / jst , pzh<br />
, hp , sda , hmm , osj /<br />
24 index counting vars for the b-eq ’s / 0 * 7 /<br />
25 index0 ( index ) / 0 /<br />
26 index1 ( index ) / 1 /<br />
27 index2 ( index ) / 2 /<br />
28 index3 ( index ) / 3 /<br />
29 index4 ( index ) / 4 /<br />
30 index6a ( index ) / 6 /<br />
31 index6b ( index ) / 7 /;<br />
32 nonshifts ( shift ) = nightshift ( shift ) + eveningshift<br />
( shift );<br />
33 assignmentshifts ( shift ) = noonshift ( shift ) +<br />
afternoonshift ( shift );<br />
34 workingdays ( day ) = day ( day ) - weekend ( day );<br />
35<br />
36 display workingdays ;<br />
37<br />
38 PARAMETERS<br />
39 b(day , shift , doctor ) define evening and night shifts<br />
40 /(4.4. jst ) 1, (13.2. jst ) 1, (13.3. jst ) 1, (14.2. jst ) 1,<br />
41 (2.4. pzh ) 1, (8.2. pzh ) 1, (8.3. pzh ) 1,<br />
42 (15.4. hp) 1, (19.2. hp) 1, (19.3. hp) 1,<br />
43 (20.2. sda ) 1, (20.3. sda ) 1, (21.4. sda ) 1,<br />
44 (1.4. hmm ) 1, (6.2. hmm ) 1, (6.3. hmm ) 1, (7.2. hmm ) 1, (11.4. hmm ) 1,<br />
(16.2. hmm ) 1, (16.3. hmm ) 1, (20.2. hmm ) 1,<br />
(20.3. hmm ) 1, (21.2. hmm ) 1,<br />
45 (25.4. hmm ) 1/