Originally posted by: expir55
Hi Rogerie,
First of all, thank you so much for your answer.
I wrote the wrong decision variable (My decision variable contain "optional".)
"dvar assign interval [j in agents, ie in days, m in shifts] optional in the start [m] .. (start [m] + duration [m]) size duration [m]"
I have looked at the page and the concepts Intensity and size and forbidden values on the CP Optimizer reference manual.
But i could not apply these functions to my model.
I am writing as a constraint for dayoff (Because, I consider dayoffs of each agent (greater than equal to 1 day) for each 7 day weekly planning period. ):
"forall (j in agents) sum (i in days, m in shifts) presenceOf (assign [j][i][m])<=(Nbday-1)"
But there are conflicts in solution.
Must I write the decision variables as follows?:
dvar interval assign[j in agents, i in days, m in shifts] optional in start[m]..(start[m]+duration[m]) size duration[m] intensity F[j][i][m];
and stepfunction?:
stepFunction F[j in agents, i in days, m in shifts] = stepwise { 0->Nbday; 100};
where/how should I use forbidextent function?
I would be glad, if you may help me to solve.
Your sincerely,
#DecisionOptimization#OPLusingCPOptimizer