powered by
Computes the unique solution to the continuous-time Riccati equation:
A'* X + X*A - X * B * R^-1 * B' * X + Q'*Q = 0
care(A, B, Q, R = 1)
State-matrix of a state-space system
Input-matrix of a state-space system
Symmetric output-matrix of a state-space system
Single number
Returns the stabilizing matrix, gain and closed-loop eigenvalues in a list.
X <- care(A, B, Q, R) returns the stablizing solution (if it exists) to the continuous-time Riccati equation.
X <- care(A, B, Q, R)
The care function also returns the gain matrix, G and a vector, L of the closed-loop eigenvalues, where
care
G
L
G = R^-1 B'X*E
L = eig(a-b*g)
# NOT RUN { a <- matrix(c(-3, 2,1, 1), byrow = TRUE, ncol = 2) b <- matrix(c(0, 1), nrow = 2) c <- matrix(c(1, -1), ncol = 2) q <- t(c)%*%c r <- 3 care(a, b, q, r) # }
Run the code above in your browser using DataLab