How to Obtain value of J in LQR command
3 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone,
I have solved a problem with ODE45, and used LQR command to contorl the response of the system. I want to see the value of cost function J itself. Is there any command that could help me to see the value of J? J function will be defined as an intergral as below.
Bests, ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/893160/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/893160/image.jpeg)
1 件のコメント
Paul
2022 年 2 月 13 日
Can you post your code for a simple problem. Perhaps starting from:
sys = ss(zpk(-1,[-2 -3],1))
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!