Abstract
Direct methods for the simulation of optimal control problems apply a specific discretization to the dynamics of the problem, and the discrete adjoint method is suitable to calculate corresponding conditions to approximate an optimal solution. While the benefits of structure preserving or geometric methods have been known for decades, their exploration in the context of optimal control problems is a relatively recent field of research. In this work, the discrete adjoint method is derived for variational integrators yielding structure preserving approximations of the dynamics firstly in the ODE case and secondly for the case in which the dynamics is subject to holonomic constraints. The convergence rates are illustrated by numerical examples. Thirdly, the discrete adjoint method is applied to geometrically exact beam dynamics, represented by a holonomically constrained PDE.
Introduction
In modern engineering, the optimal control of complex mechanical systems—ranging from robotic manipulators to flexible aerospace structures—requires numerical methods that are both accurate and physically consistent. Standard discretization techniques for Optimal Control Problems (OCPs) often suffer from numerical dissipation or artificial energy gains, which can lead to unphysical control trajectories over long simulation horizons.
Variational integrators (VIs) address these issues by deriving discrete equations of motion from a discrete version of Hamilton’s principle. This approach ensures that the resulting numerical scheme preserves the system's underlying geometric structure, such as symplecticity and momentum. This paper extends the utility of VIs by deriving a consistent discrete adjoint method, enabling efficient gradient-based optimization for both unconstrained and holonomically constrained systems, including flexible "geometrically exact" beams.
Methodology
Discrete Adjoint Derivation
The authors utilize the Discrete Lagrange–d’Alembert Principle as a foundation, allowing for the inclusion of non-conservative forces such as control torques and damping. By augmenting the objective function with the discrete equations of motion as constraints and taking variations with respect to the state, control, and Lagrange multipliers (adjoint variables), they derive a set of discrete adjoint equations. These equations are perfectly consistent with the forward integrator, ensuring exact gradients for the optimization process.
Constraints and Flexible Dynamics
To handle holonomic constraints without the numerical instabilities often associated with traditional Lagrange multipliers, the framework employs Null Space Projection. This technique projects the system onto a minimal coordinate space, ensuring the adjoint variables maintain the same minimal dimension as the system's degrees of freedom.
For flexible structures, the authors model beams using Unit Dual Quaternions to represent the $SE(3)$ group of rigid body motions, avoiding singularities inherent in Euler angles. The beam is treated as a PDE discretized via a multisymplectic spacetime integrator, ensuring structure preservation across both spatial and temporal domains.
Numerical Validation
The proposed framework was validated through three primary numerical experiments designed to test convergence and robustness:
- Mathematical Pendulum (Minimal Coordinates): Verified the basic derivation and confirmed second-order convergence ($O(h^2)$) for both configuration and adjoint variables.
- Mathematical Pendulum (Constrained): Demonstrated the efficacy of the null space projection and reparametrization approach.
- Geometrically Exact Cantilever Beam: A complex maneuver involving swinging a flexible beam from a hanging to an upright position using a single base torque.
Key Insights and Results
- Exact Gradient Consistency: Deriving adjoint equations directly from the discretized dynamics provides "exact" gradients, which is critical for the convergence of high-performance optimization algorithms.
- Structure-Preserving Control: By using a variational integrator as the "plant," the optimizer can exploit the physical properties of the system (like energy conservation) rather than compensating for numerical artifacts.
- Damping and Stability: The inclusion of Kelvin–Voigt viscous damping was found to be essential for suppressing high-frequency oscillations in flexible beam simulations, which otherwise introduce significant noise into the optimization gradient.
- Robustness: The dual quaternion formulation successfully handled large deformations and rotations in the beam model without numerical breakdown, proving effective for both rigid and highly flexible structures.
Conclusion
This work provides a rigorous mathematical bridge between geometric numerical integration and optimal control. While the discrete adjoint equations are mathematically sound, the authors note that relating discrete boundary conditions back to continuous counterparts remains a complex challenge. Future research may explore more advanced optimization algorithms like Sequential Quadratic Programming (SQP) to improve stability and handle more complex, underactuated control distributions across flexible bodies.
Summary updated