Ubuntu Ipopt安装与使用(一)
- 1.Getting System Packages
- 2.Download, build, and install dependencies
- HSL(Harwell Subroutines Library)
- (1)Obtain a tarball with HSL source code
- (2) Compile the HSL code via COIN-OR Tool project [ThirdParty-HSL](https://github.com/coin-or-tools/ThirdParty-HSL), run
- (3)Inside the ThirdParty-HSL diectory, unpark this tarball via
- (4) Rename the directory coinhsl-x.y.z to coinhsl, or set a symbolic link:
- (5) Complie
- 3.Compiling and Installing Ipopt
详见:Ipolot官方安装教程
1.Getting System Packages
Linux distributions
sudo apt-get install gcc g++ gfortran git patch wget pkg-config liblapack-dev libmetis-dev
2.Download, build, and install dependencies
HSL(Harwell Subroutines Library)
(1)Obtain a tarball with HSL source code
- Go to http://hsl.rl.ac.uk/ipopt.
- Choose whether to download either the Archive code or the HSL Full code. To download, select the relevant “source” link.
- Follow the instructions on the website, read the license, and submit the registration form.
(2) Compile the HSL code via COIN-OR Tool project ThirdParty-HSL, run
git clone https://github.com/coin-or-tools/ThirdParty-HSL.git
cd ThirdParty-HSL
(3)Inside the ThirdParty-HSL diectory, unpark this tarball via
gunzip coinhsl-xxx.xxx.xxx.tar.gz
tar xf coinhsl-xxx.xxx.xxx.tar
(4) Rename the directory coinhsl-x.y.z to coinhsl, or set a symbolic link:
ln -s coinhsl-xxx.xxx.xxx coinhsl
(5) Complie
./configure
make
sudo make install
3.Compiling and Installing Ipopt
(1) Getting the Ipopt code via git
git clone https://github.com/coin-or/Ipopt.git
cd Ipopt
(2) Compiling
./configue
make
make test
sudo make install