Showcase Of An Optimal Control Problem In Robotics For Integrating The System Matrices From A Multibody Simulation Code To Generate Adjoint Gradients For Optimization

Research output: Contribution to conferenceAbstractpeer-review

11 Downloads (Pure)

Abstract

An implementation in C++ is computationally more efficient than a Python code, especially in case of multibody system matrices. However, the analytical derivation and implementation of system matrices as well as gradients for optimization is elaborate and time consuming. Hence, the combination of C++ for critical performance parts and Python for the overhead and optimization is highly beneficial. A possible interface from ExuDyn to Python modules for optimization and parameter variation is shown e.g. in [1]. Moreover, PyChrono is a Python library that wraps the Chrono C++ multi-physics simulation library [2]. PyChrono can be used together with popular Python libraries, such as optimization or neural networks. The multibody simulation software HOTINT provides an interface to the optimization tool MagOpt allowing a multi-objective optimization [3]. PROPT [4] is a software package for solving highly complex dynamic optimization problems using the pseudo-spectral collocation methods of the TOMLAB solver. The goal of PROPT is to make the formulation of such problem descriptions as seamless as possible without having to worry about the solver. Here, the present work aims to make an important contribution for easy utilization of adjoint gradients. Using adjoint methods in large-scale optimization problems in multibody dynamics brings time efficiency and enables real-time applications, but the analytical derivation of the underlying system matrices is elaborate. Due to a wide upcoming community using the adjoint gradients in multibody dynamics, here a showcase for integrating the system matrices from multibody simulation to generate adjoint gradients for optimization is presented. For this reason, a robotic system for a rest-to-rest maneuver is shown in which matrices are utilized from the multibody simulation software FreeDyn [5] and used in classical Python optimization packages. By using existing system matrices, the effort required to adapt the optimization problem to new examples and tasks can be significantly reduced.

[1] J. Gerstmayr. Exudyn - a C++-based Python package for flexible multibody systems. Multibody System Dynamics, 60:533–561, 2024.
[2] S. Benatti, A. Young, A. Elmquist, J. Taves, R. Serban, D. Mangoni, A. Tasora and D. Negrut. PyChrono and gym-chrono: A Deep Reinforcement Learning Framework Leveraging Multibody Dynamics to Control Autonomous Vehicles and Robots. In W. Lacarbonara, B. Balachandran, M.J. Leamy, J. Ma, J.A. Tenreiro Machado, G. Stepan, editors, Advances in Nonlinear Dynamics. NODYCON Conference Proceedings Series. Springer, Cham, 2022.
[3] A. Humer, G. Jungmayr, W. Koppelstätter, M. Schörgenhumer, S. Silber, G. Weidenholzer and S. Weitzhofer. Multi-objective optimization of complex multibody systems by coupling HOTINT with MagOpt. In Proceedings of the ASME 2016 International Design Engineering Technical Conferences & Computers and Information in Engineering Conference 2016. ASME, Charlotte, 2016.
[4] P.E. Rutquist and M.M. Edvall. PROPT - Matlab optimal control software. Tomlab Optimization Inc, 260(1), 12, 2010.
[5] W. Witteveen, T. Lauss and S. Oberpeilsteiner. FreeDyn: A Free, Flexible and State of the Art Multibody Simulation Package for Education, Research and Industrial Applications. In G. Kerschen, M.R. Brake, L. Renson, editors, Nonlinear Structures & Systems, Volume 1. Conference Proceedings of the Society for Experimental Mechanics Series. Springer, Cham, 2021.
Original languageEnglish (American)
Number of pages2
Publication statusPublished - 2025
EventM2P 2025 - Second International Conference Math 2 Product: Emerging Technologies in Computational Science for Industry, Sustainability and Innovation - Valencia, Spain
Duration: 4 Jun 20256 Jun 2025
https://www.m2p2025.com/M2P2025

Conference

ConferenceM2P 2025 - Second International Conference Math 2 Product: Emerging Technologies in Computational Science for Industry, Sustainability and Innovation
Abbreviated titleM2P
Country/TerritorySpain
CityValencia
Period04.06.202506.06.2025
Internet address

Cite this