<< dcgain | Control System functions | dlyap >> |
[K, S, e] = dlqr(A, B, Q, R, N) |
[K, S, e] = dlqr(A, B, Q, R) |
State matrix: n x n matrix.
Input-to-state matrix: n x m matrix.
State-cost weighted matrix
Input-cost weighted matrix
Optional cross term matrix: 0 by default.
Optimal gain: row vector.
Solution of the Algebraic Riccati Equation.
Poles of the closed-loop system: column vector.
The dlqr function is designed to minimize a quadratic cost function associated with a discrete linear time-invariant state-space system model.
A = [0.9, 0.2; 0, 0.8];
B = [0; 2];
Q = [4, 0; 0, 4];
R = 3;
[K, S, e] = dlqr(A, B, Q, R)
lqr.
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET