【发布时间】:2016-04-30 07:47:27
【问题描述】:
这是我的模型:
set linhas;
set colunas;
param c{j in colunas};
param A{i in linhas,j in colunas};
param b{i in linhas};
var x{j in colunas}>=0;
minimize FO:
sum{j in colunas} c[j]*x[j];
s.t. R{i in linhas}:
sum{j in colunas} A[i,j] = b[i];
end;
使用glpsol求解模型时出现以下错误:
Arquivo1.txt:3: syntax error in parameter data block
Context: set linhas ; set colunas ; param c {
MathProg model processing error.
你能帮帮我吗?我找不到这段代码有什么问题。
【问题讨论】:
-
你能发布你在“Arquivo1.txt”文件中的内容吗?
-
您的行/约束是否缺少
x变量?
标签: mathematical-optimization linear-programming ampl glpk mathprog