Solvers in PuLP

Learn about the different solvers that PuLP uses for optimizing a linear programming problem.

PuLP employs an API solver from an available list of optimizers to solve the given linear programming problem.

We can use solvers by specifying them as an argument in the solve method.For instance, in order to use the GLPK method for solving prob, we should use this construction:

prob.solve(GLPK(msg = 0))

While this is not compulsory, some solvers allow the users to pass an initial guess as an argument. This allows solvers to optimize the solution around that guess.

Currently, the PuLP library has the following optimizers for solving LP problems:

Get hands-on with 1200+ tech skills courses.