| 1 |
\begin{PageSummary} |
| 2 |
\PageName{Installation} |
| 3 |
\PageSection{Installing \Bonmin}{sec:install} |
| 4 |
\PageSection{Configuring {\tt Cplex}}{sec:cplex_install} |
| 5 |
\PageSection{Compiling \Bonmin\ in a external directory}{sec:vpath} |
| 6 |
\PageSection{Building documentation}{sec:ref_man} |
| 7 |
\PageSection{Running test program}{sec:test} |
| 8 |
\end{PageSummary} |
| 9 |
|
| 10 |
\begin{quickref} |
| 11 |
\quickcitation{Generic Coin Installation on Coin BuildTools web page}{\linkCoin BuildTools} |
| 12 |
\quickcitation{Known issues for building Coin packages}{\linkCoin BuildTools} |
| 13 |
\quickcitation{\Bonmin\ build Wiki page.}{\linkCoin Bonmin/wiki/GettingStarted} |
| 14 |
\quickcitation{Specific Instructions for building \Bonmin\ on Cygwin}{\linkCoin Bonmin/Wiki/CygwinInstall} |
| 15 |
\quickcitation{Specific instructions for building \Bonmin\ on Mac OSX}{\linkCoin Bonmin/Wiki/OsXInstall} |
| 16 |
\end{quickref} |
| 17 |
\PageTitle{Installing \Bonmin}{sec:install} |
| 18 |
The build process for \Bonmin\ should be fairly automatic as it uses |
| 19 |
\href{http://sources.redhat.com/autobook/autobook/}{GNU autotools}. |
| 20 |
It has been successfully compiled and run on the following platforms: |
| 21 |
\begin{itemize} |
| 22 |
\item Linux using g++ version 4.5 |
| 23 |
\item Windows using version Cygwin 1.5.18 |
| 24 |
\item Mac OS X using gcc 4.5 |
| 25 |
\end{itemize} |
| 26 |
|
| 27 |
For Cygwin and OS X some specific setup has to be done prior to installation. These step are described on the wiki pages of {\tt Bonmin} \footlink{https://projects.coin-or.org/Bonmin/wiki/CygwinInstall}{CygwinInstall} and \footlink{https://projects.coin-or.org/Bonmin/wiki/OsxInstall}{OsxInstall}. |
| 28 |
|
| 29 |
|
| 30 |
\Bonmin\ is compiled and installed using the commands: |
| 31 |
\begin{colorverb} |
| 32 |
\begin{verbatim} |
| 33 |
./configure -C |
| 34 |
make |
| 35 |
make install |
| 36 |
\end{verbatim} |
| 37 |
\end{colorverb} |
| 38 |
|
| 39 |
If the ASL source had been obtained, this installs the executable {\tt bonmin} in {\tt Bonmin-\stableVersion/bin}. In what follows, we assume |
| 40 |
that you have put the executable {\tt bonmin} on your path. |
| 41 |
|
| 42 |
The {\tt configure} script attempts to find all of the machine specific settings (compiler, libraries,...) |
| 43 |
necessary to compile and run the code. Although {\tt configure} should find most of the standard |
| 44 |
ones, you may have to manually specify a few of the settings. |
| 45 |
The options for the configure script can be found by issuing the command |
| 46 |
|
| 47 |
\begin{colorverb} |
| 48 |
\begin{verbatim} |
| 49 |
./configure --help |
| 50 |
\end{verbatim} |
| 51 |
\end{colorverb} |
| 52 |
|
| 53 |
For a more in depth description of these options, |
| 54 |
the reader is invited to refer to the COIN-OR {\tt BuildTools} \footlink{\linkCoin BuildTools}{trac page}. |
| 55 |
|
| 56 |
\subsectionH{Specifying the location of {\tt Cplex} libraries}{sec:cplex_install} |
| 57 |
If you have {\tt Cplex} installed on your machine, you may want to use it |
| 58 |
as the Mixed Integer Linear Programming subsolver in {\tt B-OA}, {\tt B-Hyb} |
| 59 |
and {\tt B-iFP}. |
| 60 |
To do so you have to specify the location of the header files and libraries. |
| 61 |
You can either specify the location of the header files directory by passing it as an |
| 62 |
argument to the configure script or by writing it into a {\tt config.site}. |
| 63 |
|
| 64 |
In the former case, specify the location of the {\tt Cplex} header files by using the |
| 65 |
argument {\tt --with-cplexincdir} and the location of the |
| 66 |
{\tt Cplex } library with {\tt --with-cplexlib} (note that on the Linux platform you will also |
| 67 |
need to add {\tt -lpthread -lm} as an argument to {\tt --with-cplexlib}). |
| 68 |
|
| 69 |
For example, on a Linux machine if {\tt Cplex} is installed in {\tt /usr/ilog}~, you would |
| 70 |
invoke configure with the arguments as follows: |
| 71 |
|
| 72 |
\begin{colorverb} |
| 73 |
\begin{verbatim} |
| 74 |
./configure --with-cplex-incdir=/usr/ilog/cplex/include/ilcplex \ |
| 75 |
--with-cplex-lib="/usr/ilog/cplex/lib/libcplex.a -lpthread -lm" |
| 76 |
\end{verbatim} |
| 77 |
\end{colorverb} |
| 78 |
|
| 79 |
In the latter case, put a file called {\tt config.site} in a subdirectory named |
| 80 |
{\tt share} of the installation directory (if you do not specify an alternate |
| 81 |
installation directory to the {\tt configure} script with the {\tt --prefix} |
| 82 |
argument, the installation directory is the directory where you execute the |
| 83 |
{\tt configure} script). To specify the location of {\tt Cplex}~, insert the |
| 84 |
following lines in the {\tt config.site} file: |
| 85 |
|
| 86 |
\begin{colorverb} |
| 87 |
\begin{verbatim} |
| 88 |
with_cplex_lib="/usr/ilog/cplex/lib/libcplex.a -lpthread" |
| 89 |
with_cplex_incdir="/usr/ilog/cplex/include/ilcplex -lm" |
| 90 |
\end{verbatim} |
| 91 |
\end{colorverb} |
| 92 |
|
| 93 |
(You will find a {\tt config.site} example in the subdirectory {\tt BuildTools} of {\tt Bonmin-\stableVersion}.) |
| 94 |
|
| 95 |
\subsectionH{Compiling \Bonmin\ in a external directory}{sec:vpath} |
| 96 |
It is recommended to compile \Bonmin\ in a directory different from the source directory ({\tt Bonmin-\stableVersion} in our case). |
| 97 |
This is convenient if you want to have several executables compiled for different architectures or have several executables compiled with different options |
| 98 |
(debugging and production, shared and static libraries) but also because |
| 99 |
you don't modify the directory where the sources are. |
| 100 |
|
| 101 |
To do this just create a new directory, for example {\tt Bonmin-build} in the parent directory of |
| 102 |
{\tt Bonmin-\stableVersion} and run configure from {\tt Bonmin-build}: |
| 103 |
\medskip |
| 104 |
|
| 105 |
{\tt ../Bonmin-\stableVersion/configure -C } |
| 106 |
\medskip |
| 107 |
|
| 108 |
This will create the makefiles in {\tt Bonmin-build}, and |
| 109 |
you can then compile with the usual {\tt make} and {\tt make install} |
| 110 |
(in {\tt Bonmin-build}). |
| 111 |
|
| 112 |
\subsectionH{Building the documentation}{sec:ref_man} |
| 113 |
The documentation for \Bonmin\ consists of a users' manual (this document) and a reference manual. |
| 114 |
You can build a local copy of the reference manual provided that you have Latex |
| 115 |
and Doxygen installed on your machine. Issue the command {\tt make |
| 116 |
doxydoc} in {\tt Bonmin-\stableVersion}. It calls Doxygen to build a copy of the |
| 117 |
reference manual. An html version of the reference manual can then |
| 118 |
be accessed in {\tt doc/html/index.html}. |
| 119 |
|
| 120 |
%You can also build a pdf |
| 121 |
%version of the reference manual by issuing the command {\tt make |
| 122 |
%refman.pdf} ({\tt refman.pdf} is placed in the {\tt doc} subdirectory). |
| 123 |
|
| 124 |
\subsectionH{Running the test programs}{sec:test} |
| 125 |
By issuing the command {\tt make test}~, you build and run the automatic test program for \Bonmin. |