Comparison
amplpy vs cvxpy vs optlang vs xpress
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Python API for AMPL
Maintained. Last release 3 weeks ago, commits in 5 of the last 26 weeks. Weaker on commit activity and contributor spread.
pip install amplpyA domain-specific language for modeling convex optimization problems in Python.
Actively maintained. Last release 4 days ago, commits in 24 of the last 26 weeks. A safe choice.
pip install cvxpyFormulate optimization problems using sympy expressions and solve them using interfaces to third-party optimization software (e.g. GLPK).
Maintained. Last release 6 months ago, commits in 3 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install optlangFICO Xpress Optimizer Python interface
Actively maintained. Last release 5 weeks ago. A safe choice.
pip install xpressIn short
- cvxpy is the most used: 5.3M downloads a month, 24× more than xpress.
- Maintenance is comparable: cvxpy 92, xpress 84, amplpy 65, optlang 49 on Pythie’s Index.
- optlang is growing fastest: downloads +79% over the last month.
- Safe default for a new project: cvxpy.