How to find the derivative of this Lyapunov function?

조회 수: 7 (최근 30일)
RoBoTBoY
RoBoTBoY 2021년 5월 20일
답변: Sulaymon Eshkabilov 2021년 5월 20일
Hello!
I want to find the derivative of this Lyapunov function with respect to the differentiation parameters e, ΔKx, ΔKr.
where ΔKx = Kx_hat - Kx and ΔKr = Kr_hat - Kr , that is
Thanks in advance!
  댓글 수: 1
RoBoTBoY
RoBoTBoY 2021년 5월 20일
I tried that, but without results.
Kx = sym('Kx');
Kr = sym('Kr');
Kx_hat = sym('Kx_hat');
Kr_hat = sym('Kr_hat');
gamma_x = sym('gamma_x');
gamma_r = sym('gamma_r');
Lambda = sym('Lambda');
e = sym('e');
P = sym('P');
DKx = Kx_hat - Kx;
DKr = Kr_hat - Kr;
V = e'*P*e + trace(DKx'*(gamma_x^-1)*DKx*abs(Lambda)) + trace(DKr'*(gamma_r^-1)*DKr*abs(Lambda));
diff_V = diff(V,e,DKx,DKr)

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

채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 5월 20일
You have overlooked a couple of points
V does not contain Kx_hat,Kx, Kr_hat, Kr variables and thus, no need to introduce:
DKx = Kx_hat - Kx;
DKr = Kr_hat - Kr;
syms gamma_x gamma_r Lambda E P
syms DKx DKr
syms V(E, DKx, Dkr)
V = E'*P*E + trace(DKx'*(gamma_x^-1)*DKx*abs(Lambda)) + trace(DKr'*(gamma_r^-1)*DKr*abs(Lambda));
diff_V_e = diff(V, E)
diff_V_DKx = diff(V,DKx)
diff_V_DKr = diff(V,DKr)
Good luck

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Computations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by