Closed arani-mohammad closed 5 years ago
Hi there. Thanks for creating that issue. For information about obtaining CPLEX through the Academic Initiative program, please refer to https://ibm.biz/cplex-free-for-students.
Thank you very much for your help, @vlkong.
As @vlkong suggested, I have contacted Xavier. He provided me the latest CPLEX studio software. And the following is a part of his email to help if anyone has the latest CPLEX studio but does not know how to install it:
**[As a precaution, you may want to remove the Community Edition from your Python environment, so that you don't run the risk of mixing both]
Once you have the software installed, you should run the [install-dir]/python/setup.py script from your Python environment of choice. This will install the correct libraries to replace the Community Edition.**
Since the problem seems solved, I close this issue. Many thanks to @vlkong, Xavier, and the IBM company.
P.S. The following is what I have done step by step to install the academic version of CPLEX and use Python language on Jupyter notebook on Win 7, 64bit, and Python 3.6: 1- Anaconda command prompt: pip uninstall cplex 2- Restart my laptop 3- Install the setup file provided by Xavier 4- Copy and paste the two followings (cplex folder and setup.py) which are accessible to you by the following directory into the directory I was coding in Jupyter notebook: C:\Program Files\IBM\ILOG\CPLEX_Studio129\cplex\python\3.6\x64_win64 5- Add the following block of code at the beginning of your program:
import setup
from docplex.mp.model import Model
6- Everything works perfectly without any limitation of the community edition of cplex
I have done the similar thing to run the setup.py
script but didn't remove the Community Edition (installed through pip) first. Now, when I tried to remove the community version through pip uninstall cplex
, it gave me error
ERROR: Cannot uninstall 'cplex'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
I didn't know the setup.py
can mess up my pip
environment setting...
Teachers, researchers and students looking for the academic version of our engines will find the information they need at https://ibm.biz/cplex-free-for-students. There, we explain how to register in the Academic Initiative program, from where the latest version of CPLEX Optimization Studio can be downloaded.
Hello @arani-mohammad. So I also just encountered the same problem in your previous question about the model limitations using the community edition. But as following your description, I have installed the latest version with the academic Initiative edition, however, I find it hard to find the and Cplex and setup.ly file as you mentioned in the comment section. Could you please provide a new and clear step for installing and using this edition, please? any help would be appreciated. Thank you.
@HengChheang can you please open a new ticket describing your environment and problem ?
Hi @vlkong, First, thank you for dedicating your time to resolve the problems. I have encountered the following issue while I was trying to solve a fairly medium MILP problem. DOcplexLimitsExceeded: **** Promotional version. Problem size limits exceeded, CPLEX code=1016 I have noticed that the version of cplex I am using on Jupiter notebook is the community edition that I installed by using pip install cplex (https://pypi.org/project/cplex/). I was wondering if you could possibly help me to install the academic version which is unlimited for academic purposes (since I am eligible to use it as a grad student). Thank you once again. Regards, M. A.