Skip to main content
QUICK REVIEW

[Paper Review] SDLS: a Matlab package for solving conic least-squares problems

Didier Henrion, Jérôme Malick|ArXiv.org|Sep 17, 2007
Matrix Theory and AlgorithmsComputer Science2 references6 citations
TL;DR

SDLS is a free, user-friendly MATLAB package for solving convex conic least-squares problems by dual quasi-Newton optimization. It efficiently computes the nearest correlation matrix to a given matrix by projecting onto a semidefinite cone, ensuring positive semidefiniteness and diagonal constraints via a smooth, scalable algorithm with built-in convergence monitoring.

ABSTRACT

This document is an introduction to the Matlab package SDLS (Semi-Definite Least-Squares) for solving least-squares problems over convex symmetric cones. The package is shortly presented through the addressed problem, a sketch of the implemented algorithm, the syntax and calling sequences, a simple numerical example and some more advanced features. The implemented method consists in solving the dual problem with a quasi-Newton algorithm. We note that SDLS is not the most competitive implementation of this algorithm: efficient, robust, commercial implementations are available (contact the authors). Our main goal with this Matlab SDLS package is to provide a simple, user-friendly software for solving and experimenting with semidefinite least-squares problems. Up to our knowledge, no such freeware exists at this date.

Motivation & Objective

  • To provide a simple, open-source MATLAB tool for solving semidefinite least-squares problems over convex symmetric cones.
  • To enable researchers and practitioners to experiment with conic least-squares optimization without relying on commercial software.
  • To support practical applications such as correlation matrix calibration by restoring positive semidefiniteness and diagonal constraints.
  • To offer a transparent, easy-to-use implementation that mirrors SeDuMi’s syntax while solving a different class of problems (quadratic vs. linear objectives).
  • To facilitate numerical experimentation through accessible syntax and built-in convergence diagnostics.

Proposed method

  • The method solves the dual problem of the original conic least-squares problem using a quasi-Newton BFGS algorithm.
  • The dual objective function is f(y) = ½‖p_K(c + Aᵀy)‖² − bᵀy, where p_K denotes orthogonal projection onto the cone K.
  • The algorithm leverages MATLAB’s built-in eig function for eigenvalue decomposition and handles sparse matrices efficiently.
  • The cone K is specified via a structure with fields K.f (free variables), K.l (nonnegative variables), K.q (second-order cone constraints), and K.s (semidefinite matrix blocks).
  • The implementation uses HANSO’s BFGS solver and includes optional regularization and scaling for numerical stability.
  • Convergence is monitored via the residual norm(A*x - b), which equals the gradient norm of the dual objective.

Experimental results

Research questions

  • RQ1Can a simple, free MATLAB package be developed to solve conic least-squares problems with user-friendly syntax?
  • RQ2How effective is a dual quasi-Newton approach for solving semidefinite least-squares problems in practice?
  • RQ3To what extent can SDLS restore positive semidefiniteness in a corrupted correlation matrix while preserving diagonal constraints?
  • RQ4What are the numerical trade-offs between simplicity and performance in a non-commercial implementation?
  • RQ5How do tuning parameters like regularization and scaling affect convergence and solution quality?

Key findings

  • SDLS successfully computes the nearest correlation matrix to a given matrix by projecting it onto the intersection of the semidefinite cone and the affine subspace defined by unit diagonal entries.
  • In the example, the original matrix C had a minimum eigenvalue of -0.0349, indicating loss of positive semidefiniteness, which was restored in the solution X with a minimum eigenvalue of 3.0097e-16, confirming numerical semidefiniteness.
  • The algorithm achieves convergence when the norm of the residual norm(A*x - b) is less than or equal to max(1, ||b||) × eps, with default relative accuracy eps = 1e-6.
  • The gradient norm at the solution, which equals the residual norm, is used as a quality indicator and should be below the specified tolerance.
  • Regularization (e.g., pars.reg = 1e-6) improves performance when the affine constraint is tangent to the cone, indicating potential ill-posedness.
  • The package provides detailed output via the info structure, including function value, gradient, Hessian approximation, and CPU time, enabling solution validation.

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.