SOStab: a Matlab Toolbox for Transient Stability Analysis
Stéphane Drobot, Matteo Tacchi, Carmen Cardozo, Colin N. Jones
TL;DR
The paper introduces SOStab, a MATLAB toolbox that automates Sum-of-Squares-based computation of finite-horizon Regions of Attraction (RoA) for nonlinear polynomial dynamics, with a focus on transient stability in power systems. By formulating RoA problems within the Moment-SOS hierarchy and targeting ellipsoidal sets, SOStab provides inner and outer RoA certificates via degree-$d$ polynomials and outputs turnkey stability classifiers $v_d$ and $w_d$, along with visualizations. The authors demonstrate the method on a phase-locked loop and a single-machine infinite-bus model, highlighting how increasing the degree improves accuracy but incurs higher computational costs, and discuss scalability challenges. The work offers a practical, automated tool that lowers the barrier to SOS-based RoA analysis, enabling rapid experimentation and reproducibility, while outlining limitations and future directions toward scaling to more complex, higher-dimensional systems using structure-exploiting techniques.
Abstract
This paper presents a new Matlab toolbox, aimed at facilitating the use of polynomial optimization for stability analysis of nonlinear systems. In the past decade several decisive contributions made it possible to recast this type of problems as convex optimization ones that are tractable in modest dimensions. However, available software requires their user to be fluent in Sum-of-Squares programming, preventing them from being more widely explored by practitioners. To address this issue, SOStab entirely automates the writing and solving of optimization problems, and directly outputs relevant data for the user, while requiring minimal input. In particular, no specific knowledge of optimization is needed for implementation. The toolbox allows a user to obtain outer and inner approximates of the \ac{roa} of the operating point of different grid connected devices such as synchronous machines and power converters.
