Version 15 (modified by jpfasano, 12 years ago) (diff)

Added source code examples to list of documentation

Welcome to the Cbc home page

Note that these project webpages are based on Wiki, which allows webusers to modify the content to correct typos, add information, or share their experience and tips with other users. You are welcome to contribute to these project webpages. To edit these pages or submit a ticket you must first register and login.


Cbc (Coin-or branch and cut) is an open-source mixed integer programming solver written in C++. It is primarily meant to be used as a callable library, but a basic, stand-alone executable version is also available. Cbc is a branch and cut code designed to work with any Osi capable solver and in particular Clp.


Cbc is written in C++ and is released as open source code under the Common Public License (CPL). It is available from the COIN-OR initiative. The code has been written by primarily by John J. Forrest, who is the COIN project leader for Cbc.

You can obtain the Cbc source code either via subversion or in form of nightly generated tarballs. The recommended method is to use subversion because it makes it easier to obtain updates. The following commands may be used to obtain and build Cbc from the source code using subversion:

  1. svn co coin-Cbc
  2. cd coin-Cbc
  3. ./configure -C
  4. make
  5. make test
  6. make install

Step 1 issues the subversion command to obtain the source code. Alternatively one can obtain the source code from the tarball directory, and down loading a file of the form Cbc_YYYYMMMDD.tgz.

Step 3 runs a configure script that generates the make file.

Step 4 builds the Cbc library and executable program.

Step 5 builds and runs the Cbc unit test program.

Step 6 Installs libraries, executables and header files in directories coin-Cbc/lib, coin-Cbc/bin and coin-Cbc/include.

The BuildTools project has additional details on down loading, building, and installing.

The MSVisualStudio project has information about building on Windows in the Microsoft Development Studio.

The [Binary project provides a downloadable binary distribution of Cbc.

Included Projects

If you download the Cbc package, you get these additional projects.

Doxygen Documentation

If you have Doxygen available, you can build the html documentation by typing

make doxydoc

in the directory coin-Cbc. Then open the file coin-Cbc/doxydoc/html/index.html with a browser. Note that this creates the documentation for the Cbc package. If you prefer to generate the documentation only for a subset of these projects, you can edit the file coin-Cbc/doxydoc/doxygen.conf to exclude directories (using the EXCLUDE variable, for example).

If Doxygen is not available, you can use the link to the Cbc html documentation listed below.