Skip to content
Advertisement

Benders.Strategy using Java and opl

I’m solving a mathematical model using Java however when i tried to call the Benders Strategy i keep receiving this error:

Exception in thread “main” java.lang.IllegalArgumentException: No enum class ilog.cplex.cppimpl.IloCplex$IntParam with value 1501

at ilog.cplex.cppimpl.IloCplex$IntParam.swigToEnum(IloCplex.java:1974) at ilog.opl.IloCplex.setParam(IloCplex.java:5640)

Here’s a part of my code in Java (i’m using CPLEX 12.8 and the library oplall.jar) :

JavaScript

Advertisement

Answer

There’s a similar question here.

In model.mod you could write:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement