在 Python/Gurobi 中关闭回调的输出标志

Turn off output flag from callback in Python/Gurobi

有什么方法可以关闭 Python/Gurobi 中回调的输出吗? 具体来说,在进行 Branch and Cut 时。

谢谢!

是的,你可以修改OutputFlag,它控制着Gurobi的输出。将 OutputFlag 设置为 0 将抑制求解器输出。

Link 到 OutputFlag 文档 here。 Link 到其他 Gurobi 标志 here

希望对 Seba 有所帮助!