I am using Cplex OPL to model flexible jobshop scheduling. I can use the intensity function to assign a task to an operator during his/her shifts. If the span is beyond a shift, the task will pause, and it will continue if the time is the operator's shift again. However, the real situation is that the task will be assigned to a different operator if the shift changes. Does anybody know how to realize this in Cplex ?
Thanks a lot!
I can use intensity function. But a single task is only associated to a single operator.
If you do not want the interval to go through the weekend / holiday you may use overlapLength to forbit that.
gives
if you uncomment the overlapLength constraint you then get