!Logo
维护者:Gurobi Optimization
获取帮助:Gurobi支持、Gurobi文档
- https://github.com/Gurobi/docker-python-example/blob/master/13.0.0/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/12.0.3/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/12.0.2/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/12.0.1/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/12.0.0/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/11.0.3/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/11.0.2/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/11.0.1/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/11.0.0/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/10.0.3/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/10.0.2/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/10.0.1/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/10.0.0/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/9.5.2/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/9.5.1/Dockerfile
- https://github.com/Gurobi/docker-python-example/blob/master/9.5.0/Dockerfile
构建生产应用时,建议使用明确的版本号而非latest标签,以便控制应用的升级过程。
支持的架构:linux/amd64、linux/arm64
发布的镜像制品详情:https://github.com/Gurobi/docker-python-example
DockerHub上可用的Gurobi镜像:
- https://hub.docker.com/r/gurobi/optimizer%EF%BC%9AGurobi%E4%BC%98%E5%8C%96%E5%99%A8%EF%BC%88%E5%AE%8C%E6%95%B4%E5%8F%91%E8%A1%8C%E7%89%88%EF%BC%89
- https://hub.docker.com/r/gurobi/python%EF%BC%9AGurobi%E4%BC%98%E5%8C%96%E5%99%A8%EF%BC%88%E4%BB%85Python API)
- https://hub.docker.com/r/gurobi/python-example%EF%BC%9A%E5%B8%A6WLS%E8%AE%B8%E5%8F%AF%E8%AF%81%E7%9A%84Gurobi Python示例
- https://hub.docker.com/r/gurobi/modeling-examples%EF%BC%9A%E4%BC%98%E5%8C%96%E5%BB%BA%E6%A8%A1%E7%A4%BA%E4%BE%8B%EF%BC%88%E4%BB%A5Jupyter%E7%AC%94%E8%AE%B0%E6%9C%AC%E5%BD%A2%E5%BC%8F%E5%88%86%E5%8F%91%EF%BC%89
- https://hub.docker.com/r/gurobi/compute%EF%BC%9AGurobi%E8%AE%A1%E7%AE%97%E6%9C%8D%E5%8A%A1%E5%99%A8
- https://hub.docker.com/r/gurobi/manager%EF%BC%9AGurobi%E9%9B%86%E7%BE%A4%E7%AE%A1%E7%90%86%E5%99%A8
Gurobi优化器是目前可用的最快、最强大的数学规划求解器,适用于LP、QP和MIP(MILP、MIQP和MIQCP)问题。更多信息请访问Gurobi官网。
Gurobi优化器提供名为“gurobipy”的Python扩展模块,该模块提供便捷的面向对象建模构造以及访问所有Gurobi功能的API。更多信息请参见快速入门指南。
gurobi/python-example镜像提供了一个简单示例,展示如何将gurobi/python用作带有Gurobi Web License Service的基础Docker镜像:
- https://github.com/Gurobi/docker-python-example/blob/master/13.0.0/Dockerfile%E5%B1%95%E7%A4%BA%E4%BA%86%E5%A6%82%E4%BD%95%E8%87%AA%E5%AE%9A%E4%B9%89%E9%95%9C%E5%83%8F
- https://github.com/Gurobi/docker-python-example/blob/master/13.0.0/matrix1.py%E8%AE%BE%E7%BD%AE%E4%BA%86WLS%E8%AE%B8%E5%8F%AF%E8%AF%81
- 优化示例在入门指南中有详细说明
获取Gurobi许可证
此镜像设计用于配合Web License使用。Web License Service(WLS)是Gurobi为容器化环境(Docker、Kubernetes等)提供的许可服务。Gurobi组件可自动向全球多个地区的WLS服务器请求和续订许可证令牌。WLS仅要求容器能够访问互联网。商业用户可申请评估许可,学术用户可申请免费许可。请注册以访问Web License Manager并阅读文档。
如需讨论许可选项,请联系销售代表:***。
使用客户端许可证
此镜像通过以下环境变量传递许可证信息:
- GRB_WLSACCESSID:Gurobi Web License Service的访问ID
- GRB_WLSSECRET:Gurobi Web License Service的密钥
- GRB_LICENSEID:Gurobi Web License Service的许可证ID
运行示例简单快捷,只需在docker命令行中通过环境变量传递WLS许可证信息:
console
$ docker run -e GRB_WLSACCESSID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
-e GRB_WLSSECRET=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
-e GRB_LICENSEID=99999 \
gurobi/python-example
同样,您可以在各种容器化环境中运行此镜像。
下载并使用此镜像即表示您同意包含在此镜像中的Gurobi软件的最终用户许可协议。
与所有Docker镜像一样,此镜像可能还包含其他受其他许可证约束的软件(如基础发行版中的Bash等,以及主要软件的任何直接或间接依赖项)。
对于任何预构建镜像的使用,镜像用户有责任确保对该镜像的任何使用均符合其中包含的所有软件的相关许可证。