MATLAB: Generating C/C+ code for the Optimization bintprog function

bintprogcode generationmatlab coder

Please Help. I need to generate a C/C++ code from Matlab for the optimization problem, involving Binary Integer Programming. Specifically, I am using bintprog function in the Matlab and I would like to generate C/C++ code, which will be ported to the embedded processor. I have noticed that Matlab coder product does not support any of the Optimization functions, including bintprog function. Also, the solution of using Matlab compiler along with Matlab compile runtime will not work either. The embedded processor is running VxWorks real-time operating system, so obviously Matlab compile runtime will not run on VxWorks. Thanks

Best Answer

It is not supported, so there really is no solution, short of asking the Mathworks to support it. You could write it yourself, but if you do not want to reinvent the wheel you could use some other library. The NAG library, for instance, is already written in C.