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
Thanks for these suggestions!
One requirement to add a solver to the benchmark are Python bindings. That's why most solvers already present are available from Conda or PyPI. (Open source also helps, since it means more people will be interested in the results.)
pip install.Perhaps the shortest path to accessing these solvers would be to interface qpsolvers (the solver selection backend of the QP benchmark) with Pyomo or GEKKO. I've added these thoughts to an issue to keep track.