Search code examples
pythoncallbackgurobi

Turn off output flag from callback in Python/Gurobi


Is there any way to turn off the output from a callback in Python/Gurobi? Specifically, while doing Branch and Cut.

Thanks!


Solution

  • Yes, you can modify OutputFlag, which controls the Gurobi output. Setting OutputFlag to 0 will suppress solver output.

    Link to the OutputFlag documentation here. Link to other Gurobi flags here.

    Hope this helps Seba!