Originally posted by: mathygirl
The way I create a cplex object is as follows:
IloOplFactory oplF = new IloOplFactory();
cplex = oplF.createCplex();
After invoking cplex.solve(), I was able to get the following commands to work:
int numsol = cplex.getSolnPoolNsolns();
for (int s=0; s<numsol; s++) {
System.out.println("solution " + s + ": objective = "+ cplex.getObjValue(s));
}
However, I would also like to extract out decision variable values for each solution in the solution pool.
I know of the example Populate.java, but the cplex object created there is done through the CPLEX library by
IloCplex cplex = new IloCplex();
The example does not work for my cplex object.
Is it possible to extract out decision variable information for each solution in the solution pool given that I've created my cplex object via the OPL Java API?
#CPLEXOptimizers#DecisionOptimization