Next Article in Journal
Correction: Alanazi et al. Photovoltaic Models’ Parameter Extraction Using New Artificial Parameterless Optimization Algorithm. Mathematics 2022, 10, 4617
Previous Article in Journal
Novel Iterative Reweighted 1 Minimization for Sparse Recovery
Previous Article in Special Issue
Iterative Kneser-Type Criteria for Oscillation of Half-Linear Second-Order Advanced Dynamic Equations
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Invariant-Based Inverse Engineering for Balanced Displacement of a Cartpole System

by
Ion Lizuain
1,2,*,
Ander Tobalina
1,2 and
Alvaro Rodriguez-Prieto
1,2
1
Department of Applied Mathematics, University of the Basque Country UPV/EHU, 48940 Leioa, Spain
2
EHU Quantum Center, University of the Basque Country UPV/EHU, 48940 Leioa, Spain
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(8), 1220; https://doi.org/10.3390/math13081220
Submission received: 28 February 2025 / Revised: 1 April 2025 / Accepted: 3 April 2025 / Published: 8 April 2025

Abstract

:
Adiabaticity is a key concept in physics, but its applications in mechanical and control engineering remain underexplored. Adiabatic invariants ensure robust dynamics under slow changes, but they impose impractical time limitations. Shortcuts to Adiabaticity (STA) overcome these limitations by enabling fast operations with minimal final excitations. In this work, we set a STA strategy based on dynamical invariants and inverse engineering to design the trajectory of a cartpole, a system characterized by its instability and repulsive potential. The trajectories found guarantee a balanced transport of the cartpole within the small oscillations regime. The results are compared to numerical simulations with the exact non-linear model to set the working domain of the designed protocol.
MSC:
70H11; 70H03; 70H14; 49M99; 93D99

1. Introducton

Underactuated systems, characterized by having fewer control inputs than degrees of freedom, are prevalent in a multitude of applications, ranging from robotics and aerospace to biomechanics [1,2]. These systems present significant control challenges due to inherent nonlinearities and limited actuation capabilities. Consequently, the development of effective control strategies for these systems, which are crucial for many economically relevant areas, has been an active field of research over the last decades.
The cartpole system has become a widely recognized benchmark for evaluating control strategies for underactuated systems. This inverted pendulum setup, consisting of a pole hinged to a cart moving along a horizontal track (see Figure 1), has been intensively studied in control theory because of its direct applications in various areas such as personal transport devices [3] and robotics [4].
Control strategies based on PID control have been combined with genetic algorithms [5] and with LQR control [6,7]. PD controllers have also been applied to cartpoles moving along variable slope surfaces [8]. Novel sliding mode control approaches have been specifically designed for the cartpole [9,10] and intelligent control strategies; approaches based in fuzzy logic [11,12] or artificial neural networks [13] have been used.
Moreover, control strategies are a usual benchmark for reinforcement learning algorithms and neouromorphic computing [14]. Recently, these approaches have allowed to extend the cartpole system to the quantum realm, where classical machine learning techniques have been used to balance the system [15]. Here, we take the same path but in the opposite direction. We apply control techniques originally developed for quantum systems to the classical cartpole system.
The concept of adiabaticity is ubiquitous in physics, but it is not fully exploited in control engineering. Adiabatic theorems set the existence of approximate adiabatic invariants, such as the action integral in classical mechanics, when the control parameters vary slowly enough in time [16]. “Shortcuts To Adiabaticity” (STA) is a set of control methods developed to reach the same results of an adiabatic protocol in short times [17,18]. Adiabaticity is often used to drive systems in a robust manner. An example is a load hanging from an overhead crane. If the motion is slow enough, the energy of the pendulum is an adiabatic invariant and stays constant. In particular, if the load starts at the minimum energy configuration, this state is preserved throughout the operation [19,20,21]. STA accelerate the process and still achieve the same result, avoiding issues related to long operation times such as accumulation of random and/or uncontrollable perturbations.
STA methods have been succesfully applied to a variety of control operations with quantum systems: quantum computation [22,23,24,25], cooling [26,27], quantum transport [28,29], quantum state preparation [30,31,32,33], manipulation of cold atoms [34,35,36,37,38,39], or control of polyatomic molecules [40]. Perhaps surprisingly, because of the differing orders of magnitude involved, the dynamics of the cartpole are closely related to those of a microscopic particle transport in moving traps [28,41]. In both domains, the linearized models imply the displacement of an inverted harmonic oscillator.
Cartpole control tasks usually correspond to either swing-up operations, where the pole moves from a downwards vertical position to the unstable equilibruim point at the vertical upwards position, or to balance operations, where the goal is to mantain the system at the upwards position. Here, besides aiming for balance, we consider a specific dynamical task, the displacement of the cart such that the cartpole starts in the upwards vertical positions at certain location and finishes at a different position in the same balanced configuration. The design of the control operation is far from trivial since we deal with a repulsive potential with unstable equilibrium [42]. Our STA approach is presented here without feedback, but it may be combined with feedback control techniques.
The article is organized as follows. The physical model and Hamiltonian of the system are set in Section 2, both in exact form and in the small oscillation regime. In Section 3, dynamical invariants are identified and the STA protocol is designed. Numerical results are presented in Section 4 and finally, in Section 5, we end with the conclusions and discuss some open questions.

2. Physical Model and Basic Equations

The physical model and relevant parameters are shown in Figure 1. The model assumes several conditions and idealizations: (i) the mass of the wires and friction are neglected; (ii) point masses; (iii) constant wire lengths l; (iv) the cartpole position is treated as a control parameter rather than a dynamical variable. This last assumption is a common simplification [43], often used to facilitate control design, but it requires a well-designed controller to ensure accurate implementation. A more fundamental approach, where the cartpole position is treated as a dynamical variable, is also be possible and would allow for a more detailed analysis of energy consumption of STA protocols as explored in [19].
In terms of the generalized angle θ , the position of the load is given by its cartesian coordinates
x ( t ) = x 0 ( t ) + l sin θ ( t ) ; y ( t ) = l cos θ ( t )
where the cartpole’s position x 0 ( t ) is the control parameter to be engineered. The kinetic (T) and potential (V) are written as
T = 1 2 m x ˙ 2 + y ˙ 2 ; V = m g y ,
where dots represent time derivatives and where we drop the explicit time dependence from the variables for simplicity. The Lagrangian of the system can then be written as L = T V , from where the equation of motion of the load can be easily derived from Euler–Lagrange equations d d t L θ ˙ L θ = 0 ,
l θ ¨ g sin θ = x ¨ 0 cos θ .
Using now the horizontal displacement of the mass q = l sin θ as the new variable and assuming small oscillations, the dynamics of the system are described, to the first order in θ , by the linear equation
q ¨ ω 2 q = x ¨ 0
which corresponds to a forced inverted harmonic oscillator with natural frequency ω 2 = g / l . It is easy to show that this equation of motion may also be derived from the Hamiltonian
H = p 2 2 m 1 2 m ω 2 q 2 + m x ¨ 0 q ,
where in this small oscillation regime p = m q ˙ . This approximation linearizes the dynamical equations of motion of the system. Results found with exact and approximate dynamics are compared later to check the validity of the approximation and its limits.

3. Shortcuts to Adiabaticity

3.1. Dynamical Invariant

A dynamical invariant of a Hamiltonian system remains constant during the time evolution [44]. If I is an invariant of H, the following equation is satisfied:
d I d t = t I + { I , H } = 0 ,
where { I , H } refers to the Poisson bracket. Quadratic Hamiltonians with a linear in position term form the so-called Lewis–Leach family of Hamiltonians whose quadratic invariants are explicitly known [45]. The invariant I of the Hamiltonian of our particular system needs some minor modifications from the Lewis–Leach invariants [18,45] due to the repulsive behaviour of the potential involved. In particular, let us take the following expression for I:
I = 1 2 m p m α ˙ 2 1 2 m ω 2 q α 2 ,
whose time derivative
d I d t = I t + H p I q H q I p = m α ˙ p α ¨ ω 2 α + x ¨ 0
is identically zero as long as the function α ( t ) satisfies the auxiliary equation
α ¨ ω 2 α = x ¨ 0 .
Therefore, if α ( t ) satisfies the above equation, I, as defined in Equation (7), is a dynamical invariant of the Hamiltonian (5) and remains constant during the time evolution of the system. This auxiliary equation (9) is the Newton equation of motion for a forced harmonic (and inverted) oscillator. This α function may be regarded as an auxiliary function satisfying the same Newton equation (4). However, we impose to α some extra boundary conditions that guarantee zero final excitations as we see further.

3.2. Shortcut to Adiabaticity

Let us now impose the following boundary conditions (BC) for the auxiliar equation just derived:
α ( t b ) = α ˙ ( t b ) = α ¨ ( t b ) = 0 .
where t b = 0 , t f stands for boundary times. These boundary conditions guarantee that the invariant I in Equation (7) coincides with the Hamiltonian H at initial and final times. Moreover, at boundary times, the imposed BCs also imply that x ¨ ( t b ) = 0 so that the Hamiltonian represents the total mechanical energy of the system. Therefore, if the above BCs are satisfied, the invariant I, Hamiltonian H, and total mechanical energy E coincide at boundary times, I ( t b ) = H ( t b ) = E ( t b ) . Then, if a fast finite-time process is designed so that the auxiliary function α satisfies boundary conditions in (10), the energy at initial and final times coincides regardless of the initial conditions since
E ( 0 ) = H ( 0 ) = I ( 0 ) = I ( t f ) = H q ( t f ) = E ( t f ) .
One must be careful when considering the equality of energy at the initial and final times, given the repulsive nature of the potential. The proposed shortcut guarantees that H (and therefore the total energy) remains the same at the boundary times, independent of the initial conditions. However, due to the instability introduced by the repulsive potential, the presented shortcut is physically meaningful only if the pendulum starts in equilibrium, i.e., at rest in the vertical position. These null initial conditions are assumed throughout the rest of the work.
In the following, we show how to construct the cartpole trajectory x 0 ( t ) by means of an inverse engineering approach so that the desired conditions in (10) are satisfied.

3.3. Inverse Engineering

The inverse engineering strategy is relatively simple. From (9) and integrating twice with respect to time, we write the cartpole trajectory as
x 0 ( t ) = 0 t 0 τ 2 ω 2 α ( τ 1 ) α ¨ ( τ 1 ) d τ 1 d τ 2 .
This function should also obey some physical boundary conditions. In particular, we must impose at final time that
x 0 ( t f ) = d ;   x ˙ 0 ( t f ) = 0
i.e., the transported distance and the final time smooth operation. There are, in summary, eight boundary conditions to be satisfied: the six conditions for α ( t ) given in (10), plus these final times conditions (13). Note that the conditions at initial times x 0 ( 0 ) = x ˙ 0 ( 0 ) = 0 do not have to be imposed since they are automatically satisfied by construction.
We adopt a seventh-degree polynomial ansatz for the auxiliary function α :
α ( t ) = k = 0 7 a k τ k
where τ = t / t f . The eight free parameters a k are determined by imposing the corresponding boundary conditions. This ansatz is one possible choice among many functional forms. However, we select this polynomial ansatz for its simplicity, favorable mathematical properties (such as smoothness and ease of differentiation), and its flexibility in efficiently satisfying boundary conditions.
Paramateres a 0 , , a 5 are obtained imposing (10), while the remaining a 6 , a 7 are obtained imposing (13). This leads to the following cartpole trajectory:
x 0 ( t ) = d 126 τ 5 420 τ 6 + 540 τ 7 315 τ 8 + 70 τ 9 + 1 ω 2 t f 2 2520 τ 3 + 12600 τ 4 22680 τ 5 + 17640 τ 6 5040 τ 7 .
Some cartpole trajectories and velocities for different parameters are shown in Figure 2.
For short times, the velocities and accelerations involved in the process are quite large, as expected, and there are several segments of braking and acceleration. On the other hand, for slow processes ( ω t f 1 ), the second term in (15) vanishes and the trajectory x 0 ( t ) tends asymptotically to
x ( t ) = d 126 τ 5 420 τ 6 + 540 τ 7 315 τ 8 + 70 τ 9 .
In this regime, there is only one acceleration time segment up to t f / 2 (inflexion point of x ) and a subsequent braking segment. The maximal velocity reached by the cartpole in ths asymptotic scenario is x ˙ ( t f / 2 ) = 315 128 d t f .
In spite of the high order of the polynomial ansatz, the force required to generate such a trajectory is perfectly feasible. It is also noteworthy that, within this STA scheme, the complete trajectory of the cart from initial to final process time is set beforehand. We do not need any feedback sensors such as encoders or inertial measurement units to adjust the trajectory accordingly during the process time. This significantly facilitates the actual implementation of the trajectory in the control system, where actuators like motors or servos convert control signals into physical movements of the cart, indirectly influencing the pole dynamics [10,46,47].

4. Numerical Results

Once the trajectory for the cartpole is designed, the dynamical equation of motion can be integrated either numerically in its exact form (3) or analytically in its approximated, harmonic linearized version (4). See some results in Figure 3.
It is important to underline that the designed shortcut protocol works as long as the small oscillation regime holds, i.e., as long as the swing angle θ is small throughout the transport process. As previously commented, we only consider the case where the cartpole is initially in equilibrium (null initial conditions). In this situation, a perfect shortcut should lead to the same final configuration (pendulum in equilibrium). This is indeed what happens if the linear equation of motion is integrated (red dashed lines in Figure 3). In the exact case, however, deviations from the target final configuration are observed (blue solid lines in Figure 3). For large transport distances d, short pendulum lengths l, or short process times t f , anharmonic effects become more and more important, deviating from the ideal result and limiting the validity of our shortcut protocol. We study these non-linear effects in detail in the following sub-section.

Non-Linear Effects

Let us start by looking at the contributions that the different physical parameters offer to the the non-linear effects in dynamical Equation (3) with the cartpole trajectory given by (15). The role of the transport distance d and pendulum length l is clear. Larger distances d imply larger accelerations, so an increase in anharmonic effects is expected, and a larger pendulum implies a flatter potential, so the non-linear effects decrease as l increases.
The effect of the transport total time t f is not that clear at first sight. This quantity enters the differential equation as a parameter via the cartpole’s acceleration term on the right hand side of (3). It is then clear that longer processes imply lower accelerations, so that non-linear effects decrease as t f increases. But, on the other hand, t f also enters the dynamical equation as the final integration limit. Therefore, long processes also imply an increase in the anharmonic effects since for longer integration times these effects start to accumulate, leading to undesired final time excitations.
This is more clearly visualized if we write (3) using a dimensionless time τ = t / t f as a parameter. The equation of motion (that should be now integrated from τ = 0 to τ = 1 ) takes the dimensionless form
θ ¨ = g t f 2 l sin θ d l a 1 cos θ d g t f 2 a 2 cos θ ,
where dots now represent derivatives with respect to τ and a 1 , 2 are different terms of a dimensionless acceleration
a 1 ( τ ) = 5040 τ 7 17640 τ 6 + 22680 τ 5 12600 τ 4 + 2520 τ 3
a 2 ( τ ) = 211680 τ 5 + 529200 τ 4 453600 τ 3 + 151200 τ 2 15120 τ .
The effect of each parameter is now clear: larger d or smaller l imply larger non-linear effects, whereas the effect of t f is twofold, so a compromise in this magnitude is needed.
To quantify the excitation at final time in a way that is easy to understand and visualize, we measure the final energy Δ E in terms of a fictitious angle Θ . This angle is defined as the final angle when the final energy is considered (artificially) to be purely potential. This angle is a way to measure the final excitation energy in terms of a more visual quantity. Taking the pendulum vertical position as the zero of the potential energy and considering null initial conditions (pendulum initially in equlibrium), the initial energy is E ( 0 ) = 0 , so the energy difference is given by
Δ E = E ( t f ) E ( 0 ) = 1 2 m l 2 θ ˙ ( t f ) 2 + 2 m g l sin 2 θ ( t f ) 2 ,
where the values of θ and θ ˙ at t = t f are obtained by numerically integrating (3). This final energy has contributions from both kinetic and potential energies. One can artificially consider this final energy to be purely potential by defining the ficticious angle Θ by the relation Δ E = 2 m g l sin 2 Θ 2 so that
Θ = 2 arcsin l θ ˙ ( t f ) 2 4 g + sin 2 θ ( t f ) 2 .
Some results of this quantity are shown in Figure 4 in different scenarios. As previously commented, for a given configuration of transport distance d and pendulum length l, excessively short or long processes lead to undesired final excitations.
One can also numerically obtain the optimal value of each process time t f so that the resultant ficticious angle Θ is minimal for a given d-l configuration (minima of each curve in Figure 4); see some results and comments in Figure 5.

5. Conclusions

In this work, an invariant-based inverse engineering STA method is applied to design the balanced displacement of a cartpole system. The cartpole is a mechanical system characterized by its instability and repulsive potential.
First, we set the physical model and basic equations. The equation of motion derived from the Euler–Lagrange equations corresponds to a forced inverted harmonic oscillator and may also be derived from the Hamiltonian presented in Equation 5. Then, we find an invariant of motion for such a Hamiltonian. This requires some minor modifications of Lewis–Leach dynamical invariants due to the repulsive potential characterizing our system. An inverse engineering strategy is then followed in order to design the desired trajectory of the cart. It is remarkable that no feedback control is required whatsoever.
The designed transport protocol minimizes final energy excitations. Numerical simulations using the exact non-linear model allow us to check the parameter interval, or regime of validity, where our protocol works accurately. We also quantify the final excitations due its inherent non-linear behavior. These simulations validate the effectiveness of the chosen approach as long as the parameters keep within the proper regime, demonstrating its potential for practical applications in robotics and automation.
The results highlight the advantages of STA methods in overcoming the limitations of adiabatic processes, which, while robust, impose impractically long operation times. The inverse engineering approach allows us to generate trajectories that achieve fast and minimal excitation transport, expanding the applicability of STA beyond quantum and microscopic systems to classical mechanical engineering problems.
One of the key features of the STA approach we follow is its flexibility. It should be underlined that we do not really optimize the trajectory. We inverse engineer the trajectory by means of a polinomial ansatz, but of course this choice, and therefore the solutions to the inverse problem, are not unique, leaving room for further optimization based on specific performance criteria, such as robustness to different kindd of perturbations and/or energy cost and efficiency.
Although this work focuses on non-feedback control, hybrid control strategies combining STA with some feedback mechanism is an interesting open line for future research. Future work could also explore the extension of this protocol to more complex systems such as dynamical systems with higher degrees of freedom (double or triple pendulums). These extensions would further improve the robustness of the method to real-world industrial and robotic applications.

Author Contributions

Conceptualization, I.L., A.T. and A.R.-P.; Methodology, I.L., A.T. and A.R.-P.; Formal analysis, I.L., A.T. and A.R.-P.; Data curation, I.L.; Writing—original draft, I.L., A.T. and A.R.-P.; Writing—review and editing, I.L., A.T. and A.R.-P. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Basque Government through Grant No. IT1470-22 and Spanish Government MCIU through Grant No. PID2021-126273NB-I00.

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Spong, M.W. Underactuated mechanical systems. In Proceedings of the Control Problems in Robotics and Automation; Siciliano, B., Valavanis, K.P., Eds.; Springer: Berlin/Heidelberg, Germany, 1998; pp. 135–150. [Google Scholar]
  2. Liu, Y.; Yu, H. A survey of underactuated mechanical systems. IET Control. Theory Appl. 2013, 7, 921–935. [Google Scholar] [CrossRef]
  3. Nikpour, M.; Huang, L.; Al-Jumaily, A.M. Stability and Direction Control of a Two-Wheeled Robotic Wheelchair Through a Movable Mechanism. IEEE Access 2020, 8, 45221–45230. [Google Scholar] [CrossRef]
  4. Huang, Q.; Yokoi, K.; Kajita, S.; Kaneko, K.; Arai, H.; Koyachi, N.; Tanie, K. Planning walking patterns for a biped robot. IEEE Trans. Robot. Autom. 2001, 17, 280–289. [Google Scholar] [CrossRef]
  5. Chakraborty, K.; Mukherjee, R.R.; Mukherjee, S. Tuning of PID Controller of Inverted Pendulum using Genetic Algorithm. Int. J. Soft Comput. Eng. (IJSCE) 2013, 3, 2231. [Google Scholar]
  6. Prasad, L.B.; Tyagi, B.; Gupta, H.O. Optimal Control of Nonlinear Inverted Pendulum System Using PID Controller and LQR: Performance Analysis Without and With Disturbance Input. Int. J. Autom. Comput. 2015, 11, 661. [Google Scholar] [CrossRef]
  7. Mousa, M.E.; Hassan, M.A.E.; Moustafa Hassan, M.A. Stabilizing and Swinging-Up the Inverted Pendulum Using PI and PID Controllers Based on Reduced Linear Quadratic Regulator Tuned by PSO. Int. J. Syst. Dyn. Appl. (IJSDA) 2015, 4, 52–69. [Google Scholar] [CrossRef]
  8. Wang, Y. PD-Based Control of cartpole System on Inclined Plane with Variable Slope. J. Phys. Conf. Ser. 2022, 2216, 012064. [Google Scholar] [CrossRef]
  9. Yih, C.C. Sliding Mode Control for Swing-Up and Stabilization of the cartpole Underactuated System. Asian J. Control. 2013, 15, 1201–1214. [Google Scholar] [CrossRef]
  10. Aguilar-Ibáñez, C.; Mendoza-Mendoza, J.; Dávila, J. Stabilization of the cart pole system: By sliding mode control. Nonlinear Dyn. 2014, 78, 2769. [Google Scholar] [CrossRef]
  11. Li, T.-H.S.; Shieh, M.-Y. Switching-type fuzzy sliding mode control of a cart–pole system. Mechatronics 2000, 10, 91–109. [Google Scholar] [CrossRef]
  12. Roose, A.I.; Yahya, S.; Al-Rizzo, H. Fuzzy-logic control of an inverted pendulum on a cart. Comput. Electr. Eng. 2017, 61, 31–47. [Google Scholar]
  13. Geva, S.; Sitte, J. A cartpole experiment benchmark for trainable controllers. IEEE Control. Syst. Mag. 1993, 13, 40–51. [Google Scholar]
  14. Plank, J.S.; Rizzo, C.P.; White, C.A.; Schuman, C.D. The cartpole Application as a Benchmark for Neuromorphic Computing. J. Low Power Electron. Appl. 2025, 15, 5. [Google Scholar] [CrossRef]
  15. Wang, Z.T.; Ashida, Y.; Ueda, M. Deep Reinforcement Learning Control of Quantum cartpoles. Phys. Rev. Lett. 2020, 125, 100401. [Google Scholar] [CrossRef] [PubMed]
  16. Sakurai, J.J. Modern Quantum Mechanics, rev. ed.; Adison-Wesley: Reading, MA, USA, 1994. [Google Scholar]
  17. Torrontegui, E.; Ibáñez, S.; Martínez-Garaot, S.; Modugno, M.; del Campo, A.; Guéry-Odelin, D.; Ruschhaupt, A.; Chen, X.; Muga, J.G. Shortcuts to Adiabaticity. Adv. At. Mol. Opt. Phys. 2013, 62, 117–169. [Google Scholar]
  18. Guéry-Odelin, D.; Ruschhaupt, A.; Kiely, A.; Torrontegui, E.; Martínez-Garaot, S.; Muga, J.G. Shortcuts to adiabaticity: Concepts, methods, and applications. Rev. Mod. Phys. 2019, 91, 045001. [Google Scholar]
  19. Torrontegui, E.; Lizuain, I.; González-Resines, S.; Tobalina, A.; Ruschhaupt, A.; Kosloff, R.; Muga, J.G. Energy consumption for shortcuts to adiabaticity. Phys. Rev. A 2017, 96, 022133. [Google Scholar]
  20. González-Resines, S.; Guéry-Odelin, D.; Tobalina, A.; Lizuain, I.; Torrontegui, E.; Muga, J. Invariant-based inverse engineering of crane control parameters. Phys. Rev. Appl. 2017, 8, 054008. [Google Scholar] [CrossRef]
  21. Lizuain, I.; Tobalina, A.; Rodriguez-Prieto, A.; Muga, J.G. Invariant-Based Inverse Engineering for Fast and Robust Load Transport in a Double Pendulum Bridge Crane. Entropy 2020, 22, 350. [Google Scholar] [CrossRef]
  22. Sarandy, M.; Duzzioni, E.; Serrac, R. Quantum computation in continuous time using dynamic invariants. Phys. Lett. A 2011, 375, 3343–3347. [Google Scholar] [CrossRef]
  23. Palmero, M.; Martínez-Garaot, S.; Leibfried, D.; Wineland, D.J.; Muga, J. Fast phase gates with trapped ions. Phys. Rev. A 2017, 95, 022328. [Google Scholar]
  24. del Campo, A.; Rams, M.M.; Zurek, W.H. Assisted Finite-Rate Adiabatic Passage Across a Quantum Critical Point: Exact Solution for the Quantum Ising Model. Phys. Rev. Lett. 2012, 109, 115703. [Google Scholar] [CrossRef] [PubMed]
  25. Takahashi, K. Shortcuts to adiabaticity for quantum annealing. Phys. Rev. A 2017, 95, 012309. [Google Scholar]
  26. Onofrio, R. Physics of our Days: Cooling and thermometry of atomic Fermi gases. Physics-Uspekhi 2017, 59, 1129. [Google Scholar] [CrossRef]
  27. Dann, R.; Tobalina, A.; Kosloff, R. Fast route to equilibration. Phys. Rev. A 2020, 101, 052102. [Google Scholar] [CrossRef]
  28. Torrontegui, E.; Ibáñez, S.; Chen, X.; Ruschhaupt, A.; Guéry-Odelin, D.; Muga, J.G. Fast atomic transport without vibrational heating. Phys. Rev. A 2011, 83, 013415. [Google Scholar]
  29. Bowler, R.; Gaebler, J.; Lin, Y.; Tan, T.R.; Hanneke, D.; Jost, J.D.; Home, J.; Leibfried, P.D.; Wineland, D.J. Coherent Diabatic Ion Transport and Separation in a Multizone Trap Array. Phys. Rev. Lett. 2012, 109, 080502. [Google Scholar]
  30. Chen, X.; Lizuain, I.; Ruschhaupt, A.; Guéry-Odelin, D.; Muga, J.G. Shortcut to Adiabatic Passage in Two- and Three-Level Atoms. Phys. Rev. Lett. 2010, 105, 123003. [Google Scholar]
  31. Bason, M.G.; Viteau, M.; Malossi, N.; Huillery, P.; Arimondo, E.; Ciampini, D.; Fazio, R.; Giovannetti, V.; Manella, R.; Morsch, O. High-fidelity quantum driving. Nat. Phys. 2012, 8, 147–152. [Google Scholar]
  32. Zhang, J.; Shim, J.H.; Niemeyer, I.; Taniguchi, T.; Teraji, T.; Abe, H.; Onoda, S.; Yamamoto, T.; Ohshima, T.; Isoya, J.; et al. Experimental Implementation of Assisted Quantum Adiabatic Passage in a Single Spin. Phys. Rev. Lett. 2013, 110, 240501. [Google Scholar]
  33. Zhou, B.B.; Baksic, A.; Ribeiro, H.; Yale, C.G.; Heremans, F.J.; Jerger, P.C.; Auer, A.; Burkard, G.; Clerk, A.A.; Awschalom, D.D. Accelerated quantum control using superadiabatic dynamics in a solid-state lambda system. Nat. Phys. 2017, 13, 330–334. [Google Scholar] [CrossRef]
  34. Torrontegui, E.; Chen, X.; Modugno, M.; Schmidt, S.; Ruschhaupt, A.; Muga, J. Fast transport of Bose–Einstein condensates. New J. Phys. 2012, 14, 013031. [Google Scholar] [CrossRef]
  35. Rohringer, W.; Fischer, D.; Steiner, F.; Mazets, I.E.; Schmiedmayer, J.; Trupke, M. Non-equilibrium scale invariance and shortcuts to adiabaticity in a one-dimensional Bose gas. Sci. Rep. 2015, 5, 9820. [Google Scholar] [CrossRef] [PubMed]
  36. Schaff, J.F.; Song, X.L.; Vignolo, P.; Labeyrie, G. Fast optimal transition between two equilibrium states. Phys. Rev. A 2010, 82, 033430. [Google Scholar] [CrossRef]
  37. Schaff, J.F.; Capuzzi, P.; Labeyrie, G.; Vignolo, P. Shortcuts to adiabaticity for trapped ultracold gases. New J. Phys. 2011, 13, 113017. [Google Scholar] [CrossRef]
  38. Torrontegui, E.; Martinez-Garaot, S.; Modugno, M.; Chen, X.; Muga, J.G. Engineering fast and stable splitting of matter waves. Phys. Rev. A 2013, 87, 033630. [Google Scholar] [CrossRef]
  39. Kiely, A.; Benseny, A.; Busch, T.; Ruschhaupt, A. Shaken not stirred: Creating exotic angular momentum states by shaking an optical lattice. J. Phys. B At. Mol. Opt. Phys. 2013, 49, 215003. [Google Scholar] [CrossRef]
  40. Mashuda, S.; Rice, S.A. Fast-Forward Assisted STIRAP. J. Phys. Chem. A 2015, 119, 3479–3487. [Google Scholar] [CrossRef]
  41. Tobalina, A.; Palmero, M.; Martínez-Garaot, S.; Muga, J.G. Fast atom transport and launching in a nonrigid trap. Sci. Rep. 2017, 7, 5753. [Google Scholar] [CrossRef]
  42. Ma, L.; Kong, Q. Optimal Shortcuts to Adiabatic Control by Lagrange Mechanics. Entropy 2023, 25, 719. [Google Scholar] [CrossRef]
  43. Abdel-Rahman, E.M.; Nayfeh, A.H.; Masoud, Z.N. Dynamics and Control of Cranes: A Review. Modal Anal. 2003, 9, 863–908. [Google Scholar]
  44. Damour, T.; Jaranowski, P.; Schäfer, G. Dynamical invariants for general relativistic two-body systems at the third post-Newtonian approximation. Phys. Rev. D 2000, 62, 044024. [Google Scholar] [CrossRef]
  45. Lewis, H.R.; Leach, P.G.L. Exact invariants for a class of time-dependent non-linear Hamiltonian-systems. J. Math. Phys. 1982, 23, 165–175. [Google Scholar]
  46. Fu, M. Control of the cartpole System: Model-based vs. Model-free Learning. IFAC-PapersOnLine 2023, 56, 11847–11852. [Google Scholar] [CrossRef]
  47. Ovalle, L.; Ríos, H.; Llama, M. Robust output-feedback control for the cart–pole system: A coupled super-twisting sliding-mode approach. IET Control. Theory Appl. 2019, 13, 269–278. [Google Scholar]
Figure 1. Inverted pendulum on a cartpole. Physical model and relevant parameters.
Figure 1. Inverted pendulum on a cartpole. Physical model and relevant parameters.
Mathematics 13 01220 g001
Figure 2. (Color online) Cartpole trajectories (a) and velocities (b) for different total process times t f . t f = 1.5 s green solid, t f = 2 s dashed blue, t f = 4 s red dashed–dotted and t f = 8 s black-dotted. Other parameters: l = 1 m.
Figure 2. (Color online) Cartpole trajectories (a) and velocities (b) for different total process times t f . t f = 1.5 s green solid, t f = 2 s dashed blue, t f = 4 s red dashed–dotted and t f = 8 s black-dotted. Other parameters: l = 1 m.
Mathematics 13 01220 g002
Figure 3. (Color online) (a) Cartpole swing angle θ as a function of time after numerically integrating the exact dynamical equation (3) (blue solid line) and linearized harmonic model (4) (red dashed line) with null initial conditions θ ( 0 ) = θ ˙ ( 0 ) = 0 . (b) Phase-space diagram for the same process. Linearized model leads to purely periodic motion and therefore closed orbits in phase-space, whereas nonlinearities of the exact, more realistic and complex model, lead to deviations in the ideal target configuration at final time. Other parameters: l = 10 m, d = 2 m, t f = 6 s.
Figure 3. (Color online) (a) Cartpole swing angle θ as a function of time after numerically integrating the exact dynamical equation (3) (blue solid line) and linearized harmonic model (4) (red dashed line) with null initial conditions θ ( 0 ) = θ ˙ ( 0 ) = 0 . (b) Phase-space diagram for the same process. Linearized model leads to purely periodic motion and therefore closed orbits in phase-space, whereas nonlinearities of the exact, more realistic and complex model, lead to deviations in the ideal target configuration at final time. Other parameters: l = 10 m, d = 2 m, t f = 6 s.
Mathematics 13 01220 g003
Figure 4. (Color online) Ficticious angle Θ as a function of the process time t f in different scenarios. As discussed in the text, this angle quantifies the final deviation from the ideal balanced final state. Numerical results clearly indicate that both excessively fast or slow processes result in undesirably high final angle configurations, whereas an optimal time window minimizes final excitation. Outside this optimal region, nonlinear effects become increasingly significant, causing the protocol to break down and leading to final configurations with very large angles. (a) From bottom to top d = 2 , 4 , 6 , 8 , 10 , 12 m for a fixed pendulum length of l = 16 m. (b) From bottom to top l = 10 , 12 , 14 , 16 , 18 , 20 m for fixed value of d = 5 m. Pendulum initially in equilibrium.
Figure 4. (Color online) Ficticious angle Θ as a function of the process time t f in different scenarios. As discussed in the text, this angle quantifies the final deviation from the ideal balanced final state. Numerical results clearly indicate that both excessively fast or slow processes result in undesirably high final angle configurations, whereas an optimal time window minimizes final excitation. Outside this optimal region, nonlinear effects become increasingly significant, causing the protocol to break down and leading to final configurations with very large angles. (a) From bottom to top d = 2 , 4 , 6 , 8 , 10 , 12 m for a fixed pendulum length of l = 16 m. (b) From bottom to top l = 10 , 12 , 14 , 16 , 18 , 20 m for fixed value of d = 5 m. Pendulum initially in equilibrium.
Mathematics 13 01220 g004
Figure 5. (Color online) Minimum of final time excitations measured by the value of the ficticious angle Θ (in °) as a function of d and l. For each d-l configuration, the optimal process time t f is numerically calculated as the minimum of each curve in Figure 4. Using this optimal time, the possible minimum fictitious angle is computed for that particular configuration. In other words, this plot illustrates the best case scenario for a given d-l configuration. For larger values of d or smaller values of l, final excitations larger than 10° are obtained.
Figure 5. (Color online) Minimum of final time excitations measured by the value of the ficticious angle Θ (in °) as a function of d and l. For each d-l configuration, the optimal process time t f is numerically calculated as the minimum of each curve in Figure 4. Using this optimal time, the possible minimum fictitious angle is computed for that particular configuration. In other words, this plot illustrates the best case scenario for a given d-l configuration. For larger values of d or smaller values of l, final excitations larger than 10° are obtained.
Mathematics 13 01220 g005
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Lizuain, I.; Tobalina, A.; Rodriguez-Prieto, A. Invariant-Based Inverse Engineering for Balanced Displacement of a Cartpole System. Mathematics 2025, 13, 1220. https://doi.org/10.3390/math13081220

AMA Style

Lizuain I, Tobalina A, Rodriguez-Prieto A. Invariant-Based Inverse Engineering for Balanced Displacement of a Cartpole System. Mathematics. 2025; 13(8):1220. https://doi.org/10.3390/math13081220

Chicago/Turabian Style

Lizuain, Ion, Ander Tobalina, and Alvaro Rodriguez-Prieto. 2025. "Invariant-Based Inverse Engineering for Balanced Displacement of a Cartpole System" Mathematics 13, no. 8: 1220. https://doi.org/10.3390/math13081220

APA Style

Lizuain, I., Tobalina, A., & Rodriguez-Prieto, A. (2025). Invariant-Based Inverse Engineering for Balanced Displacement of a Cartpole System. Mathematics, 13(8), 1220. https://doi.org/10.3390/math13081220

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop