Bilevel Optimization for Real-Time Control with Application to Locomotion Gait Generation
Zachary Olkin, Aaron D. Ames
TL;DR
This paper introduces a real-time bilevel optimization scheme that couples a low-level MPC with a high-level parameter optimizer to adapt control parameters on the fly. It derives gradient-based updates by differentiating through the QP-based MPC subproblem and employs Wolfe-condition line searches to ensure descent, with convergence guarantees under nominal assumptions. The method is applied to quadruped gait generation by parameterizing contact schedules via foot contact times and a spline-based representation, achieving real-time performance (≈90 Hz with 20 nodes) and improved disturbance rejection alongside new, diverse gaits. The results demonstrate both theoretical guarantees and practical viability, offering a scalable approach for online gait optimization compatible with existing MPC frameworks and competitive with CIMPC techniques.
Abstract
Model Predictive Control (MPC) is a common tool for the control of nonlinear, real-world systems, such as legged robots. However, solving MPC quickly enough to enable its use in real-time is often challenging. One common solution is given by real-time iterations, which does not solve the MPC problem to convergence, but rather close enough to give an approximate solution. In this paper, we extend this idea to a bilevel control framework where a "high-level" optimization program modifies a controller parameter of a "low-level" MPC problem which generates the control inputs and desired state trajectory. We propose an algorithm to iterate on this bilevel program in real-time and provide conditions for its convergence and improvements in stability. We then demonstrate the efficacy of this algorithm by applying it to a quadrupedal robot where the high-level problem optimizes a contact schedule in real-time. We show through simulation that the algorithm can yield improvements in disturbance rejection and optimality, while creating qualitatively new gaits.
