Skip to content

lenary/cplex-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cplex-example

An example of using CPLEX and Google Test to run MIP experiments from C++.

Instructions

  1. Download this repository, delete the .git directory and git init
  2. Run cmake --build gtest to build Google Test
  3. Install CPLEX, noting down the install directory, something like /opt/IBM/ILOG/CPLEX_Studio<VERSION>
  4. Rename project in CMakeFiles.txt
  5. Create a build dir not within this directory, cd to it.
  6. Run cmake --build ../<this directory> -DCPLEX_STUDIO_DIR=<cplex install path> -DCPLEX_SYSTEM=<system> where <system> is x86-64_linux for Linux and x86-64_osx for Mac.
  7. You're done with setup. Develop in this directory, add experiments/libraries using functions in src/CMakeLists.txt. Build and run these in the build directory using make <target name>.
  8. You can run all the experiments using make test I think.
  9. You can probably put your own information in README.md

About

An example of using CPLEX and Google Test to run MIP experiments from C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors