Originally posted by: PhilippeLaborie
I think that what you are still missing in your model is a set of constraints saying that the presence status of subprof[sub] of a macro-mode is the same as the presence status of the macro-mode itself (macromode[m]), so some constraints presenceOf(macromode[m])==presenceOf(subprof[sub]).
Concerning your last question on resource availability profiles, instead of using Q_UsedRsrc[r] <= K that limits the maximal value of the function over the complete horizon, you can use a set of constraints alwaysIn(Q_UsedRsrc[r] , T1, T2, 0, K) that will constrain the maximal value of the function to be less than K only on the time-window [T1,T2).
Philippe
#DecisionOptimization#OPLusingCPOptimizer