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