cplex - 将 CPLEX Studio 升级到学术版
问题描述
我已经从https://www-03.ibm.com/isc/esd/dswdown/searchPartNumberResults.wss下载了 CPLEX Studio 20.1 ,并将它与 Python 一起使用。
不幸的是,在运行 Python 代码时,出现错误:
CPLEX Error 1016: Community Edition. Problem size limits exceeded.
即使我有学术帐户。
我的问题是:如何将我的 CPLEX 工作室升级到学术版?
如果我跑
python -m docplex.mp.check_list
在主终端我得到:
* system is: Darwin 64bit
* Python version 3.8.8, located at: /opt/anaconda3/bin/python
* docplex is present, version is 2.18.200
* CPLEX library is present, version is 20.1.0.0, located at: /opt/anaconda3/lib/python3.8/site-packages
* pandas is present, version is 1.2.4
* Your cplex version 20.1.0.0 is the latest available
> No problem found: you're all set!
但是,如果我在 PyCharm (conda) 的终端中运行相同的命令,我会得到:
* system is: Darwin 64bit
* Python version 3.8.10, located at: /Users/*username*/.conda/envs/bin/python
* docplex is present, version is 2.21.207
* CPLEX library is present, version is 20.1.0.0, located at: /Users/*username*/.conda/envs/lib/python3.8/site-packages
* pandas is present, version is 1.3.2
* Your cplex version 20.1.0.0 is the latest available
! Cplex promotional version, limited to 1000 variables, 1000 constraints
* diagnostics: 1
-- Your local CPLEX edition is limited. Consider purchasing a full license.
解决方案
要确定 DOcplex 使用哪个 CPLEX 运行时,请check_list
在命令行运行模块(在 Python 路径中使用 docplex):
python -m docplex.mp.check_list
推荐阅读
- reactjs - 下载 zip,解压缩,将内容转换为 srt,最后将 str 转换为数组
- r - 如何减少叶子长度以在 R 树状图中拟合标签?
- github - Composer 在 Travis 中通过 SSH 协议而不是 HTTPS 进行解析
- excel - 选择与另一个 Excel 工作表中的项目列表匹配的所有数据透视项目
- drupal-8 - 在 DKAN 网站中为图像添加自定义 CSS / 将类名称附加到 DKAN 中的 HTML 元素
- json - 创建嵌套对象的数据库实体
- java - 使用 Java 在 DynamoDB 中更改时间点的值
- clion - 如何在clion中排除项目根目录之外的目录?
- html - 无法在 Firefox 中使用使用 CSS 网格 fr 单元计算的 % 高度
- spring-boot - 启动 Spring Cloud CLI 的问题