当前位置:网站首页>安装IBM CPLEX学术版 academic edition | conda 安装 CPLEX
安装IBM CPLEX学术版 academic edition | conda 安装 CPLEX
2022-06-24 19:43:00 【yihang___】
跟着这篇blog来 CPLEX Optimization Studio is free for students and academics!
如果链接失效了,就搜索 CPLEX Optimization Studio is free for students and academics!
进去之后点击 Site
然后下拉找到

注意啊,这里要点击左边的software。默认是在courseware card的。这里我卡了很久。真是sb设计。
再点击右边的CPLEX Optimization Studio的下面的箭头。
然后就会跳转到download页面。但是你如果没有用edu邮箱注册就无法download。所以你可以在这个界面里点击sign up。我已经注册过了就不重复了。
然后点击download。

在你需要的version前面打勾。
往下拉可以看到download的按钮。点击。
然后会无法下载。再点一下。会弹出一个新窗口提示你需要安装一个IBM的下载器。然后下载了这个下载器,发现需要Java打开。然后安装Java8. 再安装这个下载器,再下载ILOG CPLEX。
然后就是安装。
windows就是点鼠标,是exe文件。
linux就是bash *.bin ,直接运行。
安装过程是交互式的。
这里有个坑:
linux安装的时候默认是在 /opt/ 下面,但是一般你没有权限。所以你完全可以新建一个你有权限的文件夹安装,亲测有效。
还有一个坑:
要安装python version的话,就需要在命令行模式下,用你的环境下的python, 执行CPLEX准备好的setup.py 文件。
这里也解决了如何用conda安装的问题。
千万不要用conda 自带的cplex安装,那个是community edition,是有限制的免费版。
你只需要按照我上面说的,conda activate your_environment, 然后用这个环境下的python,执行setup.py ,就安装到这个your_environment下了。
这个setup.py的逻辑,就是把文件拷贝到你所用的python的site packages文件夹下而已,没什么特殊的。
但是这里还有一个坑:
就是你的python版本要在3.7以上,3.6是不行的。否则就只会安装docplex,不会安装cplex。真是个傻逼设计。又不报错,也不warning。
最后安装完了,进入python测试一下 import cplex,没问题就搞定了。
这么简单的事情搞得这么复杂,IBM真是sb啊。。。
边栏推荐
- 二分查找数组下标
- 花房集团二次IPO:成于花椒,困于花椒
- Construction equipment [4]
- Selection (028) - what is the output of the following code?
- 力扣解法汇总515-在每个树行中找最大值
- websocket学习
- Main cause of EMI - mold current
- Mousse shares listed on Shenzhen Stock Exchange: becoming popular by mattress and "foreign old man", with a market value of 22.4 billion yuan
- 【基础知识】~ 半加器 & 全加器
- UNION ALL UNION FULL JOIN
猜你喜欢

2022 safety officer-b certificate examination question bank and answers

Some updates about a hand slider (6-18, JS reverse)
![[text data mining] Chinese named entity recognition: HMM model +bilstm_ CRF model (pytoch) [research and experimental analysis]](/img/8d/7e4bec3d8abaa647fca7462f127c40.png)
[text data mining] Chinese named entity recognition: HMM model +bilstm_ CRF model (pytoch) [research and experimental analysis]

Second IPO of Huafang group: grown up in Zanthoxylum bungeanum, trapped in Zanthoxylum bungeanum

Theoretical analysis of countermeasure training: adaptive step size fast countermeasure training

推送Markdown格式信息到釘釘機器人

EMI的主要原因-工模电流

Mousse shares listed on Shenzhen Stock Exchange: becoming popular by mattress and "foreign old man", with a market value of 22.4 billion yuan

File contains vulnerability issues

2022 simulated 100 questions and simulated examination of high-altitude installation, maintenance and demolition
随机推荐
Non single file component
Laravel authentication module auth
【js】-【栈、队-应用】-学习笔记
Dig deep into MySQL - resolve the difference between clustered and non clustered indexes
372. 棋盘覆盖
2022 safety officer-b certificate examination question bank and answers
Daily practice (22): maximum sum of continuous subarrays
Selection (027) - what is the output of the following code?
Financial management [4]
Selection (026) - what is the output of the following code?
Push markdown format information to the nailing robot
[basic knowledge] ~ half adder & full adder
【UVM入门 ===> Episode_8 】~ Sequence 和 Sequencer、Sequence 层次化
Case analysis: using "measurement" to improve enterprise R & D efficiency | ones talk
Getting started with the go Cobra command line tool
379. 捉迷藏
laravel 验证器的使用
02_ Springboot starter case
RT thread uses RT kprintf
Uip1.0 active sending problem understanding