Closed shikharomar closed 4 years ago
Hi,
So if I understood correctly your problem:
right ?
This just means that you need to install cplex/docplex in your virtual env:
conda install -c ibmdecisionoptimization cplex
if you use the CE version)conda install -c ibmdecisionoptimization docplex
If this does not work, please attach a full log of your commands in your shell - I need to know what input and what output you have. Thanks
Thanks for the quick response.
Now I am able to run the optimization but I think due to CE version I am getting this error.
Promotional version. Problem size limits exceeded, CPLEX code=1016
How can I solve this or upgrade to premium?
If you have a full version of COS on your machine:
cd to $CPLEX_STUDIO_DIR1210/cplex/python/3.6/
then
python setup.py install
Please have a look at: https://www.ibm.com/support/knowledgecenter/SSSA5P_12.10.0/ilog.odms.cplex.help/CPLEX/GettingStarted/topics/set_up/Python_setup.html
If you don't have CPLEX studio full version installed, you will need to buy a premium version first.
Hi @vlkong
We used DOcplex Cloud for creating a PoC using mathematical programming module when it used to be a separate entity.
While rerunning the same PoC it is failing with SSL Error. Since DOcplex is migrated to WML, the procedure for running the mp model seems to have changed. I referred to this notebook
Earlier for running a model we used to call model.solve function with api key and url, is there a similar way in the new version to accomplish the same thing?
If not, could you please redirect to a suitable resource.
Thanks, Shikhar
Hi @shikharomar There is no model.solve() function for solving on WML. On WML, the main change is that you send your whole model to WML. In your use case:
I'll send a note to docplex cloud team so that they can help you migrate.
Hi @vlkong
Thanks for your help.
In order to minimize changes in our existing PoC code and some other time constraints, we are planning to buy the Premium version of the IBM COS since according to the documentation API for using it is quite similar to DOcplex Cloud as opposed to using CPLEX through WM.
I am assuming that there is no limit on the number of constraints and variables we use in mp our problem while using the full version of COS. [Previously we were using Free trial of DOcplex cloud and it used to work fine.]
Could you please let me know that my understanding is correct so that I can move forward with that?
Thanks, Shikhar
Hi,
With Premium version of IBM COS, you don't have any limit on the number of constraints and variables (this depends of course on your local system, but if you could build a model with DOcplex Cloud, I don't see any reasons you won't be able to build the same model on premice with Premium).
Best regards, Viu-Long
Hi @vlkong
I am able to use the above mentioned functioned through my base conda environment but when I run the same through a virtual environment it is not able to find its path.
Could you please let me resolve this.
Thanks, Shikhar