This is written for students who want to work with solvers using python. (It doesn't mention how to use CPLEX itself, so if you want it, please back to Google.)
Simply put, it's a ** paid solver **.
CPLEX is a commercial mathematical optimization software provided by IBM. (Academic version is free)
It is an optimization solver provided by IBM. Students can use it for free. It seems that the student version could not be downloaded for a while, but now it can be done (2019.12.15 information) You can create one account with one academic email address, and you can download and install it only once for each account. Download it carefully.
Here is the point that I personally stumbled upon. If you use Cplex in Python. For Python, please install ** 3.6 ** or ** 3.7 ** of ** 64bit version **. Since the windows compatible version of cplex is 64bit, for some reason it works well up to convert.py in the next section. At the time of pip list, the notation is firmly cplex, but
import cplex
I get an error.
The error is
%1 is not a valid win32 application
I think it was.
Cplex is originally a paid version, but you can install it by creating a student account. I installed it referring to here. [Student version] I didn't have much information about the installation procedure of CPLEX, so I wrote it A few years ago, I didn't know if I could put in IBM Download Director ...? ?? Impression that ...
The folder structure of cplex is like this (partial excerpt) C: \ Program Files \ IBM \ ILOG \ CPLEX_Studio1210 \ The following part. Be careful (stuck) because there are a lot of setup.py in the configuration When introducing cplex, either of the above figures must be executed. For python3.7, execute setup.py under directory 3.7.
>>> python setup.py install
When finished, display the pip list to confirm that cplex is registered as a library.
Reference site: Call Cplex from Python
Once you're done, check the import cplex with python in the terminal.
Recommended Posts