which deviation regulates the lqr exactly
3 次查看(过去 30 天)
显示 更早的评论
i have a running simulation in which i want to use an lqr controller, did i understand correctly? that the lqr brings the deviation from zero in the initial conditions back to zero, and in that case should I enter the initial conditions as parameters that are updated during the simulation?
my second question is: the system matrix A is dependent on other parameters (speed) in the simulation so that it is constantly changing, will then in each step during the simulation the Lqr calculate new A matrix and therefore output new K values? is that possible?
0 个评论
回答(1 个)
Prathamesh
2023-7-28
Hi,
I understand that you want to know how “lqr” algorithm works and how is K matrix computed when A is a variable matrix.
LQR basically decreases the sum of square of errors between the actual state and desired state.
Initial condition is basically initial state of the system. You can input it based on your system.
Refer to the documentation of LQR for more information about this.
Now if A and B are state dependent or variable matrices then the lqr algorithm solves state dependent Riccati equation (SDRE)
LMI is a better tool solve these equations, refer to the documentation below.
Also, refer to this paper to get more information on this topic.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!