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
Tag: cplex
How to adapt and OPL code to Java API using Eclipse IDE
I am trying to adapt an OPL formulation using the Java API in Eclipse IDE. Extraction of the original OPL code is the following: I want to replicate the same above but now using the Java API. I had tried the following: (filename is a file with the values of an instance where is specified the number of jobs, number
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.