Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Error 1013 with MPI and Java

    Posted 06/14/16 05:06 PM

    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


  • 2.  Re: Error 1013 with MPI and Java

    Posted 06/17/16 03:25 AM

    Can you show us your VMC file? Also, does your main program (the one that calls solve()) initialize MPI properly? CPLEX will not call MPI_Init() (or its Java wrapper) for you. What MPI library do you use and what is the version of that library?


    #CPLEXOptimizers
    #DecisionOptimization