# Control of inverted pendulum

15 vues (au cours des 30 derniers jours)
AG le 18 Nov 2019
Réponse apportée : AG le 5 Déc 2019
Hello everyone,
I'm playing with the Inverted Pendulum example : openExample('simulink_general/penddemoExample') in Command Window. I'm trying to understand which control theory stays behind the state space estimator and the choice of LQR parameters.
I don't find anything similar in literature, can anyone help me, please?
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Réponses (2)

M le 18 Nov 2019
I don't find anything similar in literature
LQR algorithm with state estimator is very common and you can find plenty of examples in the literature.
In the simulink example, the state space estimator is implemented with a discrete time state space equation:
And the LQR block is simply a matrix gain. You can find details about lqr in matlab here:
##### 3 commentairesAfficher 1 commentaire plus ancienMasquer 1 commentaire plus ancien
M le 20 Nov 2019
I did not look into details but it looks like the matrices inside the estimator block come from a linearization of the functions that model the cart + pendulum. I guess the linearization is made around the vertical position.
AG le 22 Nov 2019
Its look like we use the information of cart position and angle sensor "as is", the meaning of A=0 is that we don't consider the previous state but I don't understand why. If I linearize the generic model of a inverted pendulum on a cart I must use the general model where A is a 4x4 matrix and not 2x2.

Connectez-vous pour commenter.

AG le 5 Déc 2019
No one could help me?
Thank you very much!
##### 0 commentairesAfficher -2 commentaires plus anciensMasquer -2 commentaires plus anciens

Connectez-vous pour commenter.

### Catégories

En savoir plus sur Tuning, Analysis, and Validation dans Help Center et File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by