Designing LQR controller error
Show older comments
I am trying to design LQR for a 7x7 system.
A = 0 -0.628971428568773 0 0 0 0 0.999999999999951
-0.0239070502560970 0 0 0 1.26736762437470 0.404734566388548 0
-9.73903523911518e-06 0 1.95035679041857 -0.951171532106457 0.000516288618732924 0.000164877061884321 0
0 0 1 0 0 0 0
0.383799830372633 0 0 0 0.854813237018843 -0.138991455550305 0
-0.00476707865861458 0 0 0 0.0327470424766583 0.967898772564207 0
0 -0.157242857142201 0 0 0 0 1
B = 0.628971428571398
0
0
0
0
0
0.157242857142857
C = 0 0 1.00834336091157 0.991656639088434 0 0 0
D = 0
The system has poles on right half plane but is controllable,
rank(ctrb(A,B))
= 7.
When I try
K = lqr(A,B,Q,R)
, I get below. I fail to see what's happening here in view of the information above. Could someone clarify?
Error using lqr (line 42)
Cannot compute a stabilizing LQR gain (the Riccati solution S and gain matrix K are infinite).
This could be because:
* A has unstable modes that are not controllable through B,
* Q,R,N values are too large,
* [Q N;N' R] is indefinite,
* The E matrix in the state equation is singular.
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!