Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Optimizer status

    Posted 07/13/10 02:49 PM

    Originally posted by: Boon_Ilog


    Hi,

    I am using OPL 6.3 with cplex 12.1.

    I have written a model in OPL. My data is coming from MS Access. I use the .dat file to import and export data between Access and the model.

    What I would like to do is to be able to export a problem status (or cplex status, or optimizer status) to the Access. Basically what I want to know is whether the model is optimized (including true optimized, or tolerance) or not. I do not know what syntax or code I need to use to get this. I tried to use "cplex.getcplexstatus", but not quite understand how meaning is. Sometimes I get the value of 102??

    I expect to see something like Yes or No. No would mean infeasible, unbounded,... problems.

    thank you for your help!
    Boon
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Optimizer status

    Posted 07/13/10 03:56 PM

    Originally posted by: SystemAdmin


    The method provides a solution status code. You can look up the possible status codes in the CPLEX reference manual. For example, CPXMIP_OPTIMAL_TOL = 102 means that the solution is optimal inside tolerances (i.e., optimal up to the specified MIP gap, which is 0.01% by default).
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Optimizer status

    Posted 07/13/10 05:49 PM

    Originally posted by: Boon_Ilog


    Hi,

    thanks for your reply.

    I put the code at the end of my model like this....

    execute{

    writeln(cplex.getCplexStatus());
    };

    When the problem is feasible, it works fine. But when the problem is infeasible, there was no scripting output at all.

    I have also read the documentation and found out that when I run the model by using OPLRUN in the command prompt, the OPLRun will ourput a "solved" status if it is solved. how can I get to this status in OPL?

    thanks,
    Boon
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Optimizer status

    Posted 07/14/10 06:05 AM

    Originally posted by: SystemAdmin


    Sorry, but I do not know OPL well enough to be able to answer your question. You may want to post your question in the OPL forum here: http://www.ibm.com/developerworks/forums/forum.jspa?forumID=2053
    Tobias
    #CPLEXOptimizers
    #DecisionOptimization