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

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/13 04:40:10

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 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 47 49 39 29 42 38 38 29 38 44 17
38 33 14 0 13 20 33 35 25 15 33 32 32 15 24 30 11
51 27 27 13 0 9 21 37 26 26 43 45 45 28 29 38 24
58 32 34 20 9 0 13 32 32 35 47 52 52 35 33 42 31
71 45 47 33 21 13 0 19 30 39 50 65 65 48 44 40 44
67 64 49 35 37 32 19 0 11 20 31 54 61 34 25 21 40
57 53 39 25 26 32 30 11 0 10 20 43 51 24 14 13 30
47 47 29 15 26 35 39 20 10 0 18 36 41 14 9 18 20
52 61 42 33 43 47 50 31 20 18 0 23 46 25 14 23 25
48 57 38 32 45 52 65 54 43 36 23 0 27 22 33 42 21
21 52 38 32 45 52 65 61 51 41 46 27 0 39 48 57 21
41 48 29 15 28 35 48 34 24 14 25 22 39 0 11 20 18
52 56 38 24 29 33 44 25 14 9 14 33 48 11 0 9 27
61 63 44 30 38 42 40 21 13 18 23 42 57 20 9 0 36
27 36 17 11 24 31 44 40 30 20 25 21 21 18 27 36 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))))
)
));
总工作时间;
@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 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: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