I want to know if with the new releases of Cplex, it is currently possible to implement lazy constraints using OPL Script ? As I looked around, someone already asked this question on the forum ( https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014412146 ) and get the answer it wasn't possible.
I tried to add lazy constraints using the method IloCplex::addLazyConstraint( IloConstraint con), but I get an assertion failed error
Erreur interne : ASSERTION FAILED à l'emplacement E:\SF\s80\builds32\workspace\RB.opl_lang-wks.x86_windows_vs2010\opl_lang\include\ilopl/script/proxies.h:946.
but unfortunately, I couldn't figure out what that error is, I guess it deals with the way Windows handle procedures.
As we should add lazy constraint after we generate the model, we need to create them in the main script bloc, but the properties IloConstraint or even IloRange do not have any constructor available, so it's virtually impossible to create such elements outside the model, Am I wrong?
Does somebody have an example of JAVA/.NET/C++ opl interfaces examples using lazy constraints? I looked on the examples files but I couldn't find any?
I would appreciate any help.