Cart Pendulum: Difference between revisions
Appearance
RobertLampel (talk | contribs) Created page with "{{Dimensions |nd = 1 |nx = 3 |nw = 2 }} The '''Cart Pendulum problem''' concerns a pendulum hinged to a mobile cart. The control objective is to transition the pendulum from a downward position to a stabilized, inverted state above the cart. In this formulation, the objective function is defined by a composite of least-squares terms. The implementation here is taken from [1]. Its dynamics are given by a four-dimensional :Category:..." |
RobertLampel (talk | contribs) |
||
| Line 14: | Line 14: | ||
<math> | <math> | ||
\begin{array}{lll} | \begin{array}{lll} | ||
\displaystyle \min_{ | \displaystyle \min_{u} && \int_{0}^{t_f} dt \\ | ||
\text{subject to} \\ | \text{subject to} \\ | ||
\quad \dot{x}(t) & = & | \quad \dot{x}(t) & = & \dot{x}(t),\\ | ||
\quad \dot{\theta}(t) & = & | \quad \dot{\theta}(t) & = & \dot{\theta}(t), \\ | ||
\quad \ | \quad \ddot{x}(t) & = & \frac{u + m \cdot g \cdot \sin(\theta) \cdot \cos(\theta) + m \cdot \dot{\theta}^2 \cdot \sin(\theta)}{M + m \cdot (1 - \cos(\theta)^2)}, \\ | ||
\quad | \quad \ddot{\theta}(t) & = & -g \cdot \sin(\theta) - \frac{u + m \cdot g \cdot \sin(\theta) \cdot \cos(\theta) + m \cdot \ddot{\theta}^2 \cdot \sin(\theta)}{M + m \cdot (1 - \cos(\theta)^2)} \cdot \cos(\theta), \\ | ||
\quad | \quad x(0) &=& 0, \\ | ||
\quad | \quad \theta(0) &=& 0, \\ | ||
\quad \dot{x}(0) &=& 0, \\ | |||
\quad \dot{\theta}(0) &=& 0, \\ | |||
\quad t_f &\geq& 0, \\ | \quad t_f &\geq& 0, \\ | ||
\quad | \quad x(t) &\in& [-2,2] \ &\quad \forall t \in [0,t_f], \\ | ||
\ | \quad u(t) &\in& [-30,30] \ &\quad \forall t \in [0,t_f], \\ | ||
\quad | |||
\end{array} | \end{array} | ||
</math> | </math> | ||
Revision as of 08:38, 3 February 2026
| Cart Pendulum | |
|---|---|
| State dimension: | 1 |
| Differential states: | 3 |
| Discrete control functions: | 2 |
The Cart Pendulum problem concerns a pendulum hinged to a mobile cart. The control objective is to transition the pendulum from a downward position to a stabilized, inverted state above the cart. In this formulation, the objective function is defined by a composite of least-squares terms.
The implementation here is taken from [1]. Its dynamics are given by a four-dimensional ODE model.
Mathematical formulation
Reference Solutions
Here is one local solution to the above control problem.
- Reference solution plots
-
States and discretized control for a local optimum. The free end time was modeled using the additional control .
Miscellaneous and Further Reading
This formulation and a detailed description can be found in [1].
References
[1] Multidisciplinary Optimal Control Library: https://openmdao.org/dymos/docs/latest/examples/moon_landing/moon_landing.html