为什么LINGO中显示无效输入语法错误?
model:sets:cs/a1..a18/:d,a;!a是自身数量,d是最大承受量;yscb(cs,cs):y,x,w;!Y是指运输费用,X是指运多少个车。w是当地的修...
model:
sets:
cs/a1..a18/:d,a;!a是自身数量,d是最大承受量;
yscb(cs,cs):y,x,w;!Y是指运输费用,X是指运多少个车。w是当地的修理费用;
endsets
DATA
a=25 35 30 45 80 55 40 180 70 60 50 60 60 150 40 100 35 55;
d=30 40 40 50 120 60 50 200 90 70 60 70 80 180 50 110 40 60;
y=@file(kv152.txt);
w=@file(kv107.txt);
enddata
min=@sum(YSCB(i,j):y(i,j)*x(i,j)+x(i,j)*w(i,j));
@for(cs(i):@sum(cs(i):x(i,j)<=d(j)));
@for(cs(j):@sum(cs(j):@sum(cs(i):x(i,j)=a(i))));
end 展开
sets:
cs/a1..a18/:d,a;!a是自身数量,d是最大承受量;
yscb(cs,cs):y,x,w;!Y是指运输费用,X是指运多少个车。w是当地的修理费用;
endsets
DATA
a=25 35 30 45 80 55 40 180 70 60 50 60 60 150 40 100 35 55;
d=30 40 40 50 120 60 50 200 90 70 60 70 80 180 50 110 40 60;
y=@file(kv152.txt);
w=@file(kv107.txt);
enddata
min=@sum(YSCB(i,j):y(i,j)*x(i,j)+x(i,j)*w(i,j));
@for(cs(i):@sum(cs(i):x(i,j)<=d(j)));
@for(cs(j):@sum(cs(j):@sum(cs(i):x(i,j)=a(i))));
end 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询