lsqnonlinをcodegenにてコード生成しようとすると,optimoptionsでエラーが出る
2 views (last 30 days)
Show older comments
こちらの説明にそってfunctionの中で,
options = optimoptions('lsqnonlin','Algorithm','levenberg-marquardt');
というように設定をしたのち,codegenを実行してコード生成しようとしたところ,
「OPTIMOPTIONS は、関数 'lsqnonlin' のコード生成をサポートしていません。」
というエラーが出てしまい,コード生成が出来ません.
lsqnonlinのコード生成では設定にoptimoptionsを使わないといけないと思っていたのですが,逆にサポートされていないというエラーが出てしまうので,解決策が分からずに困っています.
どなたかアドバイスをいただけると嬉しいです.
2 Comments
Answers (1)
Akiko
on 27 May 2021
最初のコメントにも記載しましたように、lsqnonlin 関数をコード生成したい場合、MATLAB R2020b 以降のバージョンをご利用いただく必要があります。
R2020a 以前のバージョンをご利用の場合、アップデートをご検討ください。
0 Comments
See Also
Categories
Find more on パフォーマンスの手動最適化 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!