Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  OPL to MPS/LP format

    Posted 09/20/11 05:28 AM

    Originally posted by: larsrn123


    Given an OPL model written using the OPL IDE, how can you convert the model to a format such that it can be solved using the cplex interactive optimizer?
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: OPL to MPS/LP format

    Posted 09/20/11 05:50 AM

    Originally posted by: SystemAdmin


    In ILOG-Script use
    cplex.exportModel("myProblem.lp");
    

    to dump as an LP-file (use different file extension to dump other supported formats).

    Alternatively you can set it in the ops-file.

    Regards
    Norbert
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: OPL to MPS/LP format

    Posted 09/20/11 05:52 AM
    Hi,

    a way to do that is to add an ops file in your run configuration and then select mps or lp as the export format

    Regards
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 4.  Re: OPL to MPS/LP format

    Posted 04/22/12 12:31 AM

    Originally posted by: bindasmariner


    I tried using the ops. file option to save my .mod file in mps/lp format. After choosing this export format option the OPL model shows an error and stops.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 5.  Re: OPL to MPS/LP format

    Posted 04/23/12 12:37 PM

    Originally posted by: SystemAdmin


    Hi,

    what error message do you get?
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 6.  Re: OPL to MPS/LP format

    Posted 04/23/12 12:43 PM

    Originally posted by: bindasmariner


    Hi
    Actually this was a problem with the OPL 6.3 version. I tried newer version and its working fine. The error message was blank. The IDE would show one blank error and stop the execution.
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 7.  Re: OPL to MPS/LP format

    Posted 09/20/11 06:39 AM

    Originally posted by: larsrn123


    Thanks!
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 8.  Re: OPL to MPS/LP format

    Posted 09/20/11 07:03 AM

    Originally posted by: SystemAdmin


    One more remark:
    You should note that you will not necessarily get the same run behaviour when you solve the problem with CPLEX standalone solver or within OPL, as some solver settings might be different and variables/constraints might have a different sorting order.

    Regards
    Norbert
    #DecisionOptimization
    #OPLusingCPLEXOptimizer