0

How to pass MIP gap parameter to Gurobi with PULP?

I tried: prob.solve(GUROBI_CMD(epgap = 0.9))

No luck

I used this wiki for all my failed attempts

vaultah
  • 44,105
  • 12
  • 114
  • 143
user3431083
  • 404
  • 5
  • 19

1 Answers1

1

Looking at the code, i would assume, that you have to give the arguments as defined in gurobi's docs (these are then passed when calling gurobi's cli), compatible with pulp's function-signature.

prob.solve(GUROBI_CMD(options=['MIPGap=0.9']))

But i probably recommend using the python-interface if you got gurobipy working (read gurobi's docs). This would look like:

prob.solve(GUROBI(epgap = 0.9))
sascha
  • 32,238
  • 6
  • 68
  • 110