Is it possible to convert a global optimization matlab code, using multistart with lsqnonlin , in to c using codegen?

the main function calls other 4 functions when executed in matlab. Is it possible to frame this problem for codegen?

回答 (1 件)

Mike Hosea
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.

製品

タグ

質問済み:

2013 年 6 月 7 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by