フィルターのクリア

Why trust-region algorithm is not available in Simulink?

2 ビュー (過去 30 日間)
Elia Paini
Elia Paini 2022 年 9 月 9 日
回答済み: sai charan sampara 2023 年 9 月 29 日
Hi, I'm trying to link a mathlab model which solves a system of non linear equations by using fsolve and trust region algorithm, with a simulink model. Simulink does not recognize trust region method, and it suggests me to use levenberg-marquardt, but this one returns unstable values to simulink, so this is not useful to solve my equations.
Should I add some add-on or toolbox to simulink?
Thanks, best regards

回答 (1 件)

sai charan sampara
sai charan sampara 2023 年 9 月 29 日
Hello Elia,
I understand that you are trying to use trust-region algorithm in fsolve in Simulink.
The trust-region algorithm is not supported for “fsolve” in Simulink. If there is no requirement of code generation then it can be done by using “coder.extrinsic”. This method declares function as an extrinsic function.
You can refer to the below documentation to learn more about “coder.extrinsic”:
Thanks,
Charan

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by