Skip to main content
QUICK REVIEW

[Paper Review] Flexible development and evaluation of machine-learning-supported optimal control and estimation methods via HILO-MPC

Johannes Pohlodek, Bruno Morabito|arXiv (Cornell University)|Mar 25, 2022
Advanced Control Systems OptimizationEngineering10 citations
TL;DR

This paper introduces HILO-MPC, an open-source Python toolbox that seamlessly integrates machine learning with model-based optimal control and estimation. By leveraging PyTorch, TensorFlow, and custom Gaussian process training, it enables flexible, efficient, and modular implementation of machine learning-enhanced MPC and estimation problems, with applications ranging from trajectory tracking to moving horizon estimation, and supports embedded code generation for linear systems.

ABSTRACT

Model-based optimization approaches for monitoring and control, such as model predictive control and optimal state and parameter estimation, have been used for decades in many engineering applications. Models describing the dynamics, constraints, and desired performance criteria are fundamental to model-based approaches. Thanks to recent technological advancements in digitalization, machine learning methods such as deep learning, and computing power, there has been an increasing interest in using machine learning methods alongside model-based approaches for control and estimation. The number of new methods and theoretical findings using machine learning for model-based control and optimization is increasing rapidly. This paper outlines the basic ideas and principles behind an easy-to-use Python toolbox that allows to quickly and efficiently solve machine-learning-supported optimization, model predictive control, and estimation problems. The toolbox leverages state-of-the-art machine learning libraries to train components used to define the problem. It allows to efficiently solve the resulting optimization problems. Machine learning can be used for a broad spectrum of tasks, ranging from model predictive control for stabilization, setpoint tracking, path following, and trajectory tracking to moving horizon estimation and Kalman filtering. For linear systems, it enables quick code generation for embedded MPC applications. HILO-MPC is flexible and adaptable, making it especially suitable for research and fundamental development tasks. Due to its simplicity and numerous already implemented examples, it is also a powerful teaching tool. The usability is underlined, presenting a series of application examples.

Motivation & Objective

  • To address the lack of flexible, open-source tools for developing and evaluating machine learning-augmented optimal control and estimation methods.
  • To enable seamless integration of trained machine learning models (neural networks, Gaussian processes) into optimization-based control and estimation frameworks.
  • To support rapid prototyping and research in model predictive control, moving horizon estimation, and Kalman filtering using hybrid model-learned dynamics.
  • To provide a modular, extensible, and user-friendly interface for both research and educational applications in control systems.
  • To facilitate efficient code generation for embedded MPC applications, especially for linear systems.

Proposed method

  • Utilizes a high-level Python interface to define optimal control and estimation problems with machine learning components.
  • Integrates with PyTorch and TensorFlow for training deep neural networks used in system dynamics, constraints, or cost functions.
  • Employs in-house code for training Gaussian processes to model system dynamics or uncertainties.
  • Enables the use of trained ML models within optimization problems via direct integration into the problem formulation.
  • Supports a wide range of control and estimation tasks, including MPC for stabilization, setpoint tracking, and path following.
  • Offers automatic code generation for embedded MPC applications, particularly for linear systems, enhancing real-time deployability.

Experimental results

Research questions

  • RQ1How can machine learning models be efficiently and flexibly integrated into model-based optimal control and estimation frameworks?
  • RQ2What is the impact of using learned dynamics (e.g., neural networks, Gaussian processes) on the performance and stability of MPC and estimation algorithms?
  • RQ3Can a unified, open-source toolbox streamline the development and evaluation of hybrid model-learned control strategies across diverse applications?
  • RQ4To what extent can the toolbox support real-time deployment through embedded code generation for linear systems?
  • RQ5How does the modularity and ease of use of HILO-MPC support both research and educational applications in control systems?

Key findings

  • HILO-MPC enables rapid prototyping and evaluation of machine learning-enhanced optimal control and estimation methods through a modular, high-level Python interface.
  • The toolbox successfully integrates trained neural networks and Gaussian processes into MPC and estimation problems, supporting diverse applications such as trajectory tracking and moving horizon estimation.
  • For linear systems, HILO-MPC supports automatic generation of C/C++ code for embedded MPC, enabling real-time deployment on resource-constrained platforms.
  • The framework demonstrates strong usability and extensibility, with numerous pre-implemented examples that facilitate adoption in research and teaching.
  • By leveraging established machine learning libraries and optimization solvers, HILO-MPC reduces development overhead and minimizes error-prone ad-hoc implementations.
  • The toolbox is validated through a series of application examples, demonstrating its flexibility across different control and estimation tasks, including nonlinear and constrained systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.