Originally posted by: ClemsonTiger
Thanks for your reply,
Is there an easy way to do the number of violations in a schedule using interval variables. For example I am using the noOverlap constrain and want to count how many violations of overlapping that may occur if I switch that constraint off. So I copy my solution SOL without the noOverlap constraint and then rerun the problem with the noOverlap constraints while enforcing the SOL using presenceOf (intVar[i][j])==1 and startOf(job[a])==starttimefromSOL
but the problem is I get problem is infeasible at root!
is there an easy work around for the noOverlap constraint to count the number of violations (number of actual overlaps)?
For the 2nd part I will look up how to convert it to an array, is there an easy way to export just the active optional intervals (that are present) to reduce the size of the array?
Thanks again.
#DecisionOptimization#OPLusingCPOptimizer