admin管理员组

文章数量:1355051

I am struggling to activate the academic version of CPLEX for use in docplex. I had tried following the steps outlines in .1.2?topic=cplex-setting-up-python-api, but found that these seemed outdated with a note in the changelog.

All of the guidance I have found suggests that I need to grab an API key, but I can't seem to find it anywhere. I downloaded the program by following the link here /, which prompted me first for my academic email, then to create an IBMID. I did both of these and have an install of CPLEX Studio 22.1.2, and have set my path to the location of the DLL file this created.

However, I am still being hit with the error

Promotional version. Problem size limits (1000 vars, 1000 consts) exceeded, model has 660 vars, 1210 consts, CPLEX code=1016

Could anyone point me to any updated guidance or have any advice?

Thank you!

I am struggling to activate the academic version of CPLEX for use in docplex. I had tried following the steps outlines in https://www.ibm/docs/en/icos/22.1.2?topic=cplex-setting-up-python-api, but found that these seemed outdated with a note in the changelog.

All of the guidance I have found suggests that I need to grab an API key, but I can't seem to find it anywhere. I downloaded the program by following the link here https://www.ibm/academic/, which prompted me first for my academic email, then to create an IBMID. I did both of these and have an install of CPLEX Studio 22.1.2, and have set my path to the location of the DLL file this created.

However, I am still being hit with the error

Promotional version. Problem size limits (1000 vars, 1000 consts) exceeded, model has 660 vars, 1210 consts, CPLEX code=1016

Could anyone point me to any updated guidance or have any advice?

Thank you!

Share Improve this question asked Mar 31 at 12:58 TrevTrev 175 bronze badges 2
  • error shows that this version has limit 1000 consts but you have model with 1210 consts – furas Commented Mar 31 at 13:30
  • @furas, yes, the error was used to highlight that the version of CPLEX that is being picked up is the promotional version. I am trying to figure out how to let the python module that I have access to the academic version to no luck sadly. – Trev Commented Mar 31 at 13:39
Add a comment  | 

2 Answers 2

Reset to default 1

I found my answer. In the command prompt, docplex needed to be told directly where the installation was as follows:

>docplex config --upgrade <cplex_studio_location>

When you followed

https://mertbakir.gitlab.io/operations-research/how-to-install-cplex-ibm-academic-initiative/

Are you sure you picked the right product and not the community edition ?

本文标签: Installing IBM ILOG CPLEX academic version for use with pythonStack Overflow