An example of using CPLEX and Google Test to run MIP experiments from C++.
- Download this repository, delete the
.gitdirectory andgit init - Run
cmake --build gtestto build Google Test - Install CPLEX, noting down the install directory,
something like
/opt/IBM/ILOG/CPLEX_Studio<VERSION> - Rename project in
CMakeFiles.txt - Create a
builddir not within this directory,cdto it. - Run
cmake --build ../<this directory> -DCPLEX_STUDIO_DIR=<cplex install path> -DCPLEX_SYSTEM=<system>where<system>isx86-64_linuxfor Linux andx86-64_osxfor Mac. - You're done with setup. Develop in this directory, add experiments/libraries
using functions in
src/CMakeLists.txt. Build and run these in thebuilddirectory usingmake <target name>. - You can run all the experiments using
make testI think. - You can probably put your own information in
README.md