其他文章:
通过0-1背包问题看穷举法、贪心算法、启发式算法(JAVA)
java集成Cplex:Cplex下载、IDEA环境搭建、docker部署
windows下cplex12.6.3的下载、安装、IDE编程及相关问题解决
windows下cplex20.1.0启动报错: ilog.odms.ide.opllang.IloOplLangPlugin
今天在Linux上安装了一下Cplex20.1的bin包,相关软件包可以去我的CSDN资源中下载(不是公众号)。安装过程如下:
[root@cluster1 ~]#
[root@cluster1 ~]# ls # 查看下载包 bin包的安装就是直接执行
ILOG_COS_20.10_LINUX_X86_64.bin
[root@cluster1 ~]#
[root@cluster1 ~]#
[root@cluster1 ~]# chmod +x ILOG_COS_20.10_LINUX_X86_64.bin # 给文件附上可执行权限
[root@cluster1 ~]#
[root@cluster1 ~]#
[root@cluster1 ~]# ./ILOG_COS_20.10_LINUX_X86_64.bin # 执行该文件(开始安装,根据提示每一步进行相应的输入,安装前确认java环境已经安装完成)
Preparing to install
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
Launching installer...
===============================================================================
Choose Locale...
----------------
1- Deutsch
->2- English
3- Español
4- Français
5- Português (Brasil)
CHOOSE LOCALE BY NUMBER: 2 # 选择安装语言
===============================================================================
IBM ILOG CPLEX Optimization Studio 20.1.0 (created with InstallAnywhere)
-------------------------------------------------------------------------------
Preparing CONSOLE Mode Installation...
===============================================================================
Introduction
------------
InstallAnywhere will guide you through the installation of IBM ILOG CPLEX
Optimization Studio 20.1.0.
It is strongly recommended that you quit all programs before continuing with
this installation.
Respond to each prompt to proceed to the next step in the installation. If
you want to change something on a previous step, type 'back'.
You may cancel this installation at any time by typing 'quit'.
PRESS <ENTER> TO CONTINUE: # 输入回车
===============================================================================
LICENSE INFORMATION
The Programs listed below are licensed under the following License
Information terms and conditions in addition to the Program license
terms previously agreed to by Client and IBM. If Client does not have
previously agreed to license terms in effect for the Program, the
International Program License Agreement (Z125-3301-14) applies.
Program Name (Program Number):
IBM ILOG CPLEX Optimization Studio Developer Edition 20.1 (5725-A06)
IBM ILOG CPLEX Optimizer Deployment Edition 20.1 (5725-A06)
IBM ILOG CPLEX Optimizer for Non-Production 20.1 (5725-A06)
IBM ILOG CPLEX Optimizer Single User Edition 20.1 (5725-A06)
IBM CPLEX Optimizer Deployment Entry Edition 20.1 (5725-A06)
IBM ILOG CPLEX MILP add-on Developer Edition 20.1 (5724-Y48)
IBM ILOG CPLEX Developer Edition 20.1 (5724-Y48)
IBM ILOG CPLEX LP Developer Edition 20.1 (5724-Y48)
IBM ILOG CP Optimizer Developer Edition 20.1 (5724-Y49)
IBM ILOG OPL CPLEX Developer Edition 20.1 (5724-Y54)
Press Enter to continue viewing the license agreement, or enter "1" to
accept the agreement, "2" to decline it, "3" to print it, or "99" to go back
to the previous screen.: 1 # 接受协议
===============================================================================
Choose Install Folder
---------------------
Where would you like to install?
Default Install Folder: /opt/ibm/ILOG/CPLEX_Studio201
ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
: # 输入回车 使用默认安装目录/opt/ibm/ILOG/CPLEX_Studio201
===============================================================================
Ready To Install
----------------
InstallAnywhere is now ready to install IBM ILOG CPLEX Optimization Studio
20.1.0 onto your system at the following location:
/opt/ibm/ILOG/CPLEX_Studio201
PRESS <ENTER> TO INSTALL: # 输入回车
===============================================================================
Pre-Installation Summary
------------------------
Please Review the Following Before Continuing:
Product Name:
IBM ILOG CPLEX Optimization Studio 20.1.0
Install Folder:
/opt/ibm/ILOG/CPLEX_Studio201
Product Version
20.1.0
Disk Space Information (for Installation Target):
Required: 1,967,070,621 Bytes
Available: 11,364,433,920 Bytes
PRESS <ENTER> TO CONTINUE: # 输入回车
===============================================================================
Installing...
-------------
[==================|==================|==================|==================]
[------------------|------------------|------------------|------------------]
===============================================================================
Please Wait
-----------
===============================================================================
Please Wait
-----------
===============================================================================
Installing the engines in your Python environment
-------------------------------------------------
If you want to use the CPLEX or CP Optimizer engines through their Python
APIs, you need to tell Python where to find them. To do so, enter the
following command into a terminal :
<<<<<<
python /opt/ibm/ILOG/CPLEX_Studio201/python/setup.py install
>>>>>>
PRESS <ENTER> TO CONTINUE: # 输入回车 安装python
===============================================================================
Improve the product
-------------------
Do you agree to let IBM collect product usage data (including installation,
starting the IDE, creating a model, solving it) to improve your user
experience?
No model content or proprietary data will be sent.
1- Yes
2- No
ENTER THE NUMBER OF THE DESIRED CHOICE: 2 # 输入2 不给IBM发送用户使用数据
===============================================================================
Installation Complete
---------------------
IBM ILOG CPLEX Optimization Studio 20.1.0 has been successfully installed to:
/opt/ibm/ILOG/CPLEX_Studio201
PRESS <ENTER> TO EXIT THE INSTALLER: # 输入回车 安装完成
[root@cluster1 ~]#
[root@cluster1 ~]#
[root@cluster1 ~]# ls /opt/ibm/ILOG/CPLEX_Studio201 # 查看安装目录
concert cplex cpoptimizer doc license opl python README.html swidtag Uninstall
[root@cluster1 ~]#
[root@cluster1 ~]# ls /opt/ibm/ILOG/CPLEX_Studio201/cplex/
bin examples include lib python readmeUNIX.html
[root@cluster1 ~]#
[root@cluster1 ~]# ls /opt/ibm/ILOG/CPLEX_Studio201/cplex/lib/ # 查看jar包
cplex.jar x86-64_linux
[root@cluster1 ~]#
[root@cluster1 ~]# ls /opt/ibm/ILOG/CPLEX_Studio201/cplex/bin/
x86-64_linux
[root@cluster1 ~]#
[root@cluster1 ~]# ls /opt/ibm/ILOG/CPLEX_Studio201/cplex/bin/x86-64_linux/ # 查看库文件
cplex libcplex2010mpitransport.so libcplex2010processworker.so libcplex2010.so
cplexamp libcplex2010mpiworker.so libcplex2010remotejni.so libcplex2010tcpiptransport.so
cpxworker libcplex2010processtransport.so libcplex2010remote.so libcplex2010tcpipworker.so
[root@cluster1 ~]#
[root@cluster1 ~]#