IBMDecisionOptimization / docplex-examples

These samples demonstrate how to use the DOcplex library to model and solve optimization problems.
https://ibmdecisionoptimization.github.io/
Apache License 2.0
396 stars 228 forks source link

Python Setup.py install #20

Closed TimZhu-23 closed 4 years ago

TimZhu-23 commented 5 years ago

When solving an optimization problem in python using docplex(not docplex cloud) I got this error : **** Promotional version. Problem size limits exceeded, CPLEX code=1016 Knowing that I have an academic version of Cplex on my macbook, and I installed docplex using pip install docplex only. When looking for a solution I found that I should install the package using setup.py. When trying to do so I got the error : "python: can't open file 'setup.py': [Errno 2] No such file or directory." I ve checked that the file does exist in the Cplexdirectory. But I don’t know what Should I write in the terminal so the file will be opened from the directory (Cplexhome/cplex/python/version/platform)

Is there anyone who can be of any help? Thank you in advance

TimZhu-23 commented 5 years ago

I solved the issue related to installing the API using setup.py. I used the command cd/ directory. But I still getting the same error regarding the limit size. Any help please ? Thank you

vlkong commented 4 years ago

Hi,

Can you please check that the python interpreter you use when you run your program is the same than the one on which you ran "python setup.py install" ?

TimZhu-23 commented 4 years ago

Thank you for your response. I have solve the problem. I used cd command to change the working directory and Setup.py to install the package. Best,

vlkong commented 4 years ago

Ok thanks ! Best regards,