how to choose LQR
古いコメントを表示
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 件のコメント
Shashank Prasanna
2013 年 2 月 9 日
Please look at my answer below.
Jan Schellekens
2014 年 1 月 22 日
編集済み: Jan Schellekens
2014 年 1 月 22 日
"eig(Ai+Bi*K)" is wrong, it should be "eig(Ai-Bi*K)" for negative feedback, which is used by the lqr function of Matlab. For eig(Ai-Bi*K) all real parts of the eigenvalues become negative:-)
raja m
2014 年 7 月 31 日
There are some techniques to select value of Q and R in literature.please see to that............
Jose Almeida
2015 年 6 月 20 日
Can you reference some literature? Thank you
採用された回答
その他の回答 (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 件のコメント
cmcm
2013 年 2 月 8 日
cmcm
2013 年 2 月 8 日
Azzi Abdelmalek
2013 年 2 月 8 日
Post your system, and the states you want to control
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.
cmcm
2013 年 2 月 9 日
Fatma Yörük
2020 年 11 月 21 日
1 投票
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 件のコメント
Victory Friday
2022 年 1 月 31 日
Please can you help me with one of the pso for A and RN matrix
manohar sahu
2022 年 11 月 8 日
Can you please let me know how to implement pso for lqr controller
cmcm
2013 年 2 月 9 日
編集済み: Azzi Abdelmalek
2013 年 2 月 9 日
4 件のコメント
Azzi Abdelmalek
2013 年 2 月 9 日
You can' control three outputs with two inputs. The LQR function calculate the gain K which minimize your 8 states and your two inputs. If you want to obtains all your states equals to zero it's ok. But if you want your three outputs to fellow certain references, you can't.
cmcm
2013 年 2 月 9 日
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.
カテゴリ
ヘルプ センター および File Exchange で Tuning Goals についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!