- 博客(1)
- 资源 (16)
- 收藏
- 关注
glpk-4.34-setup.exe
Windows 7上安装pulp和glpk步骤:
亲测环境:
Windows 6.1.7601 Service Pack 1 Build 7601 x64
Python 2.7.11
PuLP 1.6.8
GLPK 4.34
安装步骤:
1、下载PuLP安装包:前提是,已安装python2.6以及2.6以上版本,在网页(https://pythonhosted.org/PuLP/main/installing_pulp_at_home.html)上点击PuLP zipfile下载pulp包,当然,也可以在我的资源里下载
2、安装PuLP:将zipfile解压缩,并在命令行窗口中,进入解压缩的目录,然后输入命令:setup.py install
3、下载glpk安装包:在网页(https://sourceforge.net/projects/gnuwin32/files/glpk/4.34/)上,下载glpk-4.34-setup.exe(也可以在我的资源里下载),然后双击默认安装
4、按照以上步骤,安装完以后,写一个.py的脚本并运行,脚本内容:
from pulp import *
pulp.pulpTestAll()
然后,会看到以下类似输出结果:
D:\002-Task_150524\117-17data_thesis\004-code\testPulp.py
Testing zero subtraction
Testing inconsistant lp solution
Testing continuous LP solution
Testing maximize continuous LP solution
Testing unbounded continuous LP solution
Testing Long Names
Testing repeated Names
Testing zero constraint
Testing zero objective
Testing LpVariable (not LpAffineExpression) objective
Testing Long lines in LP
Testing LpAffineExpression divide
Testing MIP solution
Testing MIP solution with floats in objective
Testing MIP relaxation
Testing feasibility problem (no objective)
Testing an infeasible problem
Testing an integer infeasible problem
Testing column based modelling
Testing dual variables and slacks reporting
Testing fractional constraints
Testing elastic constraints (no change)
Testing elastic constraints (freebound)
Testing elastic constraints (penalty unchanged)
Testing elastic constraints (penalty unbounded)
* Solver pulp.solvers.PULP_CBC_CMD passed.
Solver pulp.solvers.CPLEX_DLL unavailable
Solver pulp.solvers.CPLEX_CMD unavailable
Solver pulp.solvers.CPLEX_PY unavailable
Solver pulp.solvers.COIN_CMD unavailable
Solver pulp.solvers.COINMP_DLL unavailable
Testing zero subtraction
Testing inconsistant lp solution
Testing continuous LP solution
Testing maximize continuous LP solution
Testing unbounded continuous LP solution
Testing Long Names
Testing repeated Names
Testing zero constraint
Testing zero objective
Testing LpVariable (not LpAffineExpression) objective
Testing LpAffineExpression divide
Testing MIP solution
Testing MIP solution with floats in objective
Testing MIP relaxation
Testing feasibility problem (no objective)
Testing an infeasible problem
Testing an integer infeasible problem
Testing column based modelling
Testing fractional constraints
Testing elastic constraints (no change)
Testing elastic constraints (freebound)
Testing elastic constraints (penalty unchanged)
Testing elastic constraints (penalty unbounded)
* Solver pulp.solvers.GLPK_CMD passed.
Solver pulp.solvers.XPRESS unavailable
Solver pulp.solvers.GUROBI unavailable
Solver pulp.solvers.GUROBI_CMD unavailable
Solver pulp.solvers.PYGLPK unavailable
Solver pulp.solvers.YAPOSIB unavailable
表示已经成功安装pulp和glpk
2017-08-29
pulp-1.6.8.zip
Windows 7上安装pulp和glpk步骤:
亲测环境:
Windows 6.1.7601 Service Pack 1 Build 7601 x64
Python 2.7.11
PuLP 1.6.8
GLPK 4.34
安装步骤:
1、下载PuLP安装包:前提是,已安装python2.6以及2.6以上版本,在网页(https://pythonhosted.org/PuLP/main/installing_pulp_at_home.html)上点击PuLP zipfile下载pulp包,当然,也可以在我的资源里下载
2、安装PuLP:将zipfile解压缩,并在命令行窗口中,进入解压缩的目录,然后输入命令:setup.py install
3、下载glpk安装包:在网页(https://sourceforge.net/projects/gnuwin32/files/glpk/4.34/)上,下载glpk-4.34-setup.exe(也可以在我的资源里下载),然后双击默认安装
4、按照以上步骤,安装完以后,写一个.py的脚本并运行,脚本内容:
from pulp import *
pulp.pulpTestAll()
然后,会看到以下类似输出结果:
D:\002-Task_150524\117-17data_thesis\004-code\testPulp.py
Testing zero subtraction
Testing inconsistant lp solution
Testing continuous LP solution
Testing maximize continuous LP solution
Testing unbounded continuous LP solution
Testing Long Names
Testing repeated Names
Testing zero constraint
Testing zero objective
Testing LpVariable (not LpAffineExpression) objective
Testing Long lines in LP
Testing LpAffineExpression divide
Testing MIP solution
Testing MIP solution with floats in objective
Testing MIP relaxation
Testing feasibility problem (no objective)
Testing an infeasible problem
Testing an integer infeasible problem
Testing column based modelling
Testing dual variables and slacks reporting
Testing fractional constraints
Testing elastic constraints (no change)
Testing elastic constraints (freebound)
Testing elastic constraints (penalty unchanged)
Testing elastic constraints (penalty unbounded)
* Solver pulp.solvers.PULP_CBC_CMD passed.
Solver pulp.solvers.CPLEX_DLL unavailable
Solver pulp.solvers.CPLEX_CMD unavailable
Solver pulp.solvers.CPLEX_PY unavailable
Solver pulp.solvers.COIN_CMD unavailable
Solver pulp.solvers.COINMP_DLL unavailable
Testing zero subtraction
Testing inconsistant lp solut
2017-08-29
excel 物品总价自动计算
excel中存放一张物品单价列表,每个物品标明了数量,根据物品数量和单价计算出所有物品总价。表格中另添一个按钮,可将所有物品数量清零。
涉及知识点:excel函数,宏,按钮调用宏
2012-10-21
自己动手写嵌入式操作系统DLL预处理cpp文件
把《自己动手写嵌入式操作系统》上的dll预处理文件代码抄了一遍,在VS2005上调试通过。使用时,(1)把代码粘贴到建好的控制台工程主文件里;(2)修改打开的文件路径;(3)编译运行
2012-03-06
Writing Solid Code
Writing Clean(Solid) Code 英文版
找了好久才找到,提供分享!
Written by Steve Maguire
Followed by Dave Moore
Director of Development, Microsoft Corporation
2011-08-15
PeekPocket_src
用来搜索周边范围内的热点(Access Point)
Windows Mobile 6.0下使用
VS2005下编译通过
由于加入编译出错时的解决方法
因此分数会高一些
2011-08-15
MFC Scrollbar 实例
MFC Scrollbar 实例 VC
MFC Scrollbar 实例 VC
MFC Scrollbar 实例 VC
MFC Scrollbar 实例 VC
MFC Scrollbar 实例 VC
2011-04-05
WinSocket VC6.0
在VC6.0下,使用MFC类做的关于WinSocket的简单文件传输(只能客户端向服务器端发送)以及聊天室功能,修改注释可以得到聊天功能,文件传送和聊天功能不能并用
2010-02-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人