Originally posted by: open_ball
Daniel,
Thanks for the detailed explanation. That is what exactly happens to me. Since the tree restarts every time when I add a constraint, my algorithm does not really converge and takes a very long time. Since model is quite big and complicated in terms of number of constraint and variable types, I do not want to re start everything from scratch in an API.
I am familiar with loading the model to Java from OPL, but I don't really know how I can utilize the call back function after loading the model. I do have a sample code to implement lazy constraints in Java, but the entire model is built up in Java. Do you have any small code sample (e.g., capacitated facility location problem) that shows how to load an OPL model to Java and implement a callback?
Edit: Daniel, I have one more question. Does there exist any restriction when a model is loaded from OPL. Would I have access to everything provided in Java?
#CPLEXOptimizers#DecisionOptimization