Are there workaround to avoid "Cannot compute a stabilizing LQR gain" error?
Show older comments
I came across an error when I executed LQR command.
A = 5000;
B = 1e-6;
Q = 1e+4;
R = 1;
[F,P,~] = lqr(A,B,Q,R);
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,E) 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.
However I could do calculation manually as follows.
X = (A+(A^2+B^2*Q)^0.5 )/B^2 = 1.0000e+16
Are any workaround to calculate the X and K (gain) for the A, B? I want to set smaller number to Q, but he could not because of error.
Accepted Answer
More Answers (0)
Categories
Find more on State-Space Control Design 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!