0

I'm trying to adapt a model, using python, and trying to improve it by inactivate and activate some heuristics of B&C. For that, I'm looking for some help with how to manage parameters for cut heuristics and what types do I have in Gurobi.

1 Answers1

1

Generally you can influence cuts and heuristics by setting parameters. There is an extensive list of parameters in the documentation. For example, to disable cut generation and heuristics for a given model you can do

import gurobipy as gp
m = gp.Model()
m.setParam(GRB.Param.cuts, 0)
m.setParam(GRB.Param.heuristics, 0.0)
Robert
  • 575
  • 3
  • 12