準最適な制御器のパラメータをオンラインで計算
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
・一定区間の入出力データが観測できる.
・オフラインでの制御器の準最適なパラメータの計算をmファイルにおいて作成し、動作することは確認済み
・これをsimulnk上で計算したいため,simulinkの”User-Defined Functions”にある“Matlab Function”を使用しようと考えたが,その計算の中に動的システムのシミュレーション" sim(' ') "を使用しているため,“Matlab Function”では計算ができない.
" sim(' ') "を使用するような計算をsimulink上で計算したいのですが,何か方法はあるでしょうか.
0 commentaires
Réponses (1)
Toshinobu Shintai
le 23 Nov 2020
Simulink Functionを使ってみてはどうでしょうか。
添付ファイルに、簡単にモデルを用意しました。バージョンはR2020bです。sim()で呼び出しているSimulinkの処理を、Simulink Functionブロック内に移せば、実行できると思います。
注意点ですが、Simulink Function内にはサンプリング時間に依存した処理やブロックを入れないようにしてください。
Voir également
Catégories
En savoir plus sur パフォーマンスの手動最適化 dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!