I am using Pulp with Python to specify an LP problem. I want to solve this using Gurobi. The following does work:
prob.solve(pulp.GUROBI_CMD())
However, now I want to specify a MIP Gap. This should be a parameter of the Gurobi solver according to this page.
What is the syntax to define this parameter (at, say, 0.05)?
Edit: I checked this post, but none of the suggestions works:
- GUROBI_CMD(options=["MIPGap=0.9"] throws "ValueError: too many values to unpack (expected 2)"
- prob.solve(GUROBI(epgap = 0.9)) throws "pulp.solvers.PulpSolverError: GUROBI: Not Available." Moreover gurobipy cannot be installed ("No matching distribution found for gurobipy").
Hope anyone can give any suggestions on how to tackle this problem!