martinWANG2014 / CplexCPlusPlusDemo

a simple demo of using cplex callable library for C/C++.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CplexCPlusPlusDemo

a simple demo of using cplex callable library for C/C++.

Be attention that you should configure Visual Studio for your toolchain and cmake if you use the CLion in the Windows environment because that cplex C++ callable library works for MSVC compiler while not for MinGW and CygWin (always find some bugs for MinGW and CygWin).

Configuration of ToolChain for CLion in Windows

ToolChains

Configuration of CMake for CLion in Windows

CMake

Executable Target

Path: /build/bin

Model File

Path: /build/model.lp

Solution File

Path: /build/sol.sl

Dependency Library Configuration

Path: /cmake/FindCplex.cmake

CMakeLists File

Path: CMakeLists.txt

For a simple use, you can just modify the project name

About

a simple demo of using cplex callable library for C/C++.


Languages

Language:CMake 81.6%Language:C++ 12.6%Language:Slash 5.8%