lingo运行出现model is ill defined我的代码:model:sets:duration/1..27/:t;start/1..240/;restrain/1..39/:m,n,c;c_a(start,duration):a;endsetsdata:t=30,41,40,70,40,80,32,24,50,80,10,44,90,23,21,50,36,55,70,70,90,42,44,50,70,90,12;m=17,17,16,16,16

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 05:41:16

lingo运行出现model is ill defined我的代码:model:sets:duration/1..27/:t;start/1..240/;restrain/1..39/:m,n,c;c_a(start,duration):a;endsetsdata:t=30,41,40,70,40,80,32,24,50,80,10,44,90,23,21,50,36,55,70,70,90,42,44,50,70,90,12;m=17,17,16,16,16
lingo运行出现model is ill defined
我的代码:
model:
sets:
duration/1..27/:t;
start/1..240/;
restrain/1..39/:m,n,c;
c_a(start,duration):a;
endsets
data:
t=30,41,40,70,40,80,32,24,50,80,10,44,90,23,21,50,36,55,70,70,90,42,44,50,70,90,12;
m=17,17,16,16,16,15,14,14,13,7,13,8,8,8,9,10,10,11,5,5,6,5,5,3,1,1,2,19,19,25,25,25,21,20,20,21,21,21,23;
n=18,16,18,14,15,14,13,19,19,13,8,7,9,10,10,11,12,12,6,7,7,4,3,4,2,6,6,20,25,20,26,21,26,21,22,22,23,24,24;


enddata
@for(c_a:@bin(a));
min=z;
@for(c_a:a(i,j)*i+t(j)<=z);
@for(c_a:(a(i,18)+a(i,17))<=1);
@for(c_a:@sum(start:a(i,j))=1);
end






运行后出现图中提示~




lingo运行出现model is ill defined我的代码:model:sets:duration/1..27/:t;start/1..240/;restrain/1..39/:m,n,c;c_a(start,duration):a;endsetsdata:t=30,41,40,70,40,80,32,24,50,80,10,44,90,23,21,50,36,55,70,70,90,42,44,50,70,90,12;m=17,17,16,16,16
只能给你在语法上修改正确
min=z;
@for(c_a(i,j):a(i,j)*i+t(j)

lingo中model is illdefined什么意思? lingo运行出现model is ill defined我的代码:model:sets:duration/1..27/:t;start/1..240/;restrain/1..39/:m,n,c;c_a(start,duration):a;endsetsdata:t=30,41,40,70,40,80,32,24,50,80,10,44,90,23,21,50,36,55,70,70,90,42,44,50,70,90,12;m=17,17,16,16,16 在使用lingo是出现 unable to solve ...no model currently in momery 是什么意 lingo程序如何运行 急求运行LINGO出现unexpected jacobian overflow错误,代码如下,希望大牛帮忙指出哪错了.MODEL:SETS:WH/W1..W13/:Q,C;NE/N1..N13/:N;LINKS(WH,NE):W,B;ENDSETSDATA:C=2,1,4,4,4,5,3,2,1,4,3,10,8;N=48757.8,29912.3,76360.4,68715.1,61605.9,1724 为什么下面程序用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程序时,出现index variables may not share names with others variables,这是为什么?model:sets:m/1..1000/;n/1..100/;numbers/v1..v100/:demand;links(m,n):a,x,y;endsetsmax=@sum(links:0.8*a(I,J)*x(I,J)+0.8*a(I-400,J)*y(I,J)-demand( lingo运行时出现improper use of set name!MODEL:建立集合;SETS:Three products; PRODUCT/A,B,C/;Two distctrs; DISTCTR/DCl,DC2/;F;Five customers; CUSTOMER/C1,C2,C3,C4,C5/; D=Demand for a product by a customer.; DEMLINK(PRODUCT,CUSTOMER):D; Each Lingo运行出现“Improper use of set name”,怎么修改?model:sets: num1/nl1/:i; num2/nz0..nz33/:j;endsets目标函数; min=@sum(num1(I):@sum(num2(J):num1(I)*Q-X0*((num1(I)-1)*t+num2(J))))*0.2+282*0.2+18*m*q+75*m+48000;约束条件; 3+(m-1)* Lingo里出现Model is ill defined!就是有A到J个任务,所需要的时间放在Time中,总共有4个相同机器,choose中放置所选机器编号(1~4),问如何放置,总时间最短;MODEL:SETS: TASK/ A B C D E F G H I J K/: Time,choose;E 小弟刚接触LINGO,实在是没辙了,编写完成后出现model is ill difined希望各位好心人帮助,十万火急,谢谢model:sets:DMU/1..14/:H,W;II/1..2/;OI/1..2/; IV(II,DMU):X;OV(OI,DMU):Y; endsetsdata:X=0.37418 0.144448 0.106145 0.122964 lingo运行问题Model:max=2.28*y2+4.56*y3+3.34*y4+6.68*y5+12.65*y6;y1*t1+y2*t2+y3*t3+y4*t4+y5*t5+y6*t6 lingo菜鸟问题model:x^2+y^2=2;x^2+2*x+y^2+y=4;end的运行结果为什么会有Solution is locally infeasible的提示并且结果会是Variable ValueX 1.414214Y 0.000000显然不是正确的啊问题出在哪里? Lingo 错误代码 12-(data missing right parenthesis)运行时出现,数据缺少右括号的错误,这是怎么回事? 为啥运行LINGO时会出现错误代码11,MODEL:SETS:CHSH/1..6/;LINKS(CHSH,CHSH)/1,2 1,3 2,3 2,4 3,5 4,3 4,6 5,4 5,6 6,1/:C,U,F;ENDSETSDATA:U=8,7,5,9,9,2,5,6,10,15;C=2,8,5,2,3,1,6,4,7,8;ENDDATDN= @SIZE(CHSH);F(6,1)=14;MIN= @MIN( LINKS(I,J)|I#LT#N:C 在matlab中运行出现错误:Error using ==> rstool Insufficient data to fit model Linear. 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运行时总是出现index variables may not share name with other variables是怎么回事用的下标n跟其他变量什么的没有重复的啊,