---
title: Interior-Point Differential Dynamic Programming
url: https://www.emergentmind.com/topics/interior-point-differential-dynamic-programming-ipddp-c63aa955-06b1-4dc3-b486-fad10d3c594e
type: topic
---

# Interior-Point Differential Dynamic Programming

Interior-Point Differential Dynamic Programming (IPDDP) is a class of algorithms for solving discrete-time, finite-horizon optimal control problems with nonlinear equality and inequality constraints. By embedding primal–dual interior-point methodology within the Differential Dynamic Programming (DDP) framework, IPDDP realizes the benefits of second-order DDP efficiency while enforcing feasibility through barrier-augmented cost functions, slack variables, and primal–dual Newton steps. This approach is distinguished by its ability to directly handle state and control constraints, including contact-implicit or hybrid-dynamical systems, with local quadratic convergence and per-iteration complexity linear in the time horizon.

## 1. Mathematical Foundations

IPDDP addresses the nonlinear constrained optimal control problem:
\[
\begin{aligned}
\min_{x_0,\ldots,x_N,\, u_0,\ldots,u_{N-1}} \;\;
 & J(x,u) = \sum_{k=0}^{N-1} \ell(x_k,u_k) + \phi(x_N) \\
\textrm{subject to}\quad
 & x_{k+1} = f(x_k,u_k), \quad k=0\ldots N-1, \\
 & h_k(x_k,u_k) = 0,\quad k=0\ldots N-1, \\
 & g_k(x_k,u_k) \le 0,\quad k=0\ldots N-1, \\
 & x_0 = \bar{x}_0.
\end{aligned}
\]
Here, $\ell$ and $\phi$ are the stage and terminal costs, $f$ is (possibly nonlinear) dynamics, $h_k$ are equality constraints, and $g_k$ are inequality constraints. Control and state variables are denoted $x_k \in \mathbb{R}^n$, $u_k \in \mathbb{R}^m$.

The constrained problem is converted to a series of unconstrained surrogates via log-barrier augmentation. For inequality constraints, slack variables $s_k > 0$ are introduced, yielding $g_k(x_k,u_k) + s_k = 0$, and a barrier term $-\mu \sum_i \ln s_{k,i}$ is added for barrier parameter $\mu > 0$. Equality constraints are handled through Lagrange multipliers. The algorithm solves a sequence of barrier problems that approach the Karush-Kuhn-Tucker (KKT) conditions of the original problem as $\mu \rightarrow 0$ [2109.04686][2409.12048][2004.12710][2504.08278][2208.02439].

## 2. Algorithmic Structure and Primal–Dual Updates

The distinguishing algorithmic hallmark of IPDDP is its synthesis of DDP’s backward–forward second-order recursion with primal–dual Newton steps arising from the barrier-augmented Lagrangian. Each DDP sweep consists of:

- **Backward Pass:** For each stage $k=N-1$ to $0$, the local Q-function is constructed as a quadratic expansion in deviations $(\delta x, \delta u)$ about a nominal trajectory. Incorporating the value function’s Taylor series and the augmented Lagrangian—including barrier and Lagrange terms—yields the required derivatives:
  \[
  \begin{aligned}
    Q_x &= \ell_x^B + f_x^\top V_{x,k+1}, \\
    Q_u &= \ell_u^B + f_u^\top V_{x,k+1}, \\
    Q_{uu} &= \ell_{uu}^B + f_u^\top V_{xx,k+1} f_u + \cdots,
  \end{aligned}
  \]
  with “$B$” denoting inclusion of barrier and dual terms.

- **Solving the Stagewise KKT System:** The primal–dual step computes updates to $u_k$ (controls), $s_k$ (slacks), and multipliers for equality and inequality constraints by solving a symmetric indefinite linear system at each stage—the size is $(m+c+k)\times(m+c+k)$, where $c$ is the number of equality and $k$ of inequality constraints [2504.08278][2409.12048][2208.02439]. For feasible-IPDDP, $s_k > 0$ and strict primal feasibility is maintained; infeasible-IPDDP admits transitory infeasibility but maintains $s_k,\,y_k \gg 0$ (where $y_k$ are dual slacks).

- **Forward Pass and Line-Search:** The computed affine feedback policy for controls and slacks is applied via a forward rollout, updating the trajectory. Acceptance is determined using a merit function or IPOPT-style filter, testing both cost reduction and constraint violation improvement.

- **Barrier Parameter Update:** Once the optimum for a given $\mu$ is approached (when optimality and feasibility residuals fall below $\kappa\mu$ for some $\kappa>1$), $\mu$ is reduced geometrically ($\mu \leftarrow \theta \mu$, typical $\theta=0.1$), and the process repeats until the KKT conditions for the original constrained problem are met [2109.04686][2004.12710][2504.08278][2409.12048].

## 3. Computational Complexity and Convergence

IPDDP exhibits per-iteration complexity of $O(N(m+c)^3)$, dominated by $N$ factorizations of stagewise KKT matrices of size $(m+c)$ or $(m+k)$ coming from controls plus constraints. This preserves DDP’s favorable $O(N)$ scaling with trajectory length. By contrast, general purpose direct solvers such as IPOPT scale cubically in the total trajectory dimension, yielding considerable performance advantage for long-horizon or high-dimensional problems [2504.08278][2109.04686]. Empirically, convergence is typically achieved in a few to a few dozen iterations, with total wall-clock times of tens of milliseconds for $N=100\sim500$ on modern workstations [2409.12048][2004.12710][2109.04686].

Local quadratic convergence is established by showing that the stagewise DDP + Newton step constitutes a local Newton iteration on the perturbed KKT system. Under the linear independence constraint qualification (LICQ), boundedness of KKT system inverses, and strict complementarity, the iterates satisfy:
\[
\|w^{+} - w^*\| \leq M \|w - w^*\|^2,
\]
for some norm and constant $M$, up to step-size regularization and numerical precision [2504.08278][2004.12710].

## 4. Comparison with Other Constrained DDP Methods

IPDDP diverges fundamentally from active-set or augmented Lagrangian DDP extensions by continuously enforcing feasibility via interior-point penalties rather than combinatorial switching or penalty terms. Compared to classic CLDDP (Constrained LQR-DDP, e.g., with box-QP), IPDDP:

- Handles general (nonlinear) equality and inequality constraints without recourse to solving many subproblems or managing constraint activity patterns.
- Exhibits more predictable convergence properties—avoiding phenomena such as “staircase” progress or stagnation near the boundary, as observed with relaxed log-barrier DDP.
- Accepts large primal-dual steps after each barrier reduction, in contrast to the shrinking steps required by standard log-barrier-only methods [2004.12710][2409.12048].

Tables from benchmarking studies demonstrate competitive or superior performance of IPDDP2 relative to IPOPT and AL–iLQR, especially on hard, hybrid, or contact-implicit problems:

| Problem               | Method   | Iter | Cost   | $\theta^*$ (Violat.) | Wall ms | Solver ms |
|-----------------------|----------|------|--------|----------------------|---------|-----------|
| Car Obstacle Avoid.   | IPOPT    |  51  | 23.97  | $9\mathrm{e}{-16}$   |    104  |    71     |
|                       | IPDDP2   |  73  | 19.26  | $3\mathrm{e}{-16}$   |     97  |    78     |
| Cartpole Swing-Up     | IPOPT    |  35  | 0.1253 | $4\mathrm{e}{-12}$   |     30  |    20.5   |
|                       | IPDDP2   |  33  | 0.1253 | $3\mathrm{e}{-16}$   |     13  |    11.6   |

Further, AL–iLQR methods can fail on complementarity/contact cases that IPDDP handles robustly due to perturbed primal–dual slackness [2504.08278].

## 5. Implementation Techniques and Practical Stabilization

Several recent implementations of IPDDP demonstrate the following best practices:

- Preallocation of arrays for trajectories, derivatives, and multipliers for efficient memory access.
- Use of symbolic differentiation tools (such as Symbolics.jl) to supply exact second derivatives for the cost, dynamics, and constraints [2504.08278].
- Regularization of $Q_{uu}$ or enlarged KKT blocks via Levenberg–Marquardt diagonal shifts to guarantee positive definiteness and stable Cholesky/LDL factorizations [2409.12048][2208.02439].
- IPOPT-style filter linesearch, where a trial iterate is accepted if either the cost reduction or constraint violation is improved relative to filter entries. Inertia correction of the KKT system via Bunch–Kaufman with rook pivoting ensures correct sign structure in indefiniteness [2504.08278].
- Fraction-to-boundary rules restrict iterates to remain strictly in the feasible region, i.e., $u^+ \geq (1-\tau)\bar u$, $s^+ \geq (1-\tau)\bar s$ for small $\tau$.
- Efficient implementation yields wall times for problems with $N=500$ and moderate control/state dimensions in the range of $\sim$10–50 ms per DDP sweep on standard CPUs [2109.04686][2409.12048].

## 6. Application Domains and Representative Experiments

IPDDP has been demonstrated on a range of robotic and process control benchmarks:

- **Differentially flat systems and trajectory generation:** Smooth, segment-constrained polynomial trajectories for drone or vehicle path planning, where IPDDP is used to jointly optimize polynomial coefficients and segment times subject to box or polyhedral collision/actuator bounds [2109.04686].
- **Autonomous robotics:** Collision-free planning for mobile robots and quadrotors, via hybrid MPPI-IPDDP approaches—first obtaining coarse exploratory trajectories and then performing local smoothing within a convex corridor using IPDDP [2208.02439].
- **Contact-implicit motion and hybrid systems:** Robust trajectory optimization for acrobots or block-pushing systems with unilateral constraints and joint limit impulses, scenarios where AL–iLQR and general constrained DDP methods can fail or stagnate [2504.08278].
- **Classical control:** Nonlinear and constrained problems such as inverted pendulum, continuously stirred tank reactors, and obstacle-avoidance for unicycle or car models. IPDDP converges within a few tens of DDP sweeps, with all constraints satisfied to within $10^{-6}$ or tighter [2004.12710][2409.12048].

## 7. Extensions and Contemporary Directions

Recent developments focus on algorithmic generality, exploiting system structure, and robust globalization:

- Structure-exploiting IPDDP2 enables fast solution of high-dimensional or contact-implicit robotic OCPs via specialized Julia implementations (InteriorPointDDP.jl), manipulating compact stagewise KKT systems rather than direct transcriptions [2504.08278].
- Hybrid methods, such as MPPI-IPDDP, combine sampling-based exploration for nonconvex, high-dimensional space coverage with IPDDP for local trajectory refinement, yielding improved reliability and smoothness over pure sampling solvers [2208.02439].
- Regularization and filter globalization strategies inspired by recent advances in interior-point NLP solvers (e.g., IPOPT) are critical for robustness on challenging problems and from infeasible or remote initializations [2208.02439][2504.08278].

A plausible implication is that IPDDP’s flexibility and efficiency make it a natural candidate for embedded, real-time, and contact-rich robotic control applications. These methods are now competitive alternatives to both classical sequential quadratic programming and augmented-Lagrangian-based DDP in academic and applied settings.

Source: https://www.emergentmind.com/topics/interior-point-differential-dynamic-programming-ipddp-c63aa955-06b1-4dc3-b486-fad10d3c594e