Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  CPLEX (called from Java) halts without error message

    Posted 11/16/18 12:49 AM

    Originally posted by: vahid_mlkr


    Hi

    I am using cplex in java. I have completed writing my code and it returns expected values. But there is something interesting happens:

    I have given different data as input to the system for testing my algorithm.

    For some of the data, the system works nicely, for some the system never runs at all but also never returns even a single error message, nothing at all.

    Here is the data I am feeding to the system

    X1 Y1   X2 Y2   X3 Y3
    40 10   138 126   18 248
    25 85   100 50   194 113
    30 52   4 77   120 120
    9 30   98 20   220 94
    4 64   15 94   178 182
    0 56   4 101   200 216

    The 1st set (x1, y1) is between the range 0-100
    The 2nd set (x2, y2) is between the range 0-150
    The 3rd set (x3, y3) is between the range 0-250

    ===

    The system works nicely for set 1 and 2, but as for the set 3, it does not work and I tested it relatively on a very small scale rather than giving huge amount of data, just for the sake of testing. But it didn't help. Interestingly, I fed the same data using the cplex IDE itself, it worked but of course I just wrote a very very simple code to read the data, and an objective function and constraints that I had aligned with my java code (but not fully the same, just something that can work without issues)

    I thought maybe the system needs time to solve the problem and I gave it over 24 hours, nothing changed, never printed a single line in results, completely blank

    ===

    I have tested the system over 2 different machines, still the same results. I am using the latest version of the cplex 12.7

    ===

    Any suggestion please ? Any hint that what could possibly be the issue ? 

    Many thanks in advance


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX (called from Java) halts without error message

    Posted 11/16/18 01:54 AM

    Are you sure it is the call to cplex.solve() that is stuck? It could be also something in your code that builds the model and that changes depending on your input.

    If you are sure cplex.solve() is the culprit, can you call cplex.exportModel("model.sav.gz") right before calling cplex.solve()? Does this call complete? What happens if you try to solve the exported model with the interactive optimizer?


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: CPLEX (called from Java) halts without error message

    Posted 12/21/18 12:40 AM

    Originally posted by: vahid_mlkr


    Thanks a lot. There were some dependencies as you stated that must have been removed


    #CPLEXOptimizers
    #DecisionOptimization