Constraint Handling in Continuous-Time DDP-Based Model Predictive Control

Jean-Pierre Sleiman, Farbod Farshidian, Marco Hutter

Introduction

In modern robotics, controllers must be both computationally efficient and strictly aware of physical constraints, such as motor torque limits and environmental obstacles. Differential Dynamic Programming (DDP) and its continuous-time variant, Sequential Linear Quadratic (SLQ) control, are favored for their linear scaling with time horizons. However, these methods are traditionally unconstrained. Common workarounds like penalty or barrier functions often lead to numerical ill-conditioning, where the optimization problem becomes "stiff" and fails to converge as constraints are tightened. This paper introduces AL-SLQ, an Augmented-Lagrangian variant of the SLQ algorithm designed to bridge the gap between the speed of DDP and the robust constraint handling of Nonlinear Programming (NLP) solvers.

Methodology: The AL-SLQ Algorithm

The proposed AL-SLQ algorithm combines an augmented-Lagrangian approach with a "real-time iteration" (RTI) scheme to enable high-frequency trajectory optimization.

Hybrid Constraint Handling

The framework employs a projection technique for state-input equality constraints and an Augmented-Lagrangian (AL) approach for inequality constraints. Unlike simple penalty methods, AL methods utilize auxiliary variables (multipliers) to estimate the "force" of a constraint. This allows the solver to identify exact optimal solutions without requiring infinitely high penalty weights, thereby avoiding numerical instability.

Real-Time Iteration and Multiplier Updates

To maintain the millisecond-level speeds required for Model Predictive Control (MPC), the algorithm does not solve the optimization to full convergence at every time step. Instead, it performs a single Riccati pass (inner loop) to update the trajectory and a single multiplier update (outer loop) per control cycle. The multiplier update is treated as a gradient ascent step, where a tuned step-size ($\alpha$) is used to ensure stability during high-speed maneuvers.

Experimental Evaluation

The AL-SLQ framework was evaluated on three distinct physical simulations:

  1. Cart-Pole Swing-Up: Testing strict input force limits.
  2. Ballbot Navigation: Navigating a non-convex maze of 20 pillars to test obstacle avoidance.
  3. Quadrupedal Mobile Manipulator: A high-dimensional system (32 states, 31 inputs) involving an ANYmal robot with a 4-DoF arm pushing a 10kg block while respecting joint torque limits.

Results and Discussion

Smoothness and Constraint Satisfaction

A critical finding is the importance of the penalty function's mathematical properties. The authors compared three functions: PHR, Non-Slack, and Smooth-PHR. As shown in Figure 1, Smooth-PHR, which is second-order continuous ($C^2$), provides superior performance because it aligns with the second-order derivatives utilized in the SLQ algorithm, avoiding the spikes in constraint violation seen in non-smooth methods.

Comparison of $L_2$-norm of constraint violation over time for different penalty methods.

Computational Efficiency

For the complex quadrupedal manipulation task, the solver achieved an average computation time of 22–25 ms per iteration. This performance supports a 40–50 Hz control loop, which is sufficient for real-time operation on high-dimensional robotic platforms. The AL approach also avoids "phantom forces" common in barrier methods, allowing the robot to operate at the very edge of its feasible space without steady-state error.

Performance metrics for the quadrupedal manipulation task across different penalty formulations and step-sizes.

Conclusion and Future Work

AL-SLQ demonstrates that Augmented-Lagrangian methods can be effectively integrated into DDP-based solvers for real-time, constraint-aware MPC. While the method is robust, it currently requires manual tuning of the step-size ($\alpha$) and initial penalty parameters. Future research will focus on adaptive step-sizing and second-order multiplier update rules to further enhance convergence speed and eliminate the need for manual parameter adjustment.

Summary updated

BibTeX
@inproceedings{sleiman2021constraint,
  author = {Jean-Pierre Sleiman and Farbod Farshidian and Marco Hutter},
  title = {{Constraint Handling in Continuous-Time DDP-Based Model Predictive Control}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2021},
  doi = {10.1109/icra48506.2021.9560795},
}
Figure