Skip to content
Advertisement

Tag: cplex

How to obtain all IloNumVar from IloModeler or IloCplex

we have a client who gives us a IloModeler and we use that to solve the optimization problem doing this: and, at the end we would like to return to the client a map with all IloNumVar and their value: Map<IloNumVar, Double>. But the issue is: How can we obtain from the original IloModeler the list of all IloNumVar in

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) : Answer There’s a similar question here.

Advertisement