lingo编程错误model:sets:C1/1..3/:; C2/1..8/:; C3/1..7/:; S1/1..17/:; S2/1..16/:GH,GQ; L1(S1,S1):d; L2(C1,C2,S1):F; endsets data:d=0 38 30 42 42 51 63 81 61 69 22 38 0 39 36 36 45 57 75 55 63 16 30 39 0 15 40 49 58 63 43 42 24 42 36 15 0 25 34 43

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 15:26:57
lingo编程错误model:sets:C1/1..3/:;C2/1..8/:;C3/1..7/:;S1/1..17/:;S2/1..16/:GH,GQ;L1(S1,S1):d;L2(C1,C2,S1

lingo编程错误model:sets:C1/1..3/:; C2/1..8/:; C3/1..7/:; S1/1..17/:; S2/1..16/:GH,GQ; L1(S1,S1):d; L2(C1,C2,S1):F; endsets data:d=0 38 30 42 42 51 63 81 61 69 22 38 0 39 36 36 45 57 75 55 63 16 30 39 0 15 40 49 58 63 43 42 24 42 36 15 0 25 34 43
lingo编程错误
model:
sets:
C1/1..3/:;
C2/1..8/:;
C3/1..7/:;
S1/1..17/:;
S2/1..16/:GH,GQ;
L1(S1,S1):d;
L2(C1,C2,S1):F;
endsets
data:
d=
0 38 30 42 42 51 63 81 61 69 22
38 0 39 36 36 45 57 75 55 63 16
30 39 0 15 40 49 58 63 43 42 24
42 36 15 0 25 34 43 48 28 27 20
42 36 40 25 0 9 21 39 19 32 20
51 45 49 34 9 0 19 39 27 40 29
63 57 58 43 21 19 0 20 22 35 41
81 75 63 48 39 39 20 0 20 33 59
61 55 43 28 19 27 22 20 0 13 39
69 63 42 27 32 40 35 33 13 0 47
22 16 24 20 20 29 41 59 39 47 0
;
GH=10,15,6,9,13,6,11,4,13,17,11,2,11,21,13,14;
GQ=9,14,5,10,9,10,13,9,15,9,6,7,13,15,10,16;
enddata
min=2/65*@sum(C1(i):@sum(C3(p):
@sum(L1(k,q)|k#ne#q:d(k,q)*F(i,p,k)*F(i,p+1,q))*
(65-
@sum(C2(j):@sum(S2(k):F(i,j,k)*GH(k)))
-@sum(C2(j)|j#le#p:@sum(S2(k):F(i,j,k)*(GQ(k)-GH(k))))
)
38 ));
总工作时间;
@for(C1(i):
5/60*@sum(C2(j):@sum(S2(k):F(i,j,k)))+
1/30*@sum(C3(j):@sum(L1(k,q)|k#ne#q:F(i,j,k)*F(i,j+1,q)*d(k,q)))

lingo编程错误model:sets:C1/1..3/:; C2/1..8/:; C3/1..7/:; S1/1..17/:; S2/1..16/:GH,GQ; L1(S1,S1):d; L2(C1,C2,S1):F; endsets data:d=0 38 30 42 42 51 63 81 61 69 22 38 0 39 36 36 45 57 75 55 63 16 30 39 0 15 40 49 58 63 43 42 24 42 36 15 0 25 34 43
你定义d的时候是17×16的矩阵,而给数据的时候却只给出11×11个数据.不吻合.
看看数据是不是拷错了

lingo 编程时出现错误,希望让各位大大看看出了什么问题,是语法还是方程本身的问题.model:sets:project/1..8/:u,p;year/1..5/:c,d;link(year,project):a,b;endsets目标函数;max=@sum(year :d);第i年末利润di的计算;@for(y lingo编程出问题了model: sets: month/7..12/:x,y,w,c,d; endsetsmax=@sum(month(i):c(i)*y(i)-d(i)*x(i)-0.5*w(i));@for(month(i):w(i)=300;也有问题,错误代号70 LINGO编程错误model:sets:C1/1..3/:; C2/1..8/:; C3/1..7/:; S1/1..17/:; S2/1..16/:GH,GQ; L1(S1,S1):d; L2(C1,C2,S1):F; endsets data:d=0 31 27 38 51 58 71 67 57 47 52 48 21 41 52 61 27 31 0 19 33 27 32 45 64 53 47 61 57 52 48 56 63 36 27 19 0 14 27 34 lingo编程错误model:sets:C1/1..3/:; C2/1..8/:; C3/1..7/:; S1/1..17/:; S2/1..16/:GH,GQ; L1(S1,S1):d; L2(C1,C2,S1):F; endsets data:d=0 38 30 42 42 51 63 81 61 69 22 38 0 39 36 36 45 57 75 55 63 16 30 39 0 15 40 49 58 63 43 42 24 42 36 15 0 25 34 43 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中sets是什么? 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 错误的1017我在model后面打过:model:sets:para/1..3/:y;warehouses/wh1..wh3/:capacity;vendors/v1..v4/:demand;links(warehouses,vendors):cost,volume;endsets目标函数;min=@sum(links:cost*volume)+91y(1)+70y(2)+24y(3);@for(para:@bin(y)); 帮我看下这个数学建模模型的LINGO编程为啥求不出解MODEL:sets:row/1..16/:这里n为控制参数;col/1..7/:;AZ(row,col):b,x;endsetsdata:b=1.754167,1.737500,1.737500,1.770833,1.770833,1.762500,1.762500,1.667500,1.609167,1.609167,1.6508 lingo编程提示error code 1017 错哪了?model:sets:b/1.2.3/:x,a,v,;endsetsdata:a=400,300,100;v=3,2,1;enddatamax=@sum(b(i):x(i)*a(i));@for(b(i):x(i)v(i)) 跪求答案,lingo编程出现问题,希望高手能帮忙,非常感谢MODEL:SETS:CLZ/A1..A3/;LJZ/D1..D3/QI;JIAGE(LIZ,CLZ):L,B;ENDSETSDATA:L=0 2 32 0 43 4 0;Q=1 2 3;ENDDATAMIN=@SUM(CLZ(J): @SUM(LJZ(I): (2.07*10^(-4)*1.41*L(I,J)*Q(I lingo线性规划编程问题.求每一行的解释,尤其那个for循环.model:6 发点 8 收点运输问题; sets:warehouses/wh1..wh6/:capacity; vendors/v1..v8/:demand; links(warehouses,vendors):cost,volume; endsets 目标函数; min=@sum(links:cos 求每一行的解释,尤其那个for循环.lingo关于最小运输费用的编程问题.求每一行的解释,尤其那个for循环.model:6 发点 8 收点运输问题; sets:warehouses/wh1..wh6/:capacity; vendors/v1..v8/:demand; links(warehouses,ven 在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有些不会我自己写的程序如下,但好像有些错误,倒数第二排的错误就不知道怎么解决model:sets: nodes/n0..n9/; liuliang(nodes,nodes):C,X;endsetsdata:C=0 12 20 0 0 0 0 0 0 0 0 0 0 12 0 0 0 0 0 0