首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 一个使用Python包GLPK‘

一个使用Python包GLPK‘

  • 资源大小:11.63 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: python GLPK 一个 使用

资 源 简 介

ctypes-glpk is a Python module which encapsulates the functionality of the GNU Linear Programming Kit (GLPK). The GLPK allows one to specify linear programs (LPs) and mixed integer programs (MIPs), and to solve them with either simplex, interior-point, or branch-and-cut algorithms. The goal of ctypes-glpk is to give one Python access to all documented functionality of GLPK. Advantages Complete access to all documented functionality of GLPK, up to version 4.33 No installation or compiler required, just import a single module named "glpk" and run Cross platform, running on Windows, Linux, and virtually any other platform supporting GLPK Example C code ``` #include #include #include "glpk.h" int main(void) { glp_prob *lp; int ia[1+1000], ja[1+1000]; double ar[1+1000], Z, x1, x2, x3; lp = glpcreateprob(); glpsetprob_name(lp, "sampl

文 件 列 表

glpk.py
VIP VIP
0.206669s