Abstract
We present a new data structure for representation of polynomial variables in the parsing of sum-of-squares (SOS) programs. In SOS programs, the variables $s(x;Q)$ are polynomial in the independent variables $x$, but linear in the decision variables $Q$. Current SOS parsers, however, fail to exploit the semi-linear structure of the polynomial variables, treating the decision variables as independent variables in their representation. This results in unnecessary overhead in storage and manipulation of the polynomial variables, prohibiting the parser from addressing larger-scale optimization problems. To eliminate this computational overhead, we introduce a new representation of polynomial variables, the "dpvar" structure, that is affine in the decision variables. We show that the complexity of operations on variables in the dpvar representation scales favorably with the number of decision variables. We further show that the required memory for storing polynomial variables is relatively small using the dpvar structure, particularly when exploiting the MATLAB sparse storage structure. Finally, we incorporate the dpvar data structure into SOSTOOLS 4.00, and test the performance of the parser for several polynomial optimization problems.
Introduction
Sum-of-Squares (SOS) programming is a powerful tool for proving the non-negativity of polynomials, which is essential for tasks like finding the stability of nonlinear systems or calculating the lower bounds of functions. To solve an SOS problem, a "parser" must first convert the high-level polynomial constraints into a Semidefinite Program (SDP), which a numerical solver then handles.
The bottleneck in large-scale problems isn't always the solver; it’s often the parser. Current tools like YALMIP or older versions of SOSTOOLS often spend over 90% of their execution time just building the problem. This occurs because they treat "decision variables" (the values to be optimized) and "independent variables" (like $x$ or $t$) identically. This leads to massive, redundant data structures that grow uncontrollably as the problem size increases, eventually exhausting system memory or taking hours to process.
The dpvar Representation
The core innovation of this work is the dpvar (decision polynomial variable) representation. It recognizes the semi-linear structure of SOS variables. Standard parsers use a format that lumps all variables into a single vector of monomials, causing an explosion in size as decision variables increase. In contrast, dpvar represents a polynomial $s(x; \xi)$ as:
$$s(x; \xi) = \begin{bmatrix} 1 \\ \xi \end{bmatrix}^T C Z_d(x)$$
Where $\xi$ are the decision variables, $Z_d(x)$ is a vector of monomials of the independent variables, and $C$ is a coefficient matrix. By separating the variables this way, operations like addition, multiplication, and differentiation become much more efficient. The parser no longer needs to track the "degree" of decision variables since they are always affine. Furthermore, the implementation leverages MATLAB’s Compressed Sparse Column (CSC) format, optimized for the sparse matrices typical in large-scale polynomial optimization.
Computational Performance
The authors evaluated the dpvar structure against SOSTOOLS 3.04 (using syms and pvar structures) and YALMIP’s sdpvar. As shown in Figure 5, the dpvar format allows the complexity of basic operations to scale favorably with the number of decision variables. While YALMIP maintains a slight edge in simple addition due to its indexing method, dpvar demonstrates superior scaling in multiplication and more complex operations.
As illustrated in Figure 6, the complexity of operations like differentiation and substitution in the dpvar format is largely independent of the number of decision variables. This decoupling allows the tool to scale to problems with hundreds of thousands of variables that were previously intractable.
Key Results and Benchmarks
The performance was tested on three classic benchmarks: Greatest Lower Bound (GLB), Robust Stability of ODEs, and Local Stability of Van der Pol oscillators. Key findings include:
- Significant Speedup: SOSTOOLS 4.00 (with
dpvar) achieved speedups of roughly 100x compared to SOSTOOLS 3.04 on GLB and Robust Stability tests. - Scalability: For the Robust Stability problem,
dpvarallowed parsing in 374 seconds for $n=50$, whereas YALMIP exceeded the 3600-second limit at $n=13$. - Memory Efficiency: The
dpvarstructure significantly reduced memory overhead, in one instance reducing stored values by a factor of three compared to the standardpvarformat.
Conclusion
By introducing the dpvar data structure, this work successfully flips the script on the parsing bottleneck in SOS programming. With parsing overhead often reduced to less than 20% of total execution time, the primary challenge shifts back to the numerical SDP solvers. Future work may involve further exploiting problem structures, such as chordal sparsity, within the dpvar framework to assist solvers in handling increasingly complex optimization problems.
Summary updated