[Paper Review] Finite Elements with Switch Detection for Direct Optimal Control of Nonsmooth Systems
This paper introduces Finite Elements with Switch Detection (FESD), a high-order numerical method for direct optimal control of nonsmooth ODEs with discontinuous right-hand sides. FESD integrates Runge-Kutta time integrators with nonlinear complementarity problems and cross-complementarity conditions to detect switches in time, achieving order-optimal accuracy and exact numerical sensitivities—demonstrating up to five orders of magnitude higher accuracy than standard time-stepping methods for the same computational cost.
This paper introduces Finite Elements with Switch Detection (FESD), a numerical discretization method for nonsmooth differential equations. We consider the Filippov convexification of these systems and a transformation into dynamic complementarity systems introduced by [Stewart, 1990]. FESD is based on solving nonlinear complementarity problems and can automatically detect nonsmooth events in time. If standard time-stepping Runge-Kutta (RK) methods are naively applied to a nonsmooth ODE, the accuracy is at best of order one. In FESD, we let the integrator step size be a degree of freedom. Additional complementarity conditions, which we call cross complementarities, enable exact switch detection, hence FESD can recover the high order accuracy that the RK methods enjoy for smooth ODE. Additional conditions called step equilibration allow the step size to change only when switches occur and thus avoid spurious degrees of freedom. Convergence results for the FESD method are derived, local uniqueness of the solution and convergence of numerical sensitivities are proven. The efficacy of FESD is demonstrated in several simulation and optimal control examples. In an optimal control problem benchmark with FESD, we achieve up to five orders of magnitude more accurate solutions than a standard time-stepping approach for the same computational time.
Motivation & Objective
- Address the poor accuracy and sensitivity issues of standard time-stepping methods when applied to nonsmooth ODEs with discontinuous vector fields.
- Enable direct optimal control of hybrid and switched systems by ensuring high-order accuracy and correct numerical sensitivities.
- Develop a unified framework that detects multiple or simultaneous switches and sliding modes without prior knowledge of switching sequences.
- Ensure convergence and local uniqueness of solutions in the presence of nonsmooth events through rigorous theoretical analysis.
- Provide a robust, implementable method compatible with first-discretize-then-optimize approaches in optimal control.
Proposed method
- Formulate the nonsmooth ODE as a dynamic complementarity system via Stewart's transformation, enabling complementarity-based switch detection.
- Introduce cross-complementarity conditions to enforce exact switch detection at the discrete level, preserving the order of accuracy of underlying Runge-Kutta methods.
- Treat the time step size as a decision variable in the optimization problem, enabling adaptive step sizing.
- Apply step equilibration conditions to restrict step size changes to only switch events, eliminating spurious degrees of freedom.
- Solve the resulting Mathematical Program with Complementarity Constraints (MPCC) using homotopy methods, including elastic mode and relaxation homotopy for robustness.
- Use Filippov convexification to define solutions for discontinuous vector fields and ensure existence and uniqueness under appropriate conditions.
Experimental results
Research questions
- RQ1Can a direct optimal control method achieve high-order accuracy for nonsmooth ODEs when standard time-stepping methods are limited to first-order accuracy?
- RQ2Can numerical sensitivities be computed exactly for nonsmooth systems with state jumps or sliding modes using a direct multiple shooting framework?
- RQ3Does the proposed FESD method detect switches accurately without requiring prior knowledge of switching times or sequences?
- RQ4Can the method handle multiple or simultaneous switches and sliding mode arcs while maintaining high-order convergence?
- RQ5What is the computational efficiency of FESD compared to standard time-stepping approaches in terms of accuracy per CPU time?
Key findings
- FESD achieves up to five orders of magnitude higher accuracy than standard time-stepping methods for the same computational time in optimal control benchmarks.
- The Radau-IIA and Lobatto-IIIC variants of FESD are the most efficient, while Gauss-Legendre and explicit Runge-Kutta methods lose their high-order accuracy on index-2 DAEs arising from sliding modes.
- FESD ensures exact numerical sensitivities by detecting switches precisely, avoiding the non-Lipschitz sensitivity issues that plague standard methods.
- Convergence of the FESD method is proven, and local uniqueness of the solution is established under standard assumptions on the complementarity problem.
- The method successfully handles complex dynamics including sliding modes and multiple switches, with robust performance across diverse test cases.
- The FESD implementation is available in the open-source NOSNOC toolbox, including examples with state jumps and nonsmooth mechanics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.