-
-
40
-
17
-
1
-
3
-
15
-
24rt。。。
-
88我开一个lingo代做贴,先做后偿!
-
0这个约束条件很松而且和其他条件不矛盾,有没有大佬知道为啥
-
2model:sets:aa/1..8/:sx,xx,c;bb/1..12/;cc(aa,bb):D,P,x;endsetsdata:D=@ole("C:\Users\lzy\Desktop\练习\电力\D.xlsx",'D');P=@ole("C:\Users\lzy\Desktop\练习\电力\P.xlsx",'P'); sx=153 88 228 99.5 152 155 102.1 117;xx=87 58 132 60.5 98 95 60.1 63;enddatamin=z;@for(aa(i):@sum(bb(j):x(i,j)*P(i,j))<=sx(i);@sum(bb(j):x(i,j)*p(i,j))>=xx(i);@sum(bb(j):x(i,j))=1);@for(cc:@bin(x));@sum(cc:x*D)>=984.2;@for(aa(i):c(i)=@sum(bb(j):x(i,j)*p(i,j)));z=@max(aa:c);end
-
1有一个程序,一直运行不出来。 sets:S/1..8/: a;D/1..15/: b;U(S,D): c;endsets data:b = 3000 3100 2900 3100 3100 3400 3500 3200 3000 3100 3300 3200 3300 2900 3100;a = 3600 4100 7100 7000 7000 9100 5500 4200;c = 390.6 370.8 876.3 745.4 144.5 200.2 235 517 542 665 799 852.2 602 903 600.7 618.5 636 1098.6 1037 354.6 242 205.5 541.5 321 827 855.1 798 614 1092.5 710 553 440 497.6 305.9 624.7 691.5 801.5 338.4 1104 427 916.5 1083 820 612.5 522 442 401.8 779.8 725.7 238 173.4 326.6 219 576 523.2 709.3 714.6 517.7 790 448 113.1 25.6 903 445.7 290.7 560 477 249.5 896.8 725.2 1057 1177.4 899.6
-
3model: sets: zay/1..30/:d,w,f,M,l,o; weather/1..3/:index_j; desction/1,2/:x; plac_x/1..27/:lx; plac_y/1..27/:ly,a; link(zay,weather):wr,Q,E,g; link2(plac_x,plac_y):t; endsets data: Q=0,1,0 0,1,0 1,0,0 0,0,1 1,0,0 0,1,0 0,0,1 1,0,0 0,1,0 0,1,0 0,0,1 0,1,0 1,0,0 0,1,0 0,1,0 0,1,0 0,0,1 0,0,1 0,1,0 0,1,0 1,0,0 1,0,0 0,1,0 1,0,0 0,0,1 0,1,0 1,0,0 1,0,0 0,1,0 0,1,0; flag=0; enddata max=100000*flag+M(30); @for(plac_y(u):a(u)=u); @for(link2(u,n):@bin(t(u,n))); @for(link(i,j):@bin(E(i,j));); @for(zay(i):E(i,3)=0); @for(zay(i):@sum(weather(j):E(i,j))=1); @for(plac_x(u):@sum(plac_y(n):t(u,n))=1); t(1,2)
-
8
-
134商用请购买正版 楼下网盘,自取到的请留下言,不做伸手党
-
1亲爱的lingo吧的吧友们:大家好! @🌟🎀小仙女🌸🌼 为本吧吧主候选人得票最多者,共计0张真实票数,根据竞选规则,官方最终批准其成为本吧正式吧主。公示期三天。 吧主上任后,请立即填写问卷信息https://iwenjuan.baidu.com/?code=nlec1g,领取各项吧主权益。同时请严格遵守吧主协议 https://tieba.baidu.com/mo/q/newapply/rule?from=task,履行吧主义务,积极投身本吧的发展建设,也请广大吧友进行监督。如出现违规问题,请至贴吧反馈中心进行反馈或者投诉http://t
-
2
-
6申请人:@🌟🎀小仙女🌸🌼 申请感言:上任吧主卸任之后,本吧一直没有吧主,这种无序状态已经持续够久了,亟待改变。需要一个有能力有想法的吧主去建设本吧,让版面干净适合交流,让资源丰富便于了解。 我会当好lingo吧的吧主,拒绝引战、骂人,营造一个良好的贴吧氛围。让大家在美好的环境下分享lingo、讨论lingo。 希望在我的带领下,大家能够在繁忙的生活中找到一丝温暖,让生活变得更加美好。
-
2
-
17来了
-
10
-
4
-
1这个是数学建模最简单选课模型的代码 model: sets: item/1..9/:c,x; endsets data: c=5,4,4,3,4,3,2,2,3; enddata min=@sum(item(i):x(i)); x(1)+x(2)+x(3)+x(4)+x(5)>=2; x(3)+x(5)+x(6)+x(8)+x(9)>=3; x(4)+x(6)+x(7)+x(9)>=2; x(3)<=x(1); x(3)<=x(2); x(4)<=x(7); x(5)<=x(1); x(5)<=x(2); x(6)<=x(7); x(8)<=x(5); x(9)<=x(1); x(9)<=x(2); @for(item(i):@bin(x(i))); end 这个是新的代码运行不了一直error 11,运行不了我就注释了呗结果注释了也不行#lingo# Sets Courses /1..9/ '课程编号' CourseTypes /1..3/ '课程类别' Prerequisites /
-
0
-
5
-
2
-
0有一个量是x1=x1'+1,这个'怎么打,试了(x1)'显示不对
-
0请问这个代码哪里不对 为什么显示格式错误 model: max=72*x+64*y; x+y<=40; 10*x+8*y<=480; 3*x<=100; x>=0; y>=0; end
-
0model: sets: cities/city1..city22/:city,arrival,introduce_time; links(cities,cities):dist,route; endsets data: dist=@ole('C:/math/2/dist.xlsx','get_time'); introduce_time=@ole('C:/math/2/dist.xlsx','introduce_time'); enddata max=@sum(cities(i):arrival(i)); arrival(1)=1; n=@sum(cities(i):arrival(i)); @for(links(i, j) : @bin(route(i, j))); 》@for(cities(m):arrival(m)=@sum(cities(m):route(m,o))+@sum(cities(m):route(o,m))); @for(cities(i) : @sum(cities(j) : route(j,i)) <1); @for(cities(i) : @sum(cities(j) : route(i,j)) <1); @sum(links(i,j):dist(i,j)*route(i,j
-
0我其他部分都能正常运行,只有“!同一条生产线上的模具尺寸之差不能大于10”这句下面那条语句会被报错。而且注意到我的DATA段中的那条输出语句使用的是与出错语句同样的内容,也就是说同样一个量,可以正常输出,但是无法在程序过程中进行约束 MODEL: SETS: route:……; line:…… ; mould:……, sizetest; ……; output(mould,line):solution; output2(route,line):solution2; ……; ENDSETS DATA: glove,line,mould,sizetest,……=@ole('D:\……\APS.xls'); ……; @text() = @writefor (line(L) | @su
-
1
-
2建立了一个模型但不知道怎么代码化 max=1200(x11+x12+x13)+800(x21+x22+x33)+700(x31+x23+x33); 9*x11+8*x21+6*x31<=2200;9*x12+8*x22+6*x32<=3200; 9*x13+8*x23+6*x33<=1200; 11*x11+6*x21+8*x31<=4200; 11*x12+6*x22+8*x32<=5400; 11*x13+6*x23+8*x33<=1200; x11+x12+x13<=650; x21+x22+x23<=1100; x31+x32+x33<=900; 0.5775<(9*x11+8*x21+6*x31)/(9*x12+8*x22+6*x32)<=0.7975; 0.315<(9*x13+8*x23+6*x33)/(9*x12+8*x22+6*x32)<=0.435; 1.61<(9*x11+8*x21+6*x31)/(9*x13+8*x23+6*x33)<=2.05;
-
0
-
0
-
1or和and的区别在哪里
-
1
-
0
-
0
-
0这是程序 model: sets: supply/1..3/:s; demand/1..4/:d; quota1/1..2/:u1,c1,p1; quota2/1..2/:u2,c2,p2; quota3/1..2/:u3,c3,p3; link0(supply,demand):t; link1(supply,demand,quota1):x1; link2(supply,demand,quota2):x2; link3(supply,demand,quota3):x3; ear1(demand,quota1):v1,n1; ear2(demand,quota2):v2,n2; ear3(demand,quota1):v3,n3; endsets data: s=5000,5000,6000; t=35,25,20 30,50,28 45,30,56 30,40,30; u1=5,8; u2=6,5; u3=9,7; c1=200,120; c2=240,160; c3=160,100; p1=10,8; p2=10,8; p3=10,8; v1=400,500 300,400 200,300 800,800; v2=300,300 1000,100 800,500 100,100; v3=300,200 100,600 400,400 100,400; n1=15