Splitting Conic Solver
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.
SCS solves convex cone programs of the form:
minimize (1/2) x'Px + c'x
subject to Ax + s = b, s in Kwhere 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).
adaptive_diag_scale, on by default)b/c updates via scs_updatefloat/double) and index type (int/long long)make # Build direct + indirect solvers with BLAS/LAPACK
make test # Build test binaries
./out/run_tests_direct # Run direct solver tests
./out/run_tests_indirectNote 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.
mkdir build && cd build
cmake -DBUILD_TESTING=ON -DUSE_LAPACK=ON ..
cmake --build .
ctest| 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
SCS has interfaces for several languages:
pip install scs, PyPI)In CVXPY, SCS is the default solver for semidefinite, exponential-cone and power-cone problems (Clarabel handles LPs and SOCPs, OSQP handles QPs).
…MIT License. See LICENSE.txt.
No open issues yet, or sync has not completed.