Decision Optimization

Decision Optimization

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

 View Only
  • 1.  executable file from .mod and .dat

    Posted Wed July 25, 2018 10:52 AM

    Originally posted by: oubax


    Hey guys 

    I would know if it is possible to make an executable file from .mod and .dat files, so the user can run the model and receive solution in .csv without opening cplex.

    Thank you for your help


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: executable file from .mod and .dat

    Posted Wed July 25, 2018 11:19 AM

    It's not exactly what you're asking for (it doesn't involve creating an executable), but you can use oplrun to execute an OPL model from the command line.

     

    Otherwise, you can use one of the OPL APIs (i.e., C++, Java, .NET). See the examples that are included with the installer.


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: executable file from .mod and .dat

    Posted Wed July 25, 2018 11:46 AM

    Hi,

    you could start with the example oplrunsample in CPLEX_Studio128\opl\examples\opl_interfaces\cpp\src

    and modify this in order to get what you need

    regards


    #CPLEXOptimizers
    #DecisionOptimization