update BE.m

This commit is contained in:
Tom Aymonnier 2021-05-25 10:17:37 +02:00
parent bb91f9195c
commit f4c3a0568a

20
BE.m
View file

@ -61,29 +61,29 @@ title("R
% Variation de Q % Variation de Q
figure figure
for i = [1:100] for i = [1:10]
[G, K, lambda]=lqr(A,B,i*Q,R); [G, K, lambda]=lqr(A,B,10*i*Q,R);
Abf=A-B*G; Abf=A-B*G;
sysZsBF = ss(Abf, E, C_st, 0); sysZsBF = ss(Abf, E, C_st, 0);
Zs_BF = tf(sysZsBF) Zs_BF = tf(sysZsBF);
step(0.08*sysZsBF) step(0.08*sysZsBF);
hold on hold on;
end end
figure figure
for i= [1:100] for i= [1:10]
[G, K, lambda]=lqr(A,B,i*Q,R); [G, K, lambda]=lqr(A,B,10*i*Q,R);
Abf=A-B*G; Abf=A-B*G;
sysZuBF = ss(Abf, E, C_ut, 0); sysZuBF = ss(Abf, E, C_ut, 0);
Zu_BF = tf(sysZuBF) Zu_BF = tf(sysZuBF);
step(0.08*sysZuBF) step(0.08*sysZuBF);
hold on hold on;
end end
%commande obtenue par u=-Gx, C=-G %commande obtenue par u=-Gx, C=-G