CBC - COIN-OR Branch-and-Cut Resources

back to
homepage

Installers:

I maintain updated installers for CBC:

windows
Windows
cbc-2.7.4-Windows.exe 94 Mb
linux
Linux 64 bits
cbc-2.7.4-Linux-x86_64* 92 Mb

These installers include all fixes up to revision 1744.

If you want to use CBC from command line, be sure to close and reopen your terminal windows after installation: environment variables are updated only when a shell session starts.

* In linux, after downloading you must give "execute" permission for this file before opening in your file manager. In Ubuntu (gnome, nautilus) just right click the file and go to properties -> permissions -> check Execute: Allow executing... .

* You can run this installer in the command line without any human interaction by including parameters  --mode silent

Using CBC from the command line:

You can use this short guide as an introductory material.

Calling CBC library from C++:

You can start by modifying some examples - check out some exaples at examples/cbc in your installation directory (coin-or by default).

For compiling your code:

Linux:

   g++ driver.cpp -o driver -lpthread -lcbc27 -lz -ldl -lrt

Windows, Visual Studio:

   To setup VS to find cbc headers and libraries
         go to Tools->Options->VC++ directories->Show Directories for Include Files and add   c:\Program Files\coin-or\include   (if you installed in the default
directory)
         go to Tools->Options->VC++ directories->Show Directories for Library Files and add   c:\Program Files\coin-or\lib\w32-msvc9\
    (if you installed in the default directory)
   Be sure to add cbc27 as an additional dependency in your Project->Linker Preferences.
 

Links:

Contact:

Feel free to send suggestions to:  haroldo dot santos at gmail dot com


Last update: October 9, 2011


back to homepage