Decision Optimization

Expand all | Collapse all

DOcplex upgrade to full unlimited problem size license

  • 1.  DOcplex upgrade to full unlimited problem size license

    Posted Sat July 31, 2021 01:56 PM
    Hi,

    I have installed `docplex` using pip install and it is working fine. Since there is a size limit on the community edition I am trying to upgrade to unlimited version using the academic edition. 

    I read here that "Community Edition that can be unlocked to the full unlimited edition with an API key". And here I read that, "you receive an email that contains your API key."

    I tried downloading the IBM ILOG CPLEX Optimization Studio V20.10 for Linux on System from https://www-03.ibm.com/isc/esd/dswdown/searchPartNumber.wss?partNumber=CJ8GXML" target="_blank" rel="noopener">here but I haven't received any emails with the key.

    Can you please help me in fixing this? 


    ------------------------------
    SHanaka Perera
    ------------------------------


  • 2.  RE: DOcplex upgrade to full unlimited problem size license

    Posted Sun August 01, 2021 07:58 AM
    Dear SHanaka, 

    Did you check your spam box? Maybe the spam filter wrongly put it there.
    Cheers,

              Renaud

    ------------------------------
    Renaud Dumeur
    ------------------------------



  • 3.  RE: DOcplex upgrade to full unlimited problem size license

    Posted Sun August 01, 2021 08:07 AM
    Hi Renaud,

    Yes, I did check again and I cant see any emails from IBM regarding the key. Please note that I only downloaded Optimization Studio but haven't yet installed for a couple of reasons - as per the here  you dont have to install the studio to upgrade the docplex to unlimited version. 

    Regards,
    Shanaka 


    ------------------------------
    SHanaka Perera
    ------------------------------



  • 4.  RE: DOcplex upgrade to full unlimited problem size license

    Posted Mon August 02, 2021 03:37 AM
    Dear Shanaka,

    There is no API Key for the Academic Initiative version. The API Key is used to unlock the CE version (that has limitations).
    The Academic Initiative version you have is not limited, but does not come with any API Key, so you have to install the studio,
    then install the CPLEX wrappers, as documented here: https://www.ibm.com/docs/en/icos/20.1.0?topic=cplex-setting-up-python-api

    If you are a python user, chances are you have installed `docplex` and `cplex` from PyPI using `pip install`.
    In that case, you have the `cplex` python API in CE version installed in your python environment. All you have to do is
    remove it and replace it with the Academic Initiative version you have. Here's the procedure to upgrade your cplex python api:

    - open a terminal window
    - make sure the terminal window is setup with your python environment (activate the virtual env if you use one)
    - Uninstall your CE CPLEX:
           pip uninstall cplex

    - Install the Academic Initiative version:
         cd <COS_STUDIO_DIR>/cplex/python/3.7/x64_win64

        (replace COS_STUDIO_DIR with your COS installation location, 3.7 with your actual python version, and x64_win64 with your platform)

        pip install .

        (don't forget the trailing dot)

    This will install the CPLEX python api in your python environment.

    Note also that alternatively, if you are using the latest docplex, all you have to do
    is set the CPLEX_STUDIO_DIR201 environment variable to point to your COS location,
    and docplex will find the wrappers without any need to install them.

    Best regards,





    ------------------------------
    Viu Long Kong
    ------------------------------