Originally posted by: ZoharFeldman
I am trying to migrate from an old version of cp solver (v1.3) to the latest (cplex 12.6.3).
I am using the C++ concert API (for Linux)
Unfortunately, much has changed in terms of interface.
One of my biggest obstacles is with using constraints.
In the old version, it was possible to extract IloConstraint into the solver (calling IloConstraintI::use) and then retrieve the corresponding internal IlcConstraint using solver.getConstraint(IloConstraint). Notably, at this point, the constraint was extracted but not yet posted.
In the new version, these capabilities are deprecated, and this creates a great deal of problems for me:
1. I could "convert" IloConstraint to IlcConstrainted and call the isFalse() isTrue() methods and now I can't
2. I could "convert" IloConstraint to IlcConstrainted and add it to the solver, and by that the constraint was posted
3. I could "convert" IloConstraint to IlcConstrainted and use post and meta post of the Impl class (very practical in custom constraints)
4. I could "convert" IloConstraint to IlcConstrainted and pass it to IlcGoal for instantiation and many other cool things
Can someone advise on the best practice to enable the above in the new version?
#CPOptimizer#DecisionOptimization