Papers
Topics
Authors
Recent
Search
2000 character limit reached

Adaptive Time-Mesh NMPC

Updated 25 June 2026
  • Adaptive Time-Mesh NMPC is a control strategy that dynamically refines the discretized time horizon to balance computational load and control accuracy.
  • It employs adaptive grid schemes such as shrinking horizons and local refinement based on error indicators and stability objectives.
  • The method enhances real-time performance in applications like UAV trajectory regulation and nonlinear oscillator stabilization by focusing resolution where needed.

Adaptive Time-Mesh Nonlinear Model Predictive Control (NMPC) comprises a class of algorithms that solve finite-horizon optimal control problems subject to nonlinear system dynamics and constraints, where the discretization of the time horizon is not static but dynamically adapted to optimize either computational efficiency, control accuracy, or convergence and stability properties. In contrast to classical NMPC, which employs a uniform fixed discretization within the receding horizon, adaptive time-mesh NMPC techniques iteratively adjust the temporal discretization online—frequently by refining the grid where high fidelity is needed or shrinking the prediction horizon to accelerate convergence—leveraging error metrics, path tracking priorities, or stability objectives. These methods ensure that the computational load remains bounded or that critical behaviors in the state and control trajectories are resolved accurately, even for challenging nonlinear, high-dimensional, or stiff systems (Rösmann et al., 2020, Potena et al., 2018, Alla et al., 2020).

1. Problem Formulation in Adaptive Time-Mesh NMPC

The general finite-horizon nonlinear optimal control problem underlying adaptive time-mesh NMPC is given by

minimize over u(⋅), T:J(x0)=∫0Tℓ(x(t),u(t)) dt subject to:x˙(t)=f(x(t),u(t)), x(0)=x0 x(t)∈X, u(t)∈U, x(T)∈Xf\begin{align*} \text{minimize over }u(\cdot),\ T: \quad & J(x_0) = \int_0^T \ell(x(t),u(t))\,dt \ \text{subject to:} \qquad& \dot{x}(t) = f(x(t),u(t)),\ x(0)=x_0\ & x(t)\in X,\ u(t)\in U,\ x(T)\in X_f \end{align*}

where x∈Rnx\in\mathbb{R}^n is the state, u∈Rmu\in\mathbb{R}^m the control, ff is nonlinear and X,U,XfX, U, X_f encode state, input, and terminal constraints (Rösmann et al., 2020, Potena et al., 2018). Adaptive time-mesh NMPC methods introduce a non-uniform sequence of time nodes 0=t0<t1<⋯<tN=T0 = t_0 < t_1 < \cdots < t_N = T for discretization, with node selection evolving during closed-loop operation.

The discretization strategy is integral to the controller’s ability to both meet accuracy requirements in critical segments of the control horizon and bound computational demand to enable real-time control (Potena et al., 2018, Alla et al., 2020).

2. Adaptive Grid Schemes: Shrinking and Refining Horizons

Adaptive grid techniques in NMPC fall into two main categories:

Shrinking-Horizon Schemes: In approaches such as the uniform-grid-with-variable-discretization method (Rösmann et al., 2020), the number of shooting nodes NN is initially fixed, then systematically reduced by one after each sampling interval until a lower bound NminN_{\text{min}} is reached, effectively forcing the decision problem’s time horizon to contract. At each step:

  • The current state is measured;
  • The OCP is solved over the grid {u0,…,uNn−1,x1,…,xNn,Δt}\{u_0,\ldots,u_{N_n-1},x_1,\ldots,x_{N_n},\Delta t\} with constraints including xNn∈Xfx_{N_n}\in X_f and x∈Rnx\in\mathbb{R}^n0;
  • The control x∈Rnx\in\mathbb{R}^n1 is applied for x∈Rnx\in\mathbb{R}^n2;
  • x∈Rnx\in\mathbb{R}^n3.

This scheme establishes recursive feasibility: for any initial feasible state within the controllability region x∈Rnx\in\mathbb{R}^n4, the closed-loop trajectory reaches a stabilizable region x∈Rnx\in\mathbb{R}^n5 and remains feasible thereafter (Rösmann et al., 2020).

Time-Mesh Refinement: Methods such as those based on a-posteriori error indicators or local discretization error estimates (Potena et al., 2018, Alla et al., 2020) dynamically refine the mesh only in those sub-horizons affecting upcoming controls most significantly. Specifically:

  • The mesh is adapted by inserting new discretization nodes where error estimates x∈Rnx\in\mathbb{R}^n6 for the predicted trajectory.
  • Refinement is often restricted to x∈Rnx\in\mathbb{R}^n7 initial mesh intervals, as these most impact near-term control.
  • Interpolation (e.g., cubic Hermite) is used to initialize new node values.
  • The overall problem is re-solved after each refinement, typically for a fixed number of iterations or until all local errors are below threshold (Potena et al., 2018).

A third approach, a-posteriori, residual-based adaptivity, is leveraged in the context of PDE (parabolic PDE) controlled systems (Alla et al., 2020):

  • Time-steps are refined by estimating local residuals of the (non)linear optimality system;
  • Large-residual intervals are bisected until desired error equidistribution is achieved;
  • The first refined time-step length also determines the application horizon over which control is held constant.

3. Discretization Structures and NLP Formulations

Adaptive time-mesh strategies necessitate different formulations for numerical solution:

  • Global Uniform Grid (Single x∈Rnx\in\mathbb{R}^n8): Decision variables are x∈Rnx\in\mathbb{R}^n9. All dynamic constraints couple to u∈Rmu\in\mathbb{R}^m0, leading to dense Jacobian/Hessian structures.
  • Local Uniform Grid (Multiple u∈Rmu\in\mathbb{R}^m1): The variables u∈Rmu\in\mathbb{R}^m2 are used under the constraint u∈Rmu\in\mathbb{R}^m3 for uniformity. Dynamics couple each u∈Rmu\in\mathbb{R}^m4 to only one interval, yielding sparse, banded Jacobians/Hessians independent of u∈Rmu\in\mathbb{R}^m5 (Rösmann et al., 2020).
  • Least-Squares Formulation in Flat Output Space: If the system is differentially flat, the OCP is formulated over flat outputs u∈Rmu\in\mathbb{R}^m6, with costs and dynamics encoded as residuals, and mesh expansion realized by adding points as needed during real-time operation. The Jacobian remains block-banded due to local dependencies (Potena et al., 2018).

The table below summarizes decision variables and sparsity structures in two canonical adaptive schemes:

Discretization Scheme Decision Variables Jacobian/Hessian Sparsity
Global Uniform Grid u∈Rmu\in\mathbb{R}^m7 Dense wrt. u∈Rmu\in\mathbb{R}^m8
Local Uniform Grid u∈Rmu\in\mathbb{R}^m9 Sparse, banded (local coupling)

4. Recursive Feasibility and Stability Considerations

Adaptive time-mesh NMPC ensures recursive feasibility through controllability region design and grid updating rules. For shrinking-horizon schemes, any feasible trajectory with ff0 steps will, under contraction of the horizon and suitable bounds on step size, reach the region

ff1

in finite time and remain feasible therein (Rösmann et al., 2020).

Stability, particularly asymptotic stability, depends on the choice of ff2 and grid adaptation:

  • If ff3, after the horizon stabilizes, the NMPC cost ceases to decrease, and asymptotic stability may be lost. This is addressed via a dual-mode design: once the state enters a terminal region ff4, a local stabilizing feedback ff5 guarantees asymptotic convergence.
  • If ff6 and using single-step integration (e.g., Euler), first-order optimality yields ff7 at ff8 so the optimizer enforces invariance at the equilibrium, delivering nominal asymptotic stability without requiring a dual-mode switch (Rösmann et al., 2020).

Practical stabilizing region size can be reduced by decreasing ff9 or X,U,XfX, U, X_f0 (Rösmann et al., 2020).

5. Error Estimation and Mesh Adaptivity Criteria

Refinement schemes (Potena et al., 2018, Alla et al., 2020) utilize local error criteria to determine where mesh points should be added:

  • In flat output discretizations, error is estimated as X,U,XfX, U, X_f1, where X,U,XfX, U, X_f2 is computed via finer internal integration.
  • In residual-based approaches for systems governed by PDEs, the indicator X,U,XfX, U, X_f3 is used; intervals with largest indicators are bisected until the mesh reaches the desired number of nodes or error threshold (Alla et al., 2020).

Refinement is typically focused on the beginning of the control horizon, as these nodes exert the strongest influence on imminent feedback.

6. Computational Efficiency and Implementation

Adaptive time-mesh NMPC methods maintain real-time feasibility and reduce computational cost by limiting the number of optimization variables and focusing resolution where it is most beneficial:

  • Band-sparse structures allow Gauss-Newton solvers to exploit computational cost X,U,XfX, U, X_f4, with X,U,XfX, U, X_f5 the number of nodes and X,U,XfX, U, X_f6 the number of flat outputs (Potena et al., 2018).
  • Performance benchmarks on UAV and oscillator systems show that adaptive schemes outperform fixed-uniform-mesh implementations, both in terms of solution time per NMPC step (sub-ms for UAV/ground robots) and in accuracy per number of discretization points. For instance, in UAV pose regulation, X,U,XfX, U, X_f7 with adaptive mesh achieves comparable RMS error to X,U,XfX, U, X_f8 fixed mesh, with solve times X,U,XfX, U, X_f9 ms (Potena et al., 2018).
  • Implementation leverages data structures supporting dynamic insertion/removal of mesh points, banded residual/Jacobian computation, and analytic or numeric differentiation for efficiency.
  • For systems requiring switching between full NMPC and local LQR stabilization, such as in dual-mode schemes, adaptive mesh reduces transition CPU time, supporting embedded and industrial hardware constraints (Rösmann et al., 2020).

7. Applications, Extensions, and Performance Analysis

Adaptive time-mesh NMPC has been validated in the following contexts:

  • Tracking and stabilization for nonlinear oscillators (e.g., Van der Pol) using shrinking-horizon and local uniform grid adaptation (Rösmann et al., 2020).
  • UAV pose and trajectory regulation using time-mesh refinement and flat outputs, with open-source C++ implementation available (Potena et al., 2018).
  • Linear parabolic PDEs (e.g., heat equation), where the mesh adapts both prediction and application horizons via a-posteriori error control (Alla et al., 2020).
  • Comparative results demonstrate that adaptive schemes handle coarser grids or shorter horizons (smaller 0=t0<t1<⋯<tN=T0 = t_0 < t_1 < \cdots < t_N = T0) without sacrificing tracking performance or stability, enabling computation times several times lower compared to fixed-grid approaches (Rösmann et al., 2020, Potena et al., 2018, Alla et al., 2020).

Adaptive schemes have been extended in principle to nonlinear PDEs by linearizing the optimality system, using residual-based indicators and mesh refinement, though rigorous stability and convergence guarantees in the fully nonlinear setting require further investigation. Main challenges include managing residual-based weights as the iterate evolves, ensuring stability of linearization under coarse meshes, and controlling solver convergence as the mesh is updated (Alla et al., 2020).


References:

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Adaptive Time-Mesh NMPC.