QPALM
A proximal augmented Lagrangian method for QPs.
|
This is a C implementation of QPALM, a proximal augmented Lagrangian based solver for (possibly nonconvex) quadratic programs. QPALM solves problems of the form:
First of all, clone the repo with all the submodules! For this, run
To install the mex interface of QPALM, add QPALM and its subfolders to the matlab path. Then run qpalm_make.m. You can test whether QPALM is working using the examples/qpalm_mex_demo.m and examples/qpalm_mex_nonconvex_demo.m.
To install a C-callable library, check Bintray for the binaries. These were compiled against lapack and lapacke from conda. So install miniconda and run the following commands
The python interface unfortunately only works on Linux, not on MacOS. It has been compiled for python version 3.7. If you want to use a different version, do your own install with the instructions on custom compilation below. After following the instructions for installing the C-library above (or a custom compilation below), do
Clone QPALM.jl. Follow the instructions on the C library above. In addition, copy the lib folder obtained from bintray to path-to-QPALM.jl/deps, and do
Then from the Julia (>= 1.0) REPL, do
If you wish to do a custom compilation of the shared libraries, take a look at buildCustom.sh. First install the dependencies
Then change the following lines near the top of the script
Furthermore, change the cmake line to have whatever flags you want. To build the release version (with tests), use for example
To build the python interface, use instead
Finally, run the buildCustom.sh script
If you use QPALM in your research, please cite the following paper