Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Generate .lp file from OPL studio

  • 1.  Generate .lp file from OPL studio

    Posted Tue December 09, 2014 06:29 AM

    Originally posted by: TapanDey


    Dear All,

    I was try to generate the .lp file from OPL using

    execute CPX_PARAM {
      cplex.preind = 0;   
      cplex.simdisplay = 2;   
    }

    as well as

    main {
     thisOplModel.generate();
     cplex.exportModel("C:\\Development\\Project\\ColoaderAllocationMod\\file.lp");
    }

    But could not generate the .lp file.

    Can you please help me to generate the .lp file from OPL.

    Appreciate your help.

    Thanks,

    Tapan Dey


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Generate .lp file from OPL studio

    Posted Tue December 09, 2014 03:19 PM

    Hi

    can you try to do cplex.solve();

    before the export ?

    regards


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Generate .lp file from OPL studio

    Posted Wed December 10, 2014 01:56 AM

    Originally posted by: TapanDey


    Hi Alex,

    Thanks a lot for your response.

    It is working correctly now.

    Regards,

    Tapan Dey


    #DecisionOptimization
    #OPLusingCPLEXOptimizer