lingo错误29sets:sec/1..15/:a,b,c,d,e,f,g,w;endsetsdata:a,b,c,d,e,f,g,w=0 0 1 0 0 0 1 52.4 0 0 1 0 0 0 0 61.9 0 0 1 0 0 0 0 37.2 0 0 0 0 0 0 1 16.3 0 0 0 0 0 0 1 17.7 0 0 0 1

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 12:18:29
lingo错误29sets:sec/1..15/:a,b,c,d,e,f,g,w;endsetsdata:a,b,c,d,e,f,g,w=001000152.4001000061.9001000037

lingo错误29sets:sec/1..15/:a,b,c,d,e,f,g,w;endsetsdata:a,b,c,d,e,f,g,w=0 0 1 0 0 0 1 52.4 0 0 1 0 0 0 0 61.9 0 0 1 0 0 0 0 37.2 0 0 0 0 0 0 1 16.3 0 0 0 0 0 0 1 17.7 0 0 0 1
lingo错误29

sets:

sec/1..15/:a,b,c,d,e,f,g,w;

endsets

data:

a,b,c,d,e,f,g,w=0 0 1 0 0 0 1 52.4

                0 0 1 0 0 0 0 61.9

                0 0 1 0 0 0 0 37.2

                0 0 0 0 0 0 1 16.3

                0 0 0 0 0 0 1 17.7

                0 0 0 1 0 0 0 6.9

                0 0 0 0 0 1 1 40.8

                0 0 1 0 0 0 0 52

                0 0 0 0 0 1 0 75.7

                0 0 0 0 0 0 1 55.9

                0 1 1 0 0 0 0 60

                0 0 0 1 0 0 0 46

                1 0 0 0 1 0 0 34.3

                0 1 0 0 1 1 0 50.7

                1 1 0 0 0 0 0 42.1

                

enddata

max=@sum(sec(i):(c1*a(i)#or#b(i)*c2#or#c(i)*c3#or#d(i)*c4#or#e(i)

*c5#or#f(i)*c6#or#g(i)*c7)*w(i));

9*c1+6.5*c2+20*c3+14.5*c4+19*c5+13*c6+10.5*c7<50;

@bin(c1);@bin(c2);@bin(c3);@bin(c4);@bin(c5);@bin(c6);@bin(c7);

end


lingo错误29sets:sec/1..15/:a,b,c,d,e,f,g,w;endsetsdata:a,b,c,d,e,f,g,w=0 0 1 0 0 0 1 52.4 0 0 1 0 0 0 0 61.9 0 0 1 0 0 0 0 37.2 0 0 0 0 0 0 1 16.3 0 0 0 0 0 0 1 17.7 0 0 0 1
数据最后加分号 你没加

lingo错误29sets:sec/1..15/:a,b,c,d,e,f,g,w;endsetsdata:a,b,c,d,e,f,g,w=0 0 1 0 0 0 1 52.4 0 0 1 0 0 0 0 61.9 0 0 1 0 0 0 0 37.2 0 0 0 0 0 0 1 16.3 0 0 0 0 0 0 1 17.7 0 0 0 1 lingo中sets是什么? lingo矩阵输入错误29 lingo矩阵输入错误29 lingo 错误29请问是怎么回事?model:sets:level/1..6/:p,z,goal;plant/A1..A3/:b;customer/B1..B4/:a;routes(plant,customer):c,x;deviation/1..12/:d1,d2;obj(level,deviation)/1 4,2 5,3 6,3 7,3 8,3 9,4 10,5 11,6 12/:wplus,wminus;endsetsdata:b=300 200 4 lingo提示错误码29,model: title 7.1.1指派问题;sets: persons/1..6/:p; works/1..6/:w; value/persons,works/:c,x;endsetsdata: x=20,15,16,5,4,7, 17,15,33,12,8,6, 9,12,18,16,30,13, 12,8,11,27,19,14, -99,7,10,21,10,32, -99 lingo错误29这个模型能不能接出来 其中Ti,Mi为一组139位的数据 求救! MODEL:SETS:num/1..139/:x;assign1(num):c;ENDSETSdata:m=5.4114.01732.29452.84594.12345.58575.35645.820455.82045.0.250.750.250.250.25;enddatamax=@sum(num(i):m(i)*c(i lingo错误model:sets:quarter/1..4/:DEM,RP,OP,INV;endsetsdata:DEM=40,60,75,25;enddatamin=@sum(quarter:400*RP+450*OP+20*INV);@for(quarter(I):RP lingo运行错误improper use of attribute name,model:sets:chan/c1..c10/:p,q,w,f;xie/1..5/:d;links(chan,xie):x,c,l,a,b,t;endsets@for(chan(i):@sum(xie(j):x(i,j)) lingo利用for循环,有错误1 lingo有没有真为1这么一说2 @for(lianxi(i,j)| i #NE# j:(T(i)#EQ#1)*@floor((i+4)/5) #NE# (T(j)#EQ#1)*@floor((j+4)/5)); (j+4)/5))); 这句话哪有错误.整个程序是model:sets:jiaoshi/1..45/:dianliang,zuowei,K 请高手帮我找下这个Lingo程序的错误!下面是Lingo程序model:sets:hotel/1..10/;format/1..3/;link(hotel,format):x,y,c;endsetsmin=@sum(link:x*y*c);@for(format(j):@sum(hotel(i):(y(i)*r(i,j)))=num(j)/2);@for(format(j):@sum(hotel(i):(y(i)*r1( lingo的运行错误问题我的lingo程序模型是这样:MODEL:SETS:QUARTERS/1..1000/:X;ENDSETSMIN = @SUM(QUARTERS(i)|@MOD(i,2)#EQ#0:X(i);) - @SUM(QUARTERS(i)|0#NE#@MOD(i,2):X(i););@for(QUARTERS(i):@sum(QUARTERS(i):X(i)) >= 1000 ;);@for(QUARTERS( lingo sets中可以由已知数 和 未知数组成吗?例如 sets zuobio/1..22/:x,y; endsets 前20个已知,怎么写 lingo中的错误提示在哪找?以下为所写程序,MODEL:sets:num_i/1..8/:x,k;num_p/9..22/:x,k;num_q/23..46/:x,k;num_j/1..3/:n,m,l;endsetsdata:n=43;59,39,41,27,28,34,21,24,24,20,25,21,23,21,18,31,23,22,59,18,25,35,29,30,42,28,42,45,49,50,64,52,63 lingo 错误29哪里错了?新手第一次用lingomodel:sets:nodes/1..10/:;arcs(nodes,nodes)/1,3 1,4 1,5 1,6 2,3 2,4 2,5 2,6 3,7 4,7 3,9 4,9 5,7 6,7 5,9 6,9 1,7 1,8 1,9 1,10 2,7 2,8 2,9 2,10/:cap,cost,f,excost;endsetsmin=@sum(arcs(i,j):(cost+excost)* 在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语句,从1一直加到100的和系统怎么说sets部分有错误?setsmumber/1..100/:A;endsetsmax=@sum(number:A);dataA=1;enddataend因为是初学者,麻烦把上面错误的地方详细的解释下, lingo 关于and的用法sets:jishu/1..n/:x,h,y;endsets当i>1且i