lingo报错,MODEL:sets:fac/a1..a49/:Fcus/b1..b49/;link(fac,cus):M,X;endsetsdata:F=省略M=省略X=省略enddatamin=@sum(cus(j):@sum (fac(i):X(i,j)*M(j)*z(i)))+@sum(fac(j):f(j)*z(j));@bin(z);@for(fac(j):@sum(cus(i):z(i,j))
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/29 05:20:58
lingo报错,MODEL:sets:fac/a1..a49/:Fcus/b1..b49/;link(fac,cus):M,X;endsetsdata:F=省略M=省略X=省略enddatamin=@
lingo报错,MODEL:sets:fac/a1..a49/:Fcus/b1..b49/;link(fac,cus):M,X;endsetsdata:F=省略M=省略X=省略enddatamin=@sum(cus(j):@sum (fac(i):X(i,j)*M(j)*z(i)))+@sum(fac(j):f(j)*z(j));@bin(z);@for(fac(j):@sum(cus(i):z(i,j))
lingo报错,
MODEL:
sets:
fac/a1..a49/:F
cus/b1..b49/;
link(fac,cus):M,X;
endsets
data:
F=省略
M=省略
X=省略
enddata
min=@sum(cus(j):@sum (fac(i):X(i,j)*M(j)*z(i)))+@sum(fac(j):f(j)*z(j));
@bin(z);
@for(fac(j):@sum(cus(i):z(i,j))
lingo报错,MODEL:sets:fac/a1..a49/:Fcus/b1..b49/;link(fac,cus):M,X;endsetsdata:F=省略M=省略X=省略enddatamin=@sum(cus(j):@sum (fac(i):X(i,j)*M(j)*z(i)))+@sum(fac(j):f(j)*z(j));@bin(z);@for(fac(j):@sum(cus(i):z(i,j))
你一会写z(i,j)一会写z(j)那z到底是几维的 如果不一样那就别用一个字母表示 M也一样