Originally posted by: densons
I am solving a big MIP with CPLEX 12.6 on an HPC platform with Linux and openMPI.
The Java is using the cplex.jar as well as loading the .so files.
//Created Cplex Object if mipFlag is not null read the vmcFile
cplex = new IloCplex();
if (Example_URAC.mpiFlag != null)
this.cplex.readVMConfig(Example_URAC.vmcFile);
boolean test = false;
try {
test = cplex.solve();
} catch (Exception e){
e.printStackTrace();
System.out.println("Solve Failed");
System.exit(-1);
}
ilog.cplex.CpxException: CPLEX Error 1003: Bad argument to Callable Library function.
at ilog.cplex.CplexI.CALL(CplexI.java:4714)
at ilog.cplex.CplexI.setStatus(CplexI.java:5979)
at ilog.cplex.CplexI.access$500(CplexI.java:120)
at ilog.cplex.CplexI$SolveHandle.stop(CplexI.java:2625)
at ilog.cplex.CplexI.solve(CplexI.java:2648)
at ilog.cplex.IloCplex.solve(IloCplex.java:10413)
at lpWrapper.MIProblemCplex.solve(MIProblemCplex.java:672)
at examples.Example_URAC.main(Example_URAC.java:101)
We are able to generate the problem with Java and call CPLEX from Java without MPI. We are also able to solve the problem with MPI using the CPLEX interactive shell. We have Java save the problem and we load it into CPLEX using the interactive shell.
#CPLEXOptimizers#DecisionOptimization