Adaptive Time-Mesh NMPC
- 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
where is the state, the control, is nonlinear and 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 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 is initially fixed, then systematically reduced by one after each sampling interval until a lower bound 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 with constraints including and 0;
- The control 1 is applied for 2;
- 3.
This scheme establishes recursive feasibility: for any initial feasible state within the controllability region 4, the closed-loop trajectory reaches a stabilizable region 5 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 6 for the predicted trajectory.
- Refinement is often restricted to 7 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 8): Decision variables are 9. All dynamic constraints couple to 0, leading to dense Jacobian/Hessian structures.
- Local Uniform Grid (Multiple 1): The variables 2 are used under the constraint 3 for uniformity. Dynamics couple each 4 to only one interval, yielding sparse, banded Jacobians/Hessians independent of 5 (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 6, 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 | 7 | Dense wrt. 8 |
| Local Uniform Grid | 9 | 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 0 steps will, under contraction of the horizon and suitable bounds on step size, reach the region
1
in finite time and remain feasible therein (Rösmann et al., 2020).
Stability, particularly asymptotic stability, depends on the choice of 2 and grid adaptation:
- If 3, 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 4, a local stabilizing feedback 5 guarantees asymptotic convergence.
- If 6 and using single-step integration (e.g., Euler), first-order optimality yields 7 at 8 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 9 or 0 (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 1, where 2 is computed via finer internal integration.
- In residual-based approaches for systems governed by PDEs, the indicator 3 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 4, with 5 the number of nodes and 6 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, 7 with adaptive mesh achieves comparable RMS error to 8 fixed mesh, with solve times 9 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) 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: