Skip to content

aircraft-tail-assignment/CplexCPlusPlusDemo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. 下载安装 IBM cplex
  2. 下载安装clion
  3. 按照readme.md中的图片配置clion
  4. 运行成功!

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 76.8%
  • C++ 23.2%