如何用lingo编程解决运输问题,题目如下
展开全部
sets:
s1/1..3/:c,d;
s2/1..3/:e;
s12(s1,s2):f,x;
endsets
data:
c=6 7 4;
d=11 7 99;
e=10 4 6;
f=2 4 3
1 5 6
3 2 4;
enddata
min=@sum(s12:f*x);
@for(s1(i):@sum(s2(j):x(i,j))<=d(i); @sum(s2(j):x(i,j))>=c(i));
@for(s2(j):@sum(s1(i):x(i,j))=e(j));
s1/1..3/:c,d;
s2/1..3/:e;
s12(s1,s2):f,x;
endsets
data:
c=6 7 4;
d=11 7 99;
e=10 4 6;
f=2 4 3
1 5 6
3 2 4;
enddata
min=@sum(s12:f*x);
@for(s1(i):@sum(s2(j):x(i,j))<=d(i); @sum(s2(j):x(i,j))>=c(i));
@for(s2(j):@sum(s1(i):x(i,j))=e(j));
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询