lingo里面@for()函数出错,model:sets:row/1,2,3/:b;arrange/1..5/:x,c;link(row,arrange):a;endsetsdata:b=100,100,100;c=0,0.1,0.2,0.3,0.8;a=1,2,0,1,0,0,0,2,2,1,3,1,2,0,3;enddata[OBJ]min=@sum(arrange(j):c(j)*x(j);@for(row(i):@sum(arrange(j):a(i,j)*x(j
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/24 13:52:35
lingo里面@for()函数出错,model:sets:row/1,2,3/:b;arrange/1..5/:x,c;link(row,arrange):a;endsetsdata:b=100,100,100;c=0,0.1,0.2,0.3,0.8;a=1,2,0,1,0,0,0,2,2,1,3,1,2,0,3;enddata[OBJ]min=@sum(arrange(j):c(j)*x(j);@for(row(i):@sum(arrange(j):a(i,j)*x(j
lingo里面@for()函数出错,
model:
sets:
row/1,2,3/:b;
arrange/1..5/:x,c;
link(row,arrange):a;
endsets
data:
b=100,100,100;
c=0,0.1,0.2,0.3,0.8;
a=1,2,0,1,0,0,0,2,2,1,3,1,2,0,3;
enddata
[OBJ]min=@sum(arrange(j):c(j)*x(j);
@for(row(i):@sum(arrange(j):a(i,j)*x(j))=b(i););
@for(arrange(j):x(j)>=0;);
end
lingo里面@for()函数出错,model:sets:row/1,2,3/:b;arrange/1..5/:x,c;link(row,arrange):a;endsetsdata:b=100,100,100;c=0,0.1,0.2,0.3,0.8;a=1,2,0,1,0,0,0,2,2,1,3,1,2,0,3;enddata[OBJ]min=@sum(arrange(j):c(j)*x(j);@for(row(i):@sum(arrange(j):a(i,j)*x(j
model:
sets:
row/1,2,3/:b;
arrange/1..5/:x,c;
link(row,arrange):a;
endsets
data:
b=100,100,100;
c=0,0.1,0.2,0.3,0.8;
a=1,2,0,1,0,0,0,2,2,1,3,1,2,0,3;
enddata
[OBJ]min=@sum(arrange(j):c(j)*x(j));!这边最后面漏掉一个左括号);
@for(row(i):@sum(arrange(j):a(i,j)*x(j))=b(i););
@for(arrange(j):x(j)>=0;);
end