百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

scs

> 开发工具
开源

分割锥形求解器

627 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

分割锥形求解器

SCS (splitting conic solver) is a numerical optimization package for solving large-scale convex cone problems. The current version is 3.3.1.

The full documentation is available here.

If you wish to cite SCS please cite the papers listed here.

Overview

SCS solves convex cone programs of the form:

minimize    (1/2) x'Px + c'x
subject to  Ax + s = b, s in K

where K is a product of convex cones. It uses an operator-splitting method (ADMM) with Anderson acceleration to achieve fast convergence.

Supported cones: zero/linear (LP), box, second-order (SOCP), semidefinite (SDP), complex semidefinite, exponential, power, and spectral cones (log-determinant, nuclear norm, ell1-norm, sum-of-largest eigenvalues).

Features

  • Multiple linear solver backends: sparse direct (QDLDL), dense direct (LAPACK), iterative (CG), Intel MKL Pardiso, Apple Accelerate (macOS), NVIDIA cuDSS, GPU
  • Anderson acceleration for faster convergence, including solve diagnostics
  • Problem data normalization/equilibration for numerical stability
  • Adaptive dual scaling, with per-row diagonal rescaling driven by residual profiles (adaptive_diag_scale, on by default)
  • Warm-starting and incremental b/c updates via scs_update
  • Ctrl-C signal handling for graceful interruption
  • Configurable precision (float/double) and index type (int/long long)
  • MIT licensed

Building from Source

Make (default)

bash
make                    # Build direct + indirect solvers with BLAS/LAPACK
make test               # Build test binaries
./out/run_tests_direct  # Run direct solver tests
./out/run_tests_indirect

Note that the spectral-cone tests are skipped unless SCS is built with USE_SPECTRAL_CONES=1 (see the flag table below); a default make test run reports them as skipped.

CMake

bash
mkdir build && cd build
cmake -DBUILD_TESTING=ON -DUSE_LAPACK=ON ..
cmake --build .
ctest

Common Build Flags

Flag Default Description
USE_LAPACK 1 Enable BLAS/LAPACK (required for SDP support)
DLONG 0 Use 64-bit integer indexing
SFLOAT 0 Use single-precision floats
USE_SPECTRAL_CONES 0 Enable spectral cone support (requires LAPACK)
USE_OPENMP 0 Enable OpenMP parallelization

Example: make DLONG=1 USE_LAPACK=1

Language Interfaces

SCS has interfaces for several languages:

  • Python: scs-python (pip install scs, PyPI)
  • Julia: SCS.jl
  • R: scs
  • MATLAB: scs-matlab (install guide)
  • Ruby: scs-ruby

In CVXPY, SCS is the default solver for semidefinite, exponential-cone and power-cone problems (Clarabel handles LPs and SOCPs, OSQP handles QPs).

Project Structure

…

License

MIT License. See LICENSE.txt.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Ccone-programmingconvex-optimizationfirst-order-methodslinear-programming

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具