这个lingo程序错在哪了?model: sets: row/1..3/:b; col/1..2/:c,x,l,u; matrix(row,col):A; endsetsmin=@sum(col:c*x);@for(col:@bnd(l,x,u));@for(row(i): @sum(col(j):A(i,j)*x(j)
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 02:09:20
这个lingo程序错在哪了?model:sets:row/1..3/:b;col/1..2/:c,x,l,u;matrix(row,col):A;endsetsmin=@sum(col:c*x);@f
这个lingo程序错在哪了?model: sets: row/1..3/:b; col/1..2/:c,x,l,u; matrix(row,col):A; endsetsmin=@sum(col:c*x);@for(col:@bnd(l,x,u));@for(row(i): @sum(col(j):A(i,j)*x(j)
这个lingo程序错在哪了?
model:
sets:
row/1..3/:b;
col/1..2/:c,x,l,u;
matrix(row,col):A;
endsets
min=@sum(col:c*x);
@for(col:@bnd(l,x,u));
@for(row(i):
@sum(col(j):A(i,j)*x(j)
这个lingo程序错在哪了?model: sets: row/1..3/:b; col/1..2/:c,x,l,u; matrix(row,col):A; endsetsmin=@sum(col:c*x);@for(col:@bnd(l,x,u));@for(row(i): @sum(col(j):A(i,j)*x(j)
model:
sets:
row/1..3/:b;
col/1..2/:c,x,l,u;
matrix(row,col):A;
endsets
min=@sum(col:c*x);
@for(col:@bnd(l,x,u));
@for(row(i):
@sum(col(j):A(i,j)*x(j))
你的问题能否贴出来呢?A(i,j)*x(j)<=b(i)应该为约束吧,目标函数是什么呢?