Originally posted by: ZoharFeldman
Thanks for your reply, Philippe.
I have thought about something similar to option 1 (with use of constraint indicators that I set to true in the appropriate solve). However, I have no way of knowing all the constraints in advance.
I am therefore left with option 2, which is also not very trivial. The problem is that I now have to transform all my IloConstraints to IlcConstraint. Since I have many constraints and they are created in many different places in my code, this is going to be a very exhaustive work.
I really wish there was some utility that transforms iloConstraint to IlcConstraint or have the option of extracting additional constraints without having all the model extracted again (even at the expense of performance as this is also happens when you add IlcConstraint to the solver)
Thanks,
Zohar
#CPOptimizer#DecisionOptimization