Is it possible to convert a global optimization matlab code, using multistart with lsqnonlin , in to c using codegen?
1 回表示 (過去 30 日間)
古いコメントを表示
the main function calls other 4 functions when executed in matlab. Is it possible to frame this problem for codegen?
0 件のコメント
回答 (1 件)
Mike Hosea
2013 年 6 月 7 日
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 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!