Mountain Car: Difference between revisions
RobertLampel (talk | contribs) No edit summary |
RobertLampel (talk | contribs) |
||
| Line 16: | Line 16: | ||
<math> | <math> | ||
\begin{array}{lll} | \begin{array}{lll} | ||
\displaystyle \min_{ | \displaystyle \min_{u} && t_f \\ | ||
\text{subject to} \\ | \text{subject to} \\ | ||
\quad \dot{ | \quad \dot{x}(t) & = & v(t),\\ | ||
\quad | \quad \dot{v}(t) & = & 0.001 \cdot u(t) - 0.0025 \cdot \cos(3 \cdot x(t)), \\ | ||
\quad x( | \quad x(0) &=& -0.5, \\ | ||
\quad | \quad v(0) &=& 0, \\ | ||
\quad x(t_f) &=& -0.5, \\ | |||
\quad v(t_f) & \geq & 0, \\ | |||
\quad u(t) & \in & [-1, 1] \ \quad \forall t \in [0,t_f] | |||
\end{array} | \end{array} | ||
</math> | </math> | ||
Revision as of 14:50, 20 August 2025
| Mountain Car | |
|---|---|
| State dimension: | 1 |
| Differential states: | 2 |
| Discrete control functions: | 1 |
The Mountain Car problem proposes a vehicle stuck in a “well.” It lacks the power to directly climb out of the well, but instead must accelerate repeatedly forwards and backwards until it has achieved the energy necessary to exit the well.
The problem is a popular machine learning test case. It first appeared in the PhD thesis of Andrew Moore in 1990. [Moo90]. The implementation here is taken from [] and based on that given by Melnikov, Makmal, and Briegel [MMB14]. Its dynamics are given by a two-dimensional ODE model.
The optimal integer control functions exhibits a bang bang structure.
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.
Miscellaneous and Further Reading
This formulation detailed description can be found in [1].
References
[1] https://apmonitor.com/do/index.php/Main/DynamicOptimizationBenchmarks