How to find the derivative of this Lyapunov function?

5 vues (au cours des 30 derniers jours)
RoBoTBoY
RoBoTBoY le 20 Mai 2021
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 commentaire
RoBoTBoY
RoBoTBoY le 20 Mai 2021
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)

Connectez-vous pour commenter.

Réponse acceptée

Sulaymon Eshkabilov
Sulaymon Eshkabilov le 20 Mai 2021
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

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Computations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by