运行示例

您可以简单地使用Gurobi交互式shell来运行示例,方法是更改到Gurobi Python示例目录(< installdir > / / python示例),并发出以下命令::

gurobi.bat mip1.py

如果你已经安装了gurobipy到现有的Python安装中,如安装选项,您应该通过发出命令,使用您选择的Python解释器来运行这些示例

python mip1.py