当前位置:网站首页>Installing IBM CPLEX academic edition | CONDA installing CPLEX

Installing IBM CPLEX academic edition | CONDA installing CPLEX

2022-06-24 23:26:00 yihang___

Follow this one blog Come on  CPLEX Optimization Studio is free for students and academics!

If the link fails , Just search CPLEX Optimization Studio is free for students and academics!

Go in and click   Site

Then pull down to find

Attention! , Click here on the left software. The default is in courseware card Of . I've been stuck here for a long time . It's sb Design .

Click on the one on the right CPLEX Optimization Studio The arrow below .

And then it jumps to download page . But if you're useless edu Mailbox registration cannot download. So you can click... In this interface sign up. I have already registered, so I won't repeat it .

And then click download. 

In what you need version Tick the front .

Pull down to see download The button . Click on .

Then you won't be able to download . A little more . A new window will pop up indicating that you need to install a IBM The downloader . Then I downloaded the downloader , Discover the need for Java open . Then install Java8. Then install the downloader , Download again ILOG CPLEX.

And then there's the installation .

windows Just click the mouse , yes exe file .

linux Namely bash *.bin , Direct operation .

The installation process is interactive .

There's a pit here :

linux When installing, the default setting is /opt/ below , But generally you don't have permission . So you can create a new folder that you have permission to install , Close test effectively .

There's another pit :

To install python version Words , You need to be in command line mode , Use your environment python, perform CPLEX Ready setup.py file . 

Here also solves how to use conda Installation issues .

Never use conda Self contained cplex install , That's community edition, Is a limited free version .

You just need to follow what I said above ,conda activate your_environment, Then use the... In this environment python, perform setup.py , Just install to this your_environment I'm off .

This setup.py The logic of , Is to copy the file to the one you use python Of site packages Just under the folder , Nothing special .

But there's another hole here :

It's your python The version should be in 3.7 above ,3.6 You can't . Otherwise, only docplex, Will not install cplex. What a stupid design . No mistake , either warning.

Finally, the installation is completed , Get into python Test it import cplex, No problem, it's done .

Such a simple thing makes it so complicated ,IBM It's sb ah ...

 

原网站

版权声明
本文为[yihang___]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206241804472665.html