glpk+vs2017配置和使用整数规划求最优解

1.glpk下载地址 ftp://ftp.gnu.org/gnu/glpk/ 选择最新版本下载即可

or https://github.com/linzhenyuyuchen/Others/

2.解压到电脑,记下解压的目录

3.c/c++ -> general -> additional include directory,添加src目录

4.
linker -> general -> additional library directories

linker -> input -> additional dependencies

添加glpk.lib地址 C:\glpk-4.65\w64\glpk_4_65.lib

你可能感兴趣的:(c++)