FUNCTION REFERENCE
dlqr
Design discrete quadratic state feedback.
Design discrete quadratic state feedback.
Syntax
[K,S,P] = dlqr(A,B,Q,R,N)N is optional and defaults to zero. Feedback u=-K*x minimizes the infinite sum of x'*Q*x+u'*R*u+2*x'*N*u for x_next=A*x+B*u. S is the stabilising DARE solution and P=eig(A-B*K). Uses ordered symplectic QZ; the relative Riccati residual must be at most 1e-10.
Example
[K,S,P]=dlqr([1 1;0 1],[0;1],eye(2),1);Differences from MATLAB: finite real double matrices only, positive definite R and at most 128 states and inputs. Use lqr(sys,Q,R) for discrete LTI objects.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.