Abstract
Synthesizing controllers for safety-critical switched systems requires rigorous guarantees that the system never enters unsafe states. Traditional synthesis methods often rely on numerical approximations, such as the Euler method, to predict future states. However, these approximations introduce errors that accumulate over time, often leading to "exploding bounds" that render synthesis impossible or overly conservative. This paper introduces a novel approach that leverages exact analytical solutions of differential equations to eliminate approximation errors. By providing tighter integer bounds for state trajectories, the method enables the synthesis of more precise and efficient controllers for complex industrial applications, as demonstrated in cruise control and stormwater management benchmarks.
Introduction
In safety-critical applications like autonomous cruise control or urban water management, controllers must ensure that systems remain within safe operational boundaries. These systems are typically modeled as switched systems, where continuous physical dynamics are governed by discrete control modes. Automated synthesis of such controllers often involves symbolic methods that map continuous state spaces to discrete integer representations for use in formal verification tools like UPPAAL TIGA.
A significant challenge in this process is the "approximation tax" paid when using numerical methods like the "Guaranteed Euler method." Linear approximations of non-linear dynamics inevitably lead to error accumulation. In complex scenarios, these error bounds grow exponentially, preventing synthesis tools from finding safe paths even when they exist. This paper addresses this limitation by replacing numerical estimates with exact analytical solutions.
Methods
The core innovation lies in the shift from numerical approximation to analytical solutions within the synthesis loop.
- Analytical Bounds Calculation: Instead of estimating the next state using a fixed step size and linear slope, the method utilizes the exact closed-form solution of the system's differential equations. This allows for the calculation of the precise minimum and maximum values a state variable can reach within a switching interval, accounting for any local extrema.
- Integer Mapping and Tool Integration: To interface with the UPPAAL TIGA verification tool, continuous trajectories must be bounded by integers. The authors developed mathematical proofs to identify the tightest possible integer intervals. By assuming the system's flow functions are differentiable and monotone with respect to initial states, the method efficiently scales to n-dimensional systems by analyzing the vertices of the state space.
Case Studies
The method was evaluated using two primary benchmarks:
- Cruise Control Model: A safety-critical scenario where an "Ego" car must maintain a distance of at least 5 meters from a "Front" car, despite unpredictable acceleration changes by the latter.
- Stormwater Detention Pond: An industrial-scale model focused on managing water levels in a catchment area and detention pond during rainfall events to prevent urban flooding through controlled outflows.
Key Results
The analytical approach demonstrated superior performance in both precision and feasibility.
- Precision in Cruise Control: The method produced the tightest possible integer bounds. As shown in the comparison below, the analytical method's bounds are significantly more constrained than those produced by the Euler method. To achieve comparable accuracy, the Euler method required a step size 60 times smaller, which drastically increases the computational cost of synthesis.
- Feasibility in Stormwater Management: The stormwater pond case study highlighted the method's robustness. While the Euler method's bounds exploded too quickly to be useful, the analytical method successfully synthesized a safe controller for a 5-hour horizon in just 2 minutes, utilizing 4.6 GB of RAM. This result represents a significant advancement, as such long-horizon synthesis was previously considered impossible for this model.
Conclusion and Future Work
By eliminating approximation errors, this research enables the synthesis of "maximally permissive" controllers that can safely operate closer to the edges of the allowed state space. The primary limitation is the requirement for systems to have closed-form analytical solutions. Future research will focus on handling systems without such solutions, addressing correlations between state variables in high-dimensional spaces, and further optimizing memory usage for even larger-scale industrial applications.
Summary updated