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, 

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!