how to choose LQR
143 次查看(过去 30 天)
显示 更早的评论
hello everyone i am trying to use LQR controller i simulate my system and have my A and B matrix ,, used theme in m-file and use the lqr function to control this system,,, is there any way to know what is the right value for Q and R ?? i try a lot of values for them but the results give me 2 positive values and that is wrong, all values must be negative depending on the choice of the Q and R. so is there any way make me know what is the right values for them instead of try and error ? please help
4 个评论
raja m
2014-7-31
There are some techniques to select value of Q and R in literature.please see to that............
采纳的回答
Shashank Prasanna
2013-2-9
LQR always returns a stabilizing feedback gain.
Are there 1 or 2 eigen values that are always show up positive?
You most likely have an uncontrollable mode in your system. As Azzi mentioned you have to just try different weights, choosing Q and R is part art, part science.
If you can provide the state space (A,B,C,D) for your plant, it would be useful.
8 个评论
Shashank Prasanna
2013-2-9
yes,
You have a negative feedback and this is not LQR Servo. You have to be careful with convention. LQR 'ALWAYS' returns a stabilizing gain matrix, as long as all modes are controllable. This is by construction. LQR does not care about your outputs i.e. C and D and it stabilizes the closed loop plant with the feedback gain K that gives you good properties at the plant input u
更多回答(3 个)
Azzi Abdelmalek
2013-2-8
编辑:Azzi Abdelmalek
2013-2-8
There is no systematic method to choose Q and R. You can start with
Q=eye(n) % n: number of states
R=eye(m) % m: number of inputs
Simulate your system in closed loop, then try to adjust your weighting coefficient Q and R. You have just to know, that more the weighting parameter is great, more the weighted signal is minimized.
You have to know, also, that you will need to insert integrators, if you want to correctly control your system
5 个评论
Shashank Prasanna
2013-2-9
shahad, you are trusting one or the other. I recon the model with no background is not of much value to anyone.
Fatma Yörük
2020-11-21
There are some optimization methods to find the best Q and R so that you achieve your desired performance. Most literature uses GA or PSO algorithms for it. However, some comparisons with the descent algorithm takes also part in. So, rather than the trial and error, trying to develop some optimisation-based algorithms might be more proper way.
2 个评论
cmcm
2013-2-9
编辑:Azzi Abdelmalek
2013-2-9
4 个评论
Azzi Abdelmalek
2013-2-9
Shahad, explain what you want to control. What are your references? And you can't control 3 output with 2 inputs, unless you want them to tend towards zero.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!