Describes how to compile and install idol from source.
To build idol and idol_cl from source, you need:
You can verify your tools with:
Follow these steps to compile and install idol.
Using a separate build directory keeps the source tree clean.
This compiles the idol library and the idol_cl executable.
By default, this installs files into:
If the command prints the version, the installation was successful.
You can customize the build using CMake options.
MibS is a mixed-integer linear solver that can be integrated in idol.
When installing via package managers (apt-get or brew), it is included automatically.
When building from source, you must install it on your own, enable and configure it manually.
First, install MibS by following the instructions on the official MibS documentation. Then either:
Finally, enable MibS with the CMake option USE_MIBS=ON.
Both COIN_OR_HOME and COIN_OR_DIR must point to the COIN-OR dist directory.
Cgl is a cut generation library from coin-or. It can be used by idol to generate cutting planes in a branch-and-bound algorithm.
When installing via package managers (apt-get or brew), Cgl is included automatically.
When building from source, you must install it on your own, enable and configure it manually.
First, install Cgl from source followin the instructions on the official Cgl documentation. Namely, do as follows
Then either:
Finally, enable Cgl with the CMake option USE_CGL=ON.
Both COIN_OR_HOME and COIN_OR_DIR must point to the COIN-OR dist directory.
To install into a custom location, set:
Example:
The executable will be installed into:
To build the example programs:
To build the test suite: