0

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.com/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.com/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!

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

2 Answers 2

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>
0

When you followed

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

enter image description here

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

1
  • Yes, but I am happy to say that literally as you posted this I found my problem! Docplex had a specific way of being told where the installation was, and did not just auto-detect it as I had imagined. Thank you so much for all the help over the last couple of questions!
    – Trev
    Commented Mar 31 at 14:01

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.