Effacer les filtres
Effacer les filtres

How to design LQR problem for tracking a reference output

68 vues (au cours des 30 derniers jours)
pippo
pippo le 11 Juil 2013
Commenté : Sam Chak le 27 Juin 2024 à 15:38
Hi,
I am trying to design an optimal control for tracking a real time reference signal. As I know, the 'lqr/dlqr' command in MATLAB just works for regulator problem. Could anyone give me a help? or some reference readings.
Many thanks.
  1 commentaire
Shashank Prasanna
Shashank Prasanna le 11 Juil 2013
Could you elaborate on what you are looking for?

Connectez-vous pour commenter.

Réponses (2)

M
M le 28 Août 2018
You can use the lqi function.

Mohamed Abdullah
Mohamed Abdullah le 6 Nov 2022
you convert your problem to be in a regulator form. this is done by incorporating your desired states with the actual states in one vector and (that is the error vector) to be your new state vetor in this way, your controller is trying to bring the error between the desired and actual states or outputs to zero.
and the new cost function shall be
  2 commentaires
Amirah Algethami
Amirah Algethami le 27 Juin 2024 à 12:21
Thanks@Mohamed Abdullah can you provide me with matlab example code.As you explination is what I need exactly.
Sam Chak
Sam Chak le 27 Juin 2024 à 15:38
The computed gains from the LQR approach, "K = lqr(A, B, Q, R)", do not affect the tracking capability from a theoretical perspective. Have you tested your code to regulate a process variable at a constant value and to track a sinusoidal reference signal?
If you're having trouble, please post a new question with a toy problem and a simple LQR code for a second-order system.

Connectez-vous pour commenter.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by