Originally posted by: UMQX_Olfat_ELMahi
i did solve it thanks
all waht you have to do is to
using CP;
range Time = 0..maxAll;
int nbOps = ...;
int Q = ...;
int Demand 1..nbOps = ...;
dvar int ProcessingTime 1..nbOps in Time;
dvar interval operations i in 1..nbOps size ProcessingTime[i];
constraints {
sum(i in 1..nbOps) pulse(operations[i], Demand[i]) <= Q;
enfOf(operations) - startOf(operations) == ProcessingTime;
}
#DecisionOptimization#OPLusingCPLEXOptimizer