Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Exporting .lp file

    Posted 09/08/13 07:27 AM

    Originally posted by: Puppy26


    Hi all,

    How can I export .lp file from the cplex?

    Could you please some one help me on this.

    many thanks!


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Exporting .lp file

    Posted 09/08/13 07:41 AM

    Originally posted by: T_O


    Do you mean the interactive optimizer? Just type

    w filename.lp

    Best regards,
    Thomas


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Exporting .lp file

    Posted 09/08/13 07:43 AM

    Originally posted by: Puppy26


    Hi Thomas, thanks for your response.

    Where should I type w filename.lp? sorry, Im new to cplex so doesn't know much about this environment.


    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Exporting .lp file

    Posted 09/08/13 07:48 AM

    Originally posted by: T_O


    Maybe you should first of all provide some details about how you are using CPLEX. There are serveral possibilities:

    • Interactive optimizer
    • C callable library
    • Concert (C++/Java)
    • Interfaces to other software (Matlab, Excel, ...)

    So please tell us what you are doing.

    Best regards,
    Thomas


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Exporting .lp file

    Posted 09/08/13 07:59 AM

    Originally posted by: Puppy26


    Thomas,

    I'm not quiet sure... My model is something similar to  the warehouse problem in OPL example directory.


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: Exporting .lp file

    Posted 09/08/13 08:09 AM

    Originally posted by: T_O


    So, you are trying to export an OPL-Model as LP file?

    I'm not an OPL user, so I don't know how this works, but I am quite sure, it is possible.

    Maybe, you should better ask this question in the OPL forum.

    Best regards,
    Thomas


    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: Exporting .lp file

    Posted 09/08/13 05:14 PM

    Like Thomas said, you should provide as much information as possible. What are you doing? How are you doing this? Do you use the IDE? Are you using CPLEX from the command line? Do use it via a programming API (which one)?

    It looks like you are using OPL, probably in the IDE? To export and LP file there you need to do the following:

    1. Create a new settings file in your project (File->New->Settings). If you already have a settings file for your project you can also use the existing one.
    2. Add this setting file to the run configuration you are using (just drag and drop it there)
    3. Open the settings file
    4. In the settings file editor go to Language->Run and set the "export format" property to "LP"
    5. Save your project and run it.
    6. CPLEX will create an .lp file in your project directory. The name of the file is the name of your configuration with ".lp" appended to it.

    #CPLEXOptimizers
    #DecisionOptimization