Originally posted by: rdumeur
Dear FiFila,
The difference is that the IloConstraint is a handle to a data structure used as a model definition, when the IlcConstraint is a handle to a data structure used by the solver during solve. The ILO wrapper macros allows you to define a new type of IloConstraint for which you precise the kind of IlcConstraint that will be produced during solve (it is the constraint returned in the body you specify when using the wrapper macro).
At the beginning of solve, the solver will scan the IloModel, and for each ILO constraint stored in it, it will invoke the associated IlcConstraint generation procedure. If your model include a custom constraint defined using the wrapper macros, then the procedure you've specified will be invoked to produce the appropriate IlcConstraint.
I hope this helps.
Cheers,
#CPOptimizer#DecisionOptimization