首页 > 解决方案 > 将 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.

标签: cplex

解决方案


要确定 DOcplex 使用哪个 CPLEX 运行时,请check_list在命令行运行模块(在 Python 路径中使用 docplex):

python -m docplex.mp.check_list

推荐阅读