Is it possible to convert a global optimization matlab code, using multistart with lsqnonlin , in to c using codegen?
1 view (last 30 days)
Show older comments
the main function calls other 4 functions when executed in matlab. Is it possible to frame this problem for codegen?
0 Comments
Answers (1)
Mike Hosea
on 7 Jun 2013
Unfortunately, no. LSQNONLIN is not supported for code generation. It is possible to use functions that are not supported with coder.extrinsic, but this only works when running within the MATLAB/Simulink environment. There is no way to leverage that for stand-alone code generation targets. You will need to write your own MATLAB code to perform that function using only functions supported for code generation. Sometimes a more tractable solution is to obtain some public domain C source code that solves the problem (e.g. from Netlib) and call that from your MATLAB code using coder.ceval.
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!