QPALM
1.2.2
Proximal Augmented Lagrangian method for Quadratic Programs
|
These are the instructions for building QPALM from source. If you just want to install the pre-built binaries, please see the main page.
You'll need a C compiler, CMake, and Make or Ninja. To compile the Matlab interface, you need Matlab and MEX as well. For the Python interface, you need the Python development files, which are not installed by default on some systems. For example, on Ubuntu, install the python3-dev
package.
Download QPALM from https://github.com/kul-optec/QPALM:
If you already cloned it without the --recursive
argument, use:
Open a terminal inside of the QPALM repository, and configure and build the project:
On Linux, Matlab automatically adds ~/Documents/MATLAB
to the path, so it's easiest install QPALM there:
To uninstall QPALM, simply remove the +qpalm
folder from where you installed it:
QPALM is available on PyPI, with binaries for Windows (x86_64), macOS (x86_64) and Linux (x86_64 and arm64). To install it, use:
To build the Python bindings yourself, create a virtual environment:
Then install Eigen:
And finally, install the package:
First, build the binary JLL package using BinaryBuilder.jl, and deploy it locally (to your ~/.julia/dev
folder):
Then install the development version of QPALM.jl as well:
You can run the tests using:
Usually, you'll use BinaryBuilder.jl instead of compiling it manually, but if you need to, you can:
To install the C and C++ libraries and headers, simply follow the standard CMake configure, build, install instructions:
If you just need the shared libraries, you can use:
To build the Fortran interface as well, simply add the option -D QPALM_WITH_FORTRAN=On
to the first CMake command.
For the C++ interface, you'll need to have the Eigen library installed. You can find installation instructions in the scripts provided by the QPALM repository (scripts/install-eigen.{sh,ps1}
), or install it through your system's package manager, for example: