PuLP vs. GUROBI

1,060 views
Skip to first unread message

lamis...@ejust.edu.eg

unread,
Dec 10, 2014, 6:14:07 PM12/10/14
to gur...@googlegroups.com
What is the difference between using the LP modeler PuLP  or  Gurobi in solving optimziation problems?
As far as I have tried, they generate different results for the same LP problem formulation.

Thanks

Stuart Mitchell

unread,
Dec 10, 2014, 8:24:08 PM12/10/14
to gur...@googlegroups.com
Pulp by default uses the cbc solver, if the objective value of the solutions the same. Often there can be multiple solutions with the same optimal objective, different solvers can find different solutions

Stu

--

---
You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Stuart Mitchell
PhD Engineering Science
Extraordinary Freelance Programmer and Optimisation Guru

Jakob Sch.

unread,
Dec 11, 2014, 4:46:25 AM12/11/14
to gur...@googlegroups.com
Hi,

PuLP is a general purpose LP modeling tool in python (which can also use Gurobi as a solver). Gurobi has a python interface that also acts as modeling tool. It might be a bit harder to learn but it's more powerful (as it can also handle SOCP/QP constraints and has access to callback functions).
As Stuart already mentioned, the objective should be the same if you solve a model with either PuLP (and its default CBC solver) or Gurobi but the solutions might differ.

Best regards,
Jakob
Reply all
Reply to author
Forward
0 new messages