State space model with disturbance
19 views (last 30 days)
Show older comments
@Paul If I have a system x_dot= [500 0;0 0.1]x+[50;0]u+[0 0.001]d and y= [0 1]x. So I want to make an LQR controller but my problem with the disturbance term and how can I deal with it?
2 Comments
Sam Chak
on 4 Apr 2022
Do you have the knowledge about the disturbance d?
Is the disturbance d bounded?
Try providing these info before @Paul comes.
Answers (2)
Sam Chak
on 5 Apr 2022
I refer to the state-space system from another post that you opened in the link:
where u is the controller, and w is the unmatched bounded disturbance that you mentioned above.
If the unmatched disturbance w is measuarable, then the proposed controller u is given by
where ζ and Ω are the two control parameters to be determined. Note that ζ is damping ratio and Ω is the undamped natural frequency of the control system.
If you let the autotuner to design the Linear Quadratic Regulator (LQR) for you and obtain the gains , then you can apply
.
Try it and show the result to see if it works or not.
4 Comments
Sam Chak
on 6 Apr 2022
Can you confirm if the following LQR u?
Can you confirm which of the following disturbance is true?
... as displayed in your code
... according to Ohm's Law
where .
The lsim() function can take multiple inputs, but the first input and the second input are fed into different "systems". You can find the desired output using the superposition principle if it holds.
Else, can you consider using the more direct approach with the ode45() method to feed in the LQR u and the disturbance w?
with initial condition , and .
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!