MathProg / GLPSol - “太多行”

时间:2017-02-28 00:48:04

标签: rows linear-programming limits glpk mathprog

我一直在使用带有glpsol的MathProg模型来解决问题,当问题足够小时,它可以正常工作。

但是,当问题增加时,我会收到“太多行”错误:


GLPSOL: GLPK LP/MIP Solver, v4.61
Parameter(s) specified in the command line:
 --gomory --pcost -d data.dat -m model.mod -o stats.out -y result.out
Reading model section from model.mod...
86 lines were read
Reading data section from data.dat...
data.dat:10419: warning: final NL missing before end of file
10419 lines were read
Generating res_connection_data_elem_path...
Generating res_elems...
Generating res_sizes...
Generating cost...
Model has been successfully generated
glp_add_rows: nrs = 102000101; too many rows
Error detected in file api/prob1.c at line 259


我已经检查了这个https://lists.gnu.org/archive/html/help-glpk/2013-12/msg00006.html,他们说可以更改限制,所以我打开了源代码来更改它,看到一条警告不会改变限制的评论。

我该怎么办?

0 个答案:

没有答案