Topic
  • 1 reply
  • Latest Post - ‏2012-11-04T18:19:13Z by SystemAdmin
Stefano_TUE
Stefano_TUE
1 Post

Pinned topic C++/Cplex

‏2012-11-02T16:36:44Z |
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
Updated on 2012-11-04T18:19:13Z at 2012-11-04T18:19:13Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    623 Posts

    Re: C++/Cplex

    ‏2012-11-04T18:19:13Z  
    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