Abstract
The Julia library TSSOS aims at helping polynomial optimizers to solve large-scale problems with sparse input data. The underlying algorithmic framework is based on exploiting correlative and term sparsity to obtain a new moment-SOS hierarchy involving potentially much smaller positive semidefinite matrices. TSSOS can be applied to numerous problems ranging from power networks to eigenvalue and trace optimization of noncommutative polynomials, involving up to tens of thousands of variables and constraints.
Introduction
Polynomial optimization is a powerful mathematical framework used to find the global minimum of a polynomial objective function subject to polynomial constraints. The standard approach to solving these problems involves the moment-SOS (Sum of Squares) hierarchy, also known as the Lasserre hierarchy, which translates the problem into a sequence of Semidefinite Programming (SDP) relaxations.
However, the standard hierarchy faces a significant scalability bottleneck: as the number of variables ($n$) increases, the size of the matrices in the SDP relaxations grows exponentially, often leading to computational intractability. TSSOS addresses this by algorithmically exploiting the inherent sparsity found in many real-world large-scale problems—where polynomials contain only a small fraction of all possible monomial terms—to drastically shrink the SDP relaxations.
Methodology
TSSOS leverages graph-theoretic techniques to decompose massive matrices into smaller, manageable blocks through three primary frameworks:
- Correlative Sparsity: This method groups variables into subsets (cliques) based on their co-occurrence in the objective and constraints, using chordal extensions to decompose the problem.
- Term Sparsity: This technique analyzes the specific monomials (terms) present in the polynomials to iteratively construct moment matrices with block-diagonal structures.
- CS-TSSOS (Correlative-Term Sparsity): The library's integrated approach first partitions variables into subsystems and then applies term sparsity procedures to each subsystem.
The library is implemented in Julia and interfaces with standard SDP solvers such as MOSEK, SDPT3, and COSMO. It utilizes heuristics like Minimum Degree and Minimum Fill-in to approximate chordal extensions, balancing computational speed with the tightness of the lower bounds.
Experimental Evaluation
The authors evaluated TSSOS using two primary benchmarks: the noncommutative Broyden banded function for eigenvalue minimization and the Power Grid Library (PGLiB) for Alternating Current Optimal Power Flow (AC-OPF) instances.
Noncommutative Optimization
In tests on the Broyden banded function, standard dense approaches failed due to memory constraints at just 80 variables. In contrast, the sparse TSSOS approach demonstrated exceptional scalability, solving instances with up to 600 variables in approximately 13.2 seconds.
Industrial Power Systems
TSSOS was applied to real-world industrial power system networks from PGLiB. The library successfully certified global optimality (achieving gaps near 0%) for massive networks. Notably, the largest instance evaluated (3022_goc_sad) contained 6,698 variables and 29,283 constraints, which TSSOS solved in approximately 22 minutes.
Key Insights and Discussion
Sparsity exploitation is a game-changer for SOS relaxations. By reducing the size of positive semidefinite (PSD) blocks, TSSOS enables the solution of problems previously considered intractable. Furthermore, the library extends these techniques to noncommutative variables via the NCTSSOS submodule, which is critical for applications in quantum information theory.
To handle massive problems ($n > 500$), TSSOS avoids slow symbolic definitions by supporting direct polynomial definition via arrays of supports and coefficients. While the library relies on heuristic approximations for chordal extensions—an NP-hard problem—the practical efficiency gains are substantial.
Conclusion
TSSOS provides a robust open-source tool for solving large-scale polynomial optimization problems by leveraging mathematical sparsity. Future work involves combining TSSOS with efficient first-order methods to further accelerate the computation of SDP relaxations, potentially bypassing the current bottlenecks of traditional interior-point solvers.
Summary updated