Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Opening LP-Files in CPLEX Optimization Studio (IDE)

  • 1.  Opening LP-Files in CPLEX Optimization Studio (IDE)

    Posted Sat January 14, 2012 01:32 PM

    Originally posted by: haaner


    Hi there,
    I wonder if it is possible to open LP-Files in CPLEX Optimization Studio (IDE) instead of OPL-Files.
    The Interactive Version allows to work with LP files, is this also the case with the IDE?

    If not: Is there a easy way to convert a LP file to the OPL format?

    Thank you in advance!
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Opening LP-Files in CPLEX Optimization Studio (IDE)

    Posted Mon January 16, 2012 08:06 AM
    Hi,

    it is possible to open an lp file in the IDE as you can open any text file.
    If you want to run an lp file in the ide, you can use

    main
    {
      cplex.importModel("model.lp");
      cplex.solve();
      writeln(cplex.getObjValue());
      
    }
    


    if the lp file is "model.lp" for example

    Regards
    #DecisionOptimization
    #OPLusingCPLEXOptimizer