求改lingo程序,用sets:endsetsmin=1020*2-(48.7*(x11+x12)+52.0*(x21+x22)+61.3*(x31+x32)+72.0*(x41+x42)+48.7*(x51+x52)+52.0*(x61+x62)+64.0*(x71+x72));2*x11+3*x21+x31+0.5*x41+4*x51+2*x61+x71=0;x72>=0;@gin(x11);@gin(x21);@gin(x31);@gin(x41);@gin(x51

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 15:24:20
求改lingo程序,用sets:endsetsmin=1020*2-(48.7*(x11+x12)+52.0*(x21+x22)+61.3*(x31+x32)+72.0*(x41+x42)+48.7*

求改lingo程序,用sets:endsetsmin=1020*2-(48.7*(x11+x12)+52.0*(x21+x22)+61.3*(x31+x32)+72.0*(x41+x42)+48.7*(x51+x52)+52.0*(x61+x62)+64.0*(x71+x72));2*x11+3*x21+x31+0.5*x41+4*x51+2*x61+x71=0;x72>=0;@gin(x11);@gin(x21);@gin(x31);@gin(x41);@gin(x51
求改lingo程序,用sets:endsets
min=1020*2-(48.7*(x11+x12)+52.0*(x21+x22)+61.3*(x31+x32)+72.0*(x41+x42)+48.7*(x51+x52)+52.0*(x61+x62)+64.0*(x71+x72));
2*x11+3*x21+x31+0.5*x41+4*x51+2*x61+x71=0;x72>=0;
@gin(x11);
@gin(x21);
@gin(x31);
@gin(x41);
@gin(x51);
@gin(x61);
@gin(x71);
@gin(x12);
@gin(x22);
@gin(x32);
@gin(x42);
@gin(x52);
@gin(x62);
@gin(x72);
end

求改lingo程序,用sets:endsetsmin=1020*2-(48.7*(x11+x12)+52.0*(x21+x22)+61.3*(x31+x32)+72.0*(x41+x42)+48.7*(x51+x52)+52.0*(x61+x62)+64.0*(x71+x72));2*x11+3*x21+x31+0.5*x41+4*x51+2*x61+x71=0;x72>=0;@gin(x11);@gin(x21);@gin(x31);@gin(x41);@gin(x51
sets:
r/1..7/:d1,d2,d3;
c/1..2/:;
link(r,c):x;
endsets
data:
d1= 48.7 52.0 61.3 72.0 48.7 52.0 64.0;
d2= 2 3 1 0.5 4 2 1;
d3= 8 7 9 6 6 4 8;
enddata
min=1020*2-@sum(link(i,j):d1(i)*x(i,j));
@for(c(j):@sum(r(i):d2(i)*x(i,j))

求大神改一下lingo程序model:sets:time/1..51/:t;rongliang/1..51/:r;link(time,rongliang):x;endsetsmin=@sum(time:t);@for(link:@bin(x));@for(link:@sum(link:x(i,j)*r) 求改lingo程序,用sets:endsetsmin=1020*2-(48.7*(x11+x12)+52.0*(x21+x22)+61.3*(x31+x32)+72.0*(x41+x42)+48.7*(x51+x52)+52.0*(x61+x62)+64.0*(x71+x72));2*x11+3*x21+x31+0.5*x41+4*x51+2*x61+x71=0;x72>=0;@gin(x11);@gin(x21);@gin(x31);@gin(x41);@gin(x51 LINGO问题 我找了一个程序 自己改了改,运行出错了,求大侠帮忙.model:sets:v/1..20/:a,b,d,n,m; endsetsmin=w;w=@sum(v(i):a*b*d)*t;@sum(v(i):n*d)>=k1;@sum(v(i):n*d)=0.8*m);@for(v(i):n 用Lingo或lindo做,程序答题求帮助.. lingo error 11,我的lingo程序运行有错 model:sets:rural/Al A2 A3 A4/:A,B;warhouse/W1 W2 W3/:G;city/C1 C2 C3 C4 C5/:R,D;tr/tr1 tr2 tr3/:Z;link1(rural,warhouse):C,L;link2(warhouse,city):H,S;link3 (city,warhouse):O,P;link4(warhouse,rural):E,F;ends lingo中sets是什么? 用数学模型lingo程序做, lingo程序在如下程序中:MODEL:Traveling Salesman Problem for the cities ofAtlanta,Chicago,Cincinnati,Houston,LA ;SETS:CITY / 1..5/:U; U( I) = sequence no.of city;LINK( CITY,CITY):DIST,The distance matrix;X; X( I,J) = 1 if we use link I,J;ENDS 菜鸟求lingo下题程序 大家能帮忙看看这个lingo程序哪里有问题吗?新手很艰难啊,请大家简洁一点说,运行之后总是出现error code 24,说z1是invalid set namemodel:sets:error/1..4/:z1,z2;weight/1..4/:w;datas/1..4/:d1;link(datas,datas):dd,aa;ends 为什么下面程序用lingo运行时出现subscript out of range on attribute 求解释?model:sets: cities/s,a1,a2,a3,b1,b2,c1,c2,t/:l; roads(cities,cities)/ s,a1 s,a2 s,a3 a1,b1 a1,b2 a2,b1 a2,b2 a3,b1 a3,b2 b1,c1 b1,c2 b2,c1 b2,b2 c1,t c2 lingo程序:model:sets:product/1..3/:a,b; row/1..5/:c,d,y; num/1..9/:x; endsets其中的product和num该怎么用?还有平时不是用的col么而不是num区别在哪? 关于LINGO程序lingo程序如下:sets:a/1..5/:x; endsets data:x=1,2,3,4,5;enddata 若知道a(i):x(i)=5,如何写出程序求出i的值 求lingo高手!关于父集函数的表示~!sets: box_area/1..6/; box_kind/1..4/; bay_area/1..3/; allowed(box_area,bay_area,box_kind):e; endsets我有这么个程序.lingo一直报错,说是出错在了allowed那里~求高手修改!~万分感谢~ lingo程序如何运行 在lingo最优化程序中,总说模型定义错误,还有15号错误,这是怎么回事,要怎么改,想了很久也没想出哪错model:sets:head/1..10/:;tail/1..10/:;links(head,tail):q,w;endsetsdata:w=0 0.8 0.5 0.9 1.2 1.4 1.2 1.6 1.7 2.20.8 0 0.9 lingo 不等于例如:xi不等于xj(i,j=1,2,3,4,5)其中i不等于j用lingo怎么编写程序.sets:ve/1..5/:c,x,b;endsets@for(ve(i)|i#ne#j:XXXXX);XXXXX 处怎么编写? 这个lingo程序问题到底出在哪里,是不是这个数学问题无法用LINGO求解呢?model:sets:p/1..20/:x,y,t,m,a,b,c;!定义集及其属性;endsetsinit:x=400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400;!初