How to Obtain value of J in LQR command
5 views (last 30 days)
Show older comments
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 Comment
Paul
on 13 Feb 2022
Can you post your code for a simple problem. Perhaps starting from:
sys = ss(zpk(-1,[-2 -3],1))
Answers (1)
See Also
Categories
Find more on Ordinary Differential Equations 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!