Subsections

Getting the IPOPT Code

IPOPT is available from the COIN-OR subversion repository and the COIN-OR group at GitHub (for expert users). You can either download the code using svn (the subversion client) or git or simply retrieve a tarball (compressed archive file). While the tarball is an easy method to retrieve the code, using the subversion and git system allows users the benefits of the version control system, including easy updates and revision control.

Getting the IPOPT code via subversion

Of course, the subversion client must be installed on your system if you want to obtain the code this way (the executable is called svn); it is already installed by default for many recent Linux distributions. Information about subversion and how to download it can be found at http://subversion.apache.org.

To obtain the IPOPT source code via subversion, change into the directory in which you want to create a subdirectory CoinIpopt with the IPOPT source code. Then follow the steps below:

  1. Download the code from the repository
    $ svn co https://projects.coin-or.org/svn/Ipopt/stable/3.12 CoinIpopt
    Note: The $ indicates the command line prompt, do not type $, only the text following it.
  2. Change into the root directory of the IPOPT distribution
    $ cd CoinIpopt

In the following, ``$IPOPTDIR'' will refer to the directory in which you are right now (output of pwd).

Getting the IPOPT code via git (expert users only)

Of course, the git client must be installed on your system if you want to obtain the code this way (the executable is called git). Information about git and how to download it can be found at http://git-scm.com.

NOTE: Currently, cloning the code from the GitHub mirror does not automatically retrieve the IPOPT dependencies that are essential for building IPOPT (BuildTools and build system for external codes). You will have to obtain them manually.

To obtain the IPOPT source code via git, change into the directory in which you want to create a subdirectory CoinIpopt with the IPOPT source code. Then follow the steps below:

  1. Download the code from the repository
    $ git clone -b stable/3.12 https://github.com/coin-or/Ipopt.git CoinIpopt
    Note: The $ indicates the command line prompt, do not type $, only the text following it.
  2. Change into the root directory of the IPOPT distribution
    $ cd CoinIpopt

In the following, ``$IPOPTDIR'' will refer to the directory in which you are right now (output of pwd).

Getting the IPOPT code as a tarball

To use the tarball, follow the steps below:

  1. Download the desired tarball from http://www.coin-or.org/download/source/Ipopt, it has the form Ipopt-x.y.z.tgz, where x.y.z is the version number, such as 3.12.0. There might also be daily snapshot from the stable branch. The number of the latest official release can be found on the IPOPT Trac page.
  2. Issue the following commands to unpack the archive file:
    $ gunzip Ipopt-x.y.z.tgz
    $ tar xvf Ipopt-x.y.z.tar
    Note: The $ indicates the command line prompt, do not type $, only the text following it.
  3. Rename the directory you just extracted:
    $ mv Ipopt-x.y.z CoinIpopt
  4. Change into the root directory of the IPOPT distribution
    $ cd CoinIpopt

In the following, ``$IPOPTDIR'' will refer to the directory in which you are right now (output of pwd).