Fabian Jarmolowitz
Sessions
Motivated by real use cases from Bosch for optimization-based functions and controllers in the context of energy optimal operation of vehicles and buildings, we investigate the usage of FMI for optimization purposes via the open-source tool CasADi. We implemented a framework in Python to automatically compare optimization results and computation times of optimal control problems in CasADi. We are able to compare the results generated by different implementations: a) including the system dynamics as FMUs and b) a native implementation where the system dynamics is realized by Python code for CasADi. We present results from two use cases: the trajectory following of a single track vehicle model and the optimal control of a building’s chiller system. Detailed analysis of the split of the execution time of one optimization run gives valuable insight which kind of FMI function calls or derivatives are competitive and which one have bottlenecks compared to the native solution in CasADi without FMUs.
Testing real hardware and simulation models in combination in a software- or hardware-in-the-loop set-up is challenging. One of the key factors is the high demand for accuracy in the simulation model. If classical modeling based on physical principles is not sufficient to reach the desired level of accuracy, hybrid modeling, the combination of physical simulation models and machine learning can be applied. In this publication, we train a hybrid model for a controlled electric motor within the electro-hydraulic braking system of a car under the conditions and restrictions of a real engineering application in the field. We apply state-of-the-art modeling patterns for this, and further extend them with application specific methodological optimizations. Finally, we investigate and show the quantitative and qualitative advantages of the proposed approach for this specific application, resulting in a gain in accuracy by multiple factors.