Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2012-11-04T18:19:13Z by SystemAdmin
Stefano_TUE
Stefano_TUE
1 Post
ACCEPTED ANSWER

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
    ACCEPTED ANSWER

    Re: C++/Cplex

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