较新版本的glpk没有旧版软件包所需的LPX应用编程接口。如何在较新版本的glpk中使用较旧的包(如COBRA
请注意,COBRA可用于MATLAB和Python。两者都需要glpk和LPX应用编程接口,我希望两者都使用。
发布于 2014-08-13 04:03:58
理想情况下,您应该切换到使用新API的版本。它已经存在很多年了。如果没有选项,则ChangeLog到V4.53中的以下条目指向正确的方向
* 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中,您可以找到所需的所有内容。摘自自述文件:
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.https://stackoverflow.com/questions/25266593
复制相似问题