Skip to main content
QUICK REVIEW

[Paper Review] SOSTOOLS Version 4.00 Sum of Squares Optimization Toolbox for MATLAB

Antonis Papachristodoulou, James Anderson|arXiv (Cornell University)|Oct 17, 2013
Advanced Optimization Algorithms ResearchMathematics11 references112 citations
TL;DR

SOSTOOLS v4.00 introduces a major performance overhaul for sum-of-squares (SOS) optimization in MATLAB, rearchitecting its internal parsing engine to reduce computational and memory overhead below that of the underlying semidefinite programming (SDP) solver. By replacing legacy polynomial variable structures with a new, efficient dpvar format compatible with the multipoly toolbox, the toolbox achieves near-linear scaling in parsing complexity, enabling dramatic speedups—especially for large-scale SOS programs—while maintaining backward compatibility and user-friendliness.

ABSTRACT

The release of SOSTOOLS v4.00 comes as we approach the 20th anniversary of the original release of SOSTOOLS v1.00 back in April, 2002. SOSTOOLS was originally envisioned as a flexible tool for parsing and solving polynomial optimization problems, using the SOS tightening of polynomial positivity constraints, and capable of adapting to the ever-evolving fauna of applications of SOS. There are now a variety of SOS programming parsers beyond SOSTOOLS, including YALMIP, Gloptipoly, SumOfSquares, and others. We hope SOSTOOLS remains the most intuitive, robust and adaptable toolbox for SOS programming. Recent progress in Semidefinite programming has opened up new possibilities for solving large Sum of Squares programming problems, and we hope the next decade will be one where SOS methods will find wide application in different areas. In SOSTOOLS v4.00, we implement a parsing approach that reduces the computational and memory requirements of the parser below that of the SDP solver itself. We have re-developed the internal structure of our polynomial decision variables. Specifically, polynomial and SOS variable declarations made using sossosvar, sospolyvar, sosmatrixvar, etc now return a new polynomial structure, dpvar. This new polynomial structure, is documented in the enclosed dpvar guide, and isolates the scalar SDP decision variables in the SOS program from the independent variables used to construct the SOS program. As a result, the complexity of the parser scales almost linearly in the number of decision variables. As a result of these changes, almost all users will notice a significant increase in speed, with large-scaleproblems experiencing the most dramatic speedups. Parsing time is now always less than 10% of time spent in the SDP solver. Finally, SOSTOOLS now provides support for the MOSEK solver interface as well as the SeDuMi, SDPT3, CSDP, SDPNAL, SDPNAL+, and SDPA solvers.

Motivation & Objective

  • Address the growing computational and memory bottleneck in parsing large-scale sum-of-squares programs (SOSPs), which often exceeds the cost of solving the resulting semidefinite programs (SDPs).
  • Improve the efficiency of SOS programming tools by rearchitecting the internal representation of polynomial and SOS decision variables to minimize parsing overhead.
  • Ensure backward compatibility while significantly accelerating parsing and solution time for SOSPs, particularly those with tens of thousands of decision variables.
  • Enable broader adoption of SOS methods in applications requiring large-scale polynomial optimization by reducing the computational barrier to entry.
  • Maintain usability and intuitive interface for researchers and practitioners while achieving low-level performance gains through structural changes to the core data types.

Proposed method

  • Introduce a new internal data structure, dpvar, optimized for decision variables in SOS programs, decoupling them from independent variables used in polynomial construction.
  • Replace legacy variable declaration functions (e.g., sossosvar, sospolyvar) with dpvar-based equivalents to streamline parsing and reduce symbolic overhead.
  • Integrate the multipoly toolbox to eliminate reliance on MATLAB’s symbolic math toolbox, reducing parsing time and memory consumption.
  • Reorganize the solver interface to separate SDP decision variables from polynomial variables, enabling efficient permutation and reordering via RRx/RRy matrices.
  • Use permutation matrices (RRx, RRy) to map user-defined SOS variables to the SDP solver’s required input format, abstracting low-level complexity from the user.
  • Optimize the parsing pipeline so that its complexity scales almost linearly with the number of decision variables, outperforming the SDP solver’s own complexity in large problems.

Experimental results

Research questions

  • RQ1Can the parsing overhead in sum-of-squares optimization be reduced to a level below that of the SDP solution phase?
  • RQ2How can the internal representation of polynomial and SOS variables be restructured to improve scalability and reduce memory usage in large-scale SOS programs?
  • RQ3To what extent can the integration of the multipoly toolbox and a new dpvar structure accelerate SOS program parsing without sacrificing usability?
  • RQ4Does the new architecture in SOSTOOLS v4.00 enable significant performance gains across a wide range of SOS problem sizes, particularly large-scale ones?
  • RQ5Can the new parsing pipeline maintain backward compatibility with existing SOSTOOLS workflows while delivering substantial speedups?

Key findings

  • The new dpvar-based parsing architecture reduces computational and memory overhead below that of the SDP solver itself, making parsing the bottleneck no longer.
  • Parsing time in SOSTOOLS v4.00 scales almost linearly with the number of decision variables, significantly improving efficiency over previous versions.
  • Large-scale SOS programs—especially those with tens of thousands of decision variables—experience the most dramatic speedups, with parsing time reduced to less than 10% of SDP solve time.
  • The integration of the multipoly toolbox and the new dpvar structure eliminates much of the symbolic overhead previously associated with MATLAB’s symbolic engine.
  • The new architecture maintains full backward compatibility, ensuring that existing SOSTOOLS scripts and workflows continue to function without modification.
  • The solution pipeline remains robust, with full access to primal and dual solutions, SDP solver information, and extracted SOS decompositions via fields like prog.solinfo.extravar.primal and prog.solinfo.RRx.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.