I'm using CP Optimizer from ILOG CPLEX Studio to run an optimization problem. Specifically, I'm running an OPL code in Java using Eclipse IDE. My code is working and I'm getting for an instance the following output:
Where "Fitness" is the value of the objective function and the next 100 numbers are a feasible solution for the problem. I want to save the numbers in the red box in a 2D array of integers (of dimension 10 rows x 10 columns) for being utilized for continuing the search with a local search method. The solution is displayed when I call: opl.postProcess();
in my Java code. Here is an extraction of my code:
if (cp.solve()) {
System.out.println("Fitness: " + opl.getCP().getObjValue());
opl.postProcess();
}
There exist an alternative for saving that information in a 2D array of integers?