Hello,
I’m trying to develop a model that allocates the workforce in a railway system for my graduation thesis. I’m completely new to GAMS and cant really figure out what to do. Guides on youtube are so basic and not really helpful. There are 91 train drivers and almost 60 shifts. Shifts are day/night and numbers 1-30 implies morning shifts in each day and number 31-60 implies night shifts. In each day all shifts needs to be assigned to 1 driver.
1-) A driver cant work more than 4 consecutive days. And can only work for one shift a day.
2-) A driver should rest for 2 days after 4 days of work.
3-) Shift numbers that assigned to drivers should be consecutive ;
1-2-3-4 OK , 1-3-6-8 NOT OK
4-) After a week full of day shifts a driver must get night shifts.
1-2-3-4-REST-REST-31-32-33-34-REST-REST-5-6-7-8
And so on.
Right now i dont have enough information to develop this model on my own and really open for advices. Here’s what comes to my mind after a while.
SET
dri driversi /dr1dr91/
day days /d1d30/
sh shifts /s1*s60/
d(sh) day shifts /s1,s30/
n(sh) night shifts /s31*s60/
;
BINARY VARIABLE
x(dri,day,sh);