Limitation regarding lazy constraints

Technote (FAQ)


Can I implement lazy constraints from OPL Script?


This is currently not possible to add lazy constraints from OPL Script.
As an alternative you can use extending script functionality by using external Java calls.
From the Concert APIs you can also use IloCplex::LazyConstraintCallbackI/IloCplex::CutCallbackI (C++) or IloCplex.CutCallback (JAVA), or Cplex.CutCallback (.NET) to implement lazy constraints. You will find more information and examples of implementing callbacks in the documentation.

Document information

More support for:

IBM ILOG CPLEX Optimization Studio
Area:ILOG Script for OPL/OPL Script

Software version:


Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows, iOS

Software edition:

All Editions

Reference #:


Modified date:


Translate my page

Content navigation