Originally posted by: open_ball
Hi,
I took BendersATSP as a reference and coded a small Benders implementation in Java OPL Interface, but when I call the "add" method, it gives me the following warning "The method add(IloConstraint) in the type IloCplex.LazyConstraintCallback is not applicable for the arguments (IloRange, int)".
Now, when I look at the method, I observed something. Add method is defined in ilog.opl with only IloConstraint. However, in ilog.cplex it requires one additional parameter to be passed.
IloConstraint ilog.opl.IloCplex.LazyConstraintCallback.add(IloConstraint cut) throws IloException
IloRange ilog.cplex.IloCplex.LazyConstraintCallback.add(IloRange arg0, int arg1) throws IloException
So when I use OPL interface, I am not able to pass IloCplex.CutManagement.UseCutForce parameter into my add method. Is there a solution for this? or a better question, is this an issue for my implementation?
#CPLEXOptimizers#DecisionOptimization