0

我无法在一个名为 dist 的包含示例上运行我通过 apt-get 安装的 GLPK 求解器 (glpsol)。它抛出以下内容:

$ glpsol dist.mod 
GLPSOL: GLPK LP/MIP Solver, v4.60
Parameter(s) specified in the command line:
 dist.mod
Reading problem data from 'dist.mod'...
dist.mod:1: invalid indicator record
MPS file processing error

编辑:使用 -m 运行会返回不同的错误:

172 lines were read
Generating cost...
dist.mod:103: fact contains w02 which not within specified set; see (1)
MathProg model processing error
4

1 回答 1

1

您必须指定编写模型文件的符号(GLPK 支持多种问题格式)。默认情况下,它会尝试读取在示例 mathprog-problem-file 上失败的 freemps-problem-file。

尝试使用glpsol -m dist.mod来处理 mathprog 示例。

于 2016-12-10T14:12:00.887 回答