python-mip VS osqp

Compare python-mip vs osqp and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
python-mip osqp
1 4
500 1,550
1.6% 2.3%
7.1 6.1
about 1 month ago 6 days ago
Python C
Eclipse Public License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

python-mip

Posts with mentions or reviews of python-mip. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-20.
  • Ask HN: Do you use an optimization solver? Which one? Why? Do you like it?
    12 projects | news.ycombinator.com | 20 Apr 2022
    I've been using CBC via python-mip (https://github.com/coin-or/python-mip). It's great because it's got a super clean interface (milp variables/expressions/constraints), the code is quite accessible, and it's low overhead which makes it good for solving many very small problems.

    Community sentiment seems to be beginning to shift toward favouring the HiGHS solver (https://github.com/ERGO-Code/HiGHS) over CBC. Something I'm keeping a close eye on.

    nextmv seems to pitch itself as a generic solving ("decision automation") platform or something (unclear). But it seems that the only fleshed out product offering is for vehicle routing, based on the docs. Are there plans to offer, for instance, a solver binary that can be used to solve generic problems?

    Also all the github repos under https://github.com/nextmv-io are private, so links from docs are 404.

osqp

Posts with mentions or reviews of osqp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-20.
  • Ask HN: Do you use an optimization solver? Which one? Why? Do you like it?
    12 projects | news.ycombinator.com | 20 Apr 2022
    I have been using OSQP [1] quite a bit in a project where I needed to solve many quadratic programs (QPs). When I started the project, OSQP didn't exist yet; I ended up using both cvxopt and MOSEK; both were frustratingly slow.

    After I picked up the project again a year later, I stumbled across the then new OSQP. OSQP blew both cvxopt and MOSEK out of the water (up to 10 times faster) in terms of speed and quality of the solutions. Plus the C interface was quite easy to use and super easy (as far as numerics C code goes) to integrate into my larger project.

    [1] https://osqp.org/

  • What's the industry standard "fast" library for optimization methods?
    2 projects | /r/optimization | 19 Dec 2021
    For quadratic programming—which is a class of problems in convex optimization, which is a sub-field of numerical optimization in general—a solver that is frequently used is OSQP. Although it is implemented in C++ you can also use it in Python thanks to its bindings. If your goal is to use a solver that's state-of-the-art and relatively versatile it is a good pick. If your goal is to find the best solver for a given problem, then there is no one-stop-shop. For example in this benchmark OSQP was the best-performing solver for sparse problems but quadprog performed better on dense problems.

What are some alternatives?

When comparing python-mip and osqp you can also consider the following projects:

or-tools - Google's Operations Research tools:

HiGHS - Linear optimization software

MControlCenter - An application that allows you to change the settings of MSI laptops running Linux

quadprog - Quadratic Programming Solver

SciPy - SciPy library main repository

EA-FC-24-Automated-SBC-Solving - EA FC 24 Automated SBC Solving using Integer Programming ⚽

golomb-solver - Create Golomb rulers with constraint programming

vroom - Vehicle Routing Open-source Optimization Machine

csips - A pure-python integer programming solver

TexasSolver - 🚀 A very efficient Texas Holdem GTO solver :spades::hearts::clubs::diamonds:

minizinc-python - Access to all MiniZinc functionality directly from Python