How to Obtain value of J in LQR command
조회 수: 5 (최근 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!