Originally posted by: SystemAdmin
Hello,
I'm not sure to understand what you want to model. Do you want to state that there are
noProcs ways to execute a task
aplAct1P[i] and that each of these different ways is modeled by an optional interval variable? In this case, what about:
dvar interval aplAct1P [i in TAp1PktP]; dvar interval aplAct1PR[i in TAp1PktP][p in noProcs] optional; constraints
{ forall(i in TAp1PktP)
{ alternative(aplAct1P[i], all(p in noProcs) aplAct1PR[i][p]);
}
}
If you have capacity constraints on these optional interval variables, you can use
noOverlap constraints or constraints on
cumulFunctions.
Philippe
PS: To improve readability of the models posted on this forum, you can use "{code}" markups before and after your code.
#DecisionOptimization#OPLusingCPOptimizer