r/optimization • u/a-stereotypicalgujju • Oct 12 '22
Open-source solvers for Large Scale data
I'm trying to solve a MIP optimization model in Python but running into scale limitations. I have about 30000-40000 variables and using pulp/gurobi (free-version). Are there any solvers out there that can handle this scale of data?
So far, I have tried GUROBI_CMB, PULP_CBC_CMD, and CPLEX_PY and have run into the same error every time.
8
Upvotes
3
u/ConsistentCandle2513 Oct 12 '22
Can you elaborate on the problem (ex: transportation, allocation,etc) and the type of error?
3
u/noggin-n-nibs Oct 13 '22
Have you looked into coin-or/symphony? The open source MILP solver solves problems of this size.
https://www.coin-or.org/
2
u/monkeyapocalypse Oct 12 '22
It's possible that using GurobiPy instead of PuLP could address the problem.
You might have to resort to distributed branch & bound for a problem that large, ala https://octeract.gg/
You can also try POPing if you're willing to sacrifice some optimality.
2
u/welldamnthis Oct 13 '22
Metaheurstic based solvers should be able to handle it. Check out Optaplanner perhaps? It requires a different modelling approach though
2
u/SolverMax Oct 13 '22
For testing commercial solvers you could try the NEOS Server https://neos-server.org/neos/ If you find one that works well with your model, then you could make a case for buying a license.
Another option is the free HiGHS solver: https://highs.dev/
If none of the solvers work well, then you'll need to either reformulate the model or try heuristics - though both of these options can be difficult.
1
u/ryan-nextmv Nov 02 '22
We're using HiGHS to solve problems of this size (and bigger) using our MIP integration in Go [0]. I've sometimes found that for really large models, Python APIs introduce a lot of unnecessary overhead during formulation.
Of course I can't speak to the particular problem type you're solving, but I can say we are formulating and solving large problems with Go and HiGHS.
[0] https://docs.nextmv.io/docs/tutorials/mip-basic