Originally posted by: veronicads
Hello!
I'm implementing a Mip problem using the Python interface for cplex 12.4. I see that it's not quite common and the documentation is not really helpful to me. There are two things in particular that I've not been able to do:
- set the right parameter to switch off all the cuts cplex adds independently while performing the branch and cut algorithm
- pass as arguments the data of the problem to a callback. That is, I define a LazyConstraintCallback as this:
class MyLazy(LazyConstraintCallback):
def __call__(self):
#code
but inside the call function I also need the data of the problem and simply writing def __call__(self, data) I get an error like this:
CPLEX Error 1006: Error during callback.
...
TypeError: __call__() takes exactly 2 arguments (1 given)
thanks a lot for your help!
Veronica
#CPLEXOptimizers#DecisionOptimization