Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  C++/Cplex

    Posted 11/02/12 12:37 PM

    Originally posted by: Stefano_TUE


    Hi,

    I was wondering whether from C++ I can create a complete model in OPL and send it directly to CPLEX.

    Currently, I can create the model in OPL and save it in a txt file, but now I need a way to call CPLEX and send the content of the txt file.
    I would appreciate your help.

    Stefano
    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: C++/Cplex

    Posted 11/04/12 01:19 PM

    Originally posted by: SystemAdmin


    Hello Stefano.

    There is a delivered C++ example that solves an OPL model written in a text file. Have a look on opl/examples/opl_interfaces/cpp/src/oplrunsample.cpp.

    Best regards, Petr
    #DecisionOptimization
    #OPLusingCPOptimizer