Can I call quadprog() using Embedded MATLAB from Simulink?
3 ビュー (過去 30 日間)
古いコメントを表示
I've developed a Simulink model in which I need to perform a constrained quadratic minimization. I've tried placing a call to the Optimization Toolbox function quadprog in an Embedded MATLAB Function block but have encountered numerous errors. Is what I'm trying to do even allowable and, if so, what is the proper way to do it?
0 件のコメント
回答 (3 件)
Kaustubha Govind
2011 年 2 月 9 日
This is the list of functions supported with Embedded MATLAB.
If your function is not in this list, you can still call it using eml.extrinsic, but you cannot generate code from your model.
0 件のコメント
James Allison
2011 年 2 月 16 日
If you are fine with a simulation-only capability (i.e., no code generation), then you might also consider using a Level-2 MATLAB S-Function in place of EML. You can run quadprog from within the S-Function.
0 件のコメント
H S
2011 年 2 月 9 日
1 件のコメント
Kaustubha Govind
2011 年 2 月 16 日
Look for the 'Converting mxArrays to Known Types' section here: http://www.mathworks.com/help/toolbox/eml/ug/bq1h2z8-34.html#bq1h2z9-38
参考
カテゴリ
Help Center および File Exchange で Manual Performance Optimization についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!