MATLAB

The easiest way to install SCS in MATLAB is via the pre-compiled toolbox file.

Build from Source

If you are on an unsupported platform or prefer to build from source:

  1. Clone the repository recursively:

git clone --recursive https://github.com/bodono/scs-matlab.git
  1. In a MATLAB session:

cd <path/to/scs-matlab>
make_scs

The installer automatically adds scs-matlab to your MATLAB path and calls savepath so it persists across sessions. If savepath fails (e.g., due to file permissions) it will print the addpath line you need to add to your startup.m.

See here for the API.