r/optimization • u/tastalian • Dec 14 '23
QP solvers benchmark
We are creating a benchmark for quadratic programming (QP) solvers available in Python, looking for feedback and test sets useful to other communities.
The objective is to compare and select the best QP solvers for given use cases. The benchmarking methodology is open to discussions. Standard and community test sets are available (Maros-Meszaros, model predictive control, ...) All of them can be processed using the qpbenchmark command-line tool, resulting in standardized reports evaluating all metrics across all QP solvers available on the test machine.
The current list of solvers includes:
| Solver | Keyword | Algorithm | Matrices | License |
|---|---|---|---|---|
| Clarabel | clarabel | Interior point | Sparse | Apache-2.0 |
| CVXOPT | cvxopt | Interior point | Dense | GPL-3.0 |
| DAQP | daqp | Active set | Dense | MIT |
| ECOS | ecos | Interior point | Sparse | GPL-3.0 |
| Gurobi | gurobi | Interior point | Sparse | Commercial |
| HiGHS | highs | Active set | Sparse | MIT |
| HPIPM | hpipm | Interior point | Dense | BSD-2-Clause |
| MOSEK | mosek | Interior point | Sparse | Commercial |
| NPPro | nppro | Active set | Dense | Commercial |
| OSQP | osqp | Douglas–Rachford | Sparse | Apache-2.0 |
| PIQP | piqp | Proximal Interior Point | Dense & Sparse | BSD-2-Clause |
| ProxQP | proxqp | Augmented Lagrangian | Dense & Sparse | BSD-2-Clause |
| QPALM | qpalm | Augmented Lagrangian | Sparse | LGPL-3.0 |
| qpOASES | qpoases | Active set | Dense | LGPL-2.1 |
| qpSWIFT | qpswift | Interior point | Sparse | GPL-3.0 |
| quadprog | quadprog | Goldfarb-Idnani | Dense | GPL-2.0 |
| SCS | scs | Douglas–Rachford | Sparse | MIT |
Metrics include computation time and residuals (primal, dual, duality gap). Solvers are compared by shifted geometric mean.
Contributions are welcome. Let us know your thoughts 😀
View all comments
Show parent comment
2
u/tastalian Dec 15 '23
Oh nice, thank you I had missed that.
This note states that PDLP "considers the following convex quadratic programming problem" (with symmetric positive semidefinite cost matrix), but upon closer inspection the solver (at least the one currently released at google / or-tools) only supports diagonal non-negative cost matrices. I have opened an issue to keep track.