安装CPPAD和Fortran
$ sudo apt-get install cppad gfortran
获取ipopt源代码
下载Ipopt-3.12.8.tgz
https://www.coin-or.org/download/source/Ipopt/
$ wget http://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.8.tgz $ tar xvzf Ipopt-3.12.8.tgz
$ cd CUSTOM_PATH / Ipopt-3.12.8 / ThirdParty / Blas
$ ./get.Blas
$ cd ../Lapack
$ ./get.Lapack
$ cd ../Mumps
$ ./get.Mumps
$ cd ../Metis
$ ./get.Metis
$ cd CUSTOM_PATH / Ipopt-3.12.8
$ mkdir build
$ cd build
$ ../configure
$ make -j4
$ make install
将安装文件复制到特定目录
$ cd CUSTOM_PATH / Ipopt-3.12.8 / build
$ sudo cp -a include / * / usr / include /.
$ sudo cp -a lib / * / usr / lib /.
本文详细介绍如何在Linux环境下安装并配置Ipopt优化求解器,包括安装CPPAD和Fortran,获取Ipopt源代码,以及配置和安装依赖库如Blas、Lapack、Mumps和Metis等。
7035

被折叠的 条评论
为什么被折叠?



