Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
Expand all | Collapse all

MIP is solved successfully on interactive cplex but not from java API

  • 1.  MIP is solved successfully on interactive cplex but not from java API

    Posted 09/21/09 03:00 PM

    Originally posted by: SystemAdmin


    [zoharf said:]

    Hi,

    I have a situation in which I run some (rather large ~1GB) mps file with MIP formulation from cplex interactive command line and I obtain a feasible solution quite fast (and a good solution after few more minutes). However, when I run the same mps file using Java API (by importing the mps file and solving) in a simple Java application, I am getting the following exception essentially immediately after cplex.solve() is invoked:

    ilog.cplex.CpxException: CPLEX Error  1217: No solution exists.

    at ilog.cplex.CplexI.CALL(CplexI.java:3754)
    at ilog.cplex.CplexI.setStatus(CplexI.java:4877)
    at ilog.cplex.CplexI.solve(CplexI.java:2327)
    at ilog.cplex.IloCplex.solve(IloCplex.java:9306)

    I have also tried to configure some parameters within the Java code that control the policy of using node files, their memory and all sort of branching policies that are proposed on the Cplex 12 document to solve out-of-memory problems (I have a feeling that the exception is initially caused by memory issues).

    Can you please advise?

    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: MIP is solved successfully on interactive cplex but not from java API

    Posted 09/22/09 08:35 PM

    Originally posted by: SystemAdmin


    [johncui said:]

    Could you please try your model file in LPex2.java example again?
    then tell me your result?
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: MIP is solved successfully on interactive cplex but not from java API

    Posted 09/22/09 08:36 PM

    Originally posted by: SystemAdmin


    [johncui said:]

    sorry, LPex2.java is for LP model

    Please try your model in MIPex2.java
    #CPLEXOptimizers
    #DecisionOptimization