Search code examples
python-3.xoptimizationpulpmixed-integer-programming

Getting intermediate info. from PuLP


Getting intermediate result, while PuLP is trying to find the optimal and feasible solution.

As you know, solving Mixed integer Linear programming (MILP) cases may take a long time. I'm trying to get intermediate results from PuLP optimization package, while it is running. I know it is possible to do that in Gurobi, which is a commercial optimization package.

I'm not sure about the code I can use in PuLP package to get that information. Any advice would be appreciated.


Solution

  • Pulp doesn't really have this interface (though if you use gurobi you can access the underlying solver object).