Originally posted by: expir55
We study on workforce scheduling problem in CP.
I am having trouble with the following problem;
The desicion variable is "dvar interval assign[j in agents, i in days, m in shifts] in start[m]..(start[m]+duration[m]) size duration[m];"
This decision variable decides on which agent is assinged to which day / shift. The model correctly decides the assignments of agents to days and shifts.
Now, we consider dayoffs of each agent (greater than equal to 1 day) for each 7 day weekly planning period.
The question is that "How can we provide the corresponding assign [j][i][m] become zero (or not to assign to day/shifts) for the specific time period in case of the agent is off.
#CPOptimizer#DecisionOptimization