How to Obtain value of J in LQR command

조회 수: 3 (최근 30일)
shahin sharafi
shahin sharafi 2022년 2월 13일
답변: shahin sharafi 2022년 4월 16일
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
Paul 2022년 2월 13일
Can you post your code for a simple problem. Perhaps starting from:
sys = ss(zpk(-1,[-2 -3],1))
sys = A = x1 x2 x1 -2 1 x2 0 -3 B = u1 x1 0 x2 2 C = x1 x2 y1 -0.5 0.5 D = u1 y1 0 Continuous-time state-space model.

댓글을 달려면 로그인하십시오.

답변 (1개)

shahin sharafi
shahin sharafi 2022년 4월 16일
Thank you so much

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by