Jump to content

Cart Pendulum: Difference between revisions

From mintOC
Line 29: Line 29:
</math>
</math>
</p>
</p>
== Parameters ==
These fixed values are used within the model:
{| border="1" align="center" cellpadding="5" cellspacing="0"
|- bgcolor=#c7c7c7
! Symbol !! Value !! Description
|-
| align=center | <math>\alpha</math> || align=right | -0.75  || Nonlinear coefficient
|-
| align=center | <math>c</math> || align=right | 1 || Damping coefficient
|-
| align=center | <math>t_\mathrm{f}</math> || align=right | 8 || Horizon of the control problem
|-
| align=center | <math>\varepsilon_\mathrm{reg}</math> || align=right | 0.01 || Regularization of Fisher matrix
|-
| align=center | <math>\mathcal{U}</math> || align=right | [-1,1] || Bounds of control function
|-
| align=center | <math>\mathcal{W}</math> || align=right | [0,1] || Bounds of measurement function
|-
| align=center | <math>M_1, M_2</math> || align=right | 2 || Maximum measurement time
|}


== Reference Solutions ==
== Reference Solutions ==

Revision as of 08:40, 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

minu0tfαx(t)2+β(θπ)2+γu(t)2dtsubject tox˙(t)=x˙(t),θ˙(t)=θ˙(t),x¨(t)=u+mgsin(θ)cos(θ)+mθ˙2sin(θ)M+m(1cos(θ)2),θ¨(t)=gsin(θ)u+mgsin(θ)cos(θ)+mθ¨2sin(θ)M+m(1cos(θ)2)cos(θ),x(0)=0,θ(0)=0,x˙(0)=0,θ˙(0)=0,x(t)[2,2] t[0,tf],u(t)[30,30] t[0,tf],

Parameters

These fixed values are used within the model:

Symbol Value Description
α -0.75 Nonlinear coefficient
c 1 Damping coefficient
tf 8 Horizon of the control problem
εreg 0.01 Regularization of Fisher matrix
𝒰 [-1,1] Bounds of control function
𝒲 [0,1] Bounds of measurement function
M1,M2 2 Maximum measurement time

Reference Solutions

Here is one local solution to the above control problem.

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