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.
SystemAdmin 110000D4XK623 Posts
Re: C++/Cplex2012-11-04T18:19:13ZThis is the accepted answer. This is the accepted answer.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