This is an extention to the workforce scheduling problem discussed in this thread Workforce scheduling problem. Adding a new post to discuss an important new requirement in this model. So the new constraint is as follows: for a given worker, they can work multiple consecutive shifts (with min and max daily hours limits) where each shift has a different role (for example a worker can work 10am-12pm as cashier, then noon to 3 as a manager, 3pm to 5pm as a barista, and so on). After getting an excellent advice from @RobPratt, I tried to formulate oneshiftperday as a network formulation problem. I am trying to extend this to the new requirement of multiple shifts per day and I could model the consecutive and K shift per day requirement but am struggling with all distinct roles.
Is there a way to model this without adding too many mutual exclusivity side constraints?