Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
361 views
in Technique[技术] by (71.8m points)

MATLAB - Contrl theroy - LQG that corresponds to a cheap control strategy

I have been asked to design a CT LQG optimal feedback that corresponds to a cheap control strategy with the given A B and C matrices and analyse the resulting close-loop system (margins).

I have tried different implementations, but so far the response to the impulse stay the same as the original system, so I guess I'm missing something.

Here one of the scripts I coded so far:

A = [-(500/290) -(2350/290) (500/290) (2350/290);
        1           0            0       0  ;
        (500/40) (2350/40) -(500/40) -((2350+19000)/40) ;
        0           0           1           0];

B_u = [ 1/290;0; -1/40;0];
C = [1  0   -1  0;  0   1   0   -1];
D = [0;0];

CTsys = ss(A,B_u,C,D);


%weigth matrices
Q = [10000 0 0 0;
     0 10000 0 0;
     0 0 10000 0;
     0 0 0 10000;];
R = 1; 

%optimal gain 
K = lqr(A,B_u,Q,R)

[kest,L,P] = kalman(CTsys,100,R);
regulator = lqgreg(kest, K);

feedin = [1];
feedout = [1];

cl_sys = feedback(CTsys, regulator, feedin, feedout, +1);

impulse(CTsys,'r--',cl_sys,'b-')

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...