首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >glpk.LPX向后兼容?

glpk.LPX向后兼容?
EN

Stack Overflow用户
提问于 2014-08-12 22:13:34
回答 1查看 314关注 0票数 2

较新版本的glpk没有旧版软件包所需的LPX应用编程接口。如何在较新版本的glpk中使用较旧的包(如COBRA

请注意,COBRA可用于MATLAB和Python。两者都需要glpkLPX应用编程接口,我希望两者都使用。

EN

回答 1

Stack Overflow用户

发布于 2014-08-13 04:03:58

理想情况下,您应该切换到使用新API的版本。它已经存在很多年了。如果没有选项,则ChangeLog到V4.53中的以下条目指向正确的方向

代码语言:javascript
复制
    * examples/oldapi/lpx.h, examples/oldapi/lpx.c
    A set of routines that simulate the old GLPK API (as defined
    in 4.48) were added. Thanks to Jan Engelhardt <jengelh@inai.de>
    for suggestion.

在源代码版本的目录examples/oldapi中,您可以找到所需的所有内容。摘自自述文件:

代码语言:javascript
复制
The program module in this subdirectory contains an implementation of
the old GLPK API as it was defined in GLPK 4.48.

To compile an existing project using the old GLPK API you need to add
to the project two files lpx.h and lpx.c.
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25266593

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档