早教吧作业答案频道 -->其他-->
lingo程序,这里哪里错了,提示是错误11.data那里有错吗.model:3发点4收点运输问题;集合部分;sets:warehouses/wh1..wh3/:capacity;vendors/v1..v4/:demand;links(warehouses,vendors):cost,volume;endsets目标函数;min=@sum(links:cost
题目详情
lingo程序,这里哪里错了,提示是错误11.data那里有错吗.
model:
3发点4收点运输问题;
集合部分;
sets:
warehouses/wh1..wh3/:capacity;
vendors/v1..v4/:demand;
links(warehouses,vendors):cost,volume;
endsets
目标函数;
min=@sum(links:cost*volume);
需求约束;
@for(vendors(J):@sum(warehouses(I):volume(I,J))=demand(J));
产量约束;
@for(warehouses(I):@sum(vendors(J):volume(I,J))
model:
3发点4收点运输问题;
集合部分;
sets:
warehouses/wh1..wh3/:capacity;
vendors/v1..v4/:demand;
links(warehouses,vendors):cost,volume;
endsets
目标函数;
min=@sum(links:cost*volume);
需求约束;
@for(vendors(J):@sum(warehouses(I):volume(I,J))=demand(J));
产量约束;
@for(warehouses(I):@sum(vendors(J):volume(I,J))
▼优质解答
答案和解析
最后一个约束后面没写括号
model:
!3发点4收点运输问题;
!集合部分;
sets:
warehouses/wh1..wh3/: capacity;
vendors/v1..v4/: demand;
links(warehouses,vendors): cost, volume;
endsets
!目标函数;
min=@sum(links:cost*volume);
!需求约束;
@for(vendors(J):@sum(warehouses(I):volume(I,J))=demand(J));
!产量约束;
@for(warehouses(I):@sum(vendors(J):volume(I,J))
model:
!3发点4收点运输问题;
!集合部分;
sets:
warehouses/wh1..wh3/: capacity;
vendors/v1..v4/: demand;
links(warehouses,vendors): cost, volume;
endsets
!目标函数;
min=@sum(links:cost*volume);
!需求约束;
@for(vendors(J):@sum(warehouses(I):volume(I,J))=demand(J));
!产量约束;
@for(warehouses(I):@sum(vendors(J):volume(I,J))
看了 lingo程序,这里哪里错了...的网友还看了以下:
请找出每组字母中与众不同的一个,并将其写在横线上.1.a,l,h,k2.i,b,p,t3.f,n, 2020-05-14 …
用所给字母拼成单词.1.a,l,a,d,s.2.a,d,o,s.3.c,o,r,p,n用所给字母拼 2020-05-15 …
已知A(- 2/k^2-1)B(0.- 2k/k^2-1),其中k≠0且k≠±1,直线l进过点P( 2020-05-15 …
matlab 程序出错,帮我看看错在哪儿了函数function dvdt=huxi(t,v) gl 2020-05-16 …
1.l want to see some birds?(改写为一般疑问句) 2.l want to 2020-05-17 …
大智慧测试公式时错误提示行1:缺少)请高手帮我看看,以下公式,测试提示行1缺少)A=(H+L+2C 2020-07-08 …
已知曲线x^2/a^2y^2=1(a>0)与直线l:x+y=1已知曲线x^2/a^2-y^2=1( 2020-07-17 …
通达信信号过滤到某个信号出现位置的公式天:=BARSLAST(C/REF(C,1)>=1.099) 2020-07-23 …
设α,β是两个不同的平面,l,m是两条不同的直线,α∩β=m,记α1为直线l与平面α所成的角,A= 2020-07-25 …
1.将函数y=1/x的图像F按向量a=(-1,1),平移后得到图像F’,则F'的解析式()2.函数 2020-07-29 …