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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/22 18:19:26
lingo提示错误码29,model:title7.1.1指派问题;sets:persons/1..6/:p;works/1..6/:w;value/persons,works/:c,x;endset

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,
model:
      title 7.1.1指派问题;
sets:
   persons/1..6/:p;
   works/1..6/:w;
   value/persons,works/:c,x;
endsets
data:
  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,-99,-99,6,11,13
enddata
min=@sum(value:x*c);
@for(works(i):(persons(j):@sum(c(i,j))=1));
@for(persons(j):(works(i):@sum(c(i,j))=1));


end

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
model:
title 7.1.1指派问题;
sets:
persons/1..6/:p;
works/1..6/:w;
value(persons,works):c,x;
endsets
data:
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,-99,-99,6,11,13;
enddata
min=@sum(value:x*c);
@for(works(i):@sum(persons(j):c(i,j))=1);
@for(persons(j):@sum(works(i):c(i,j))=1);

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 lingo矩阵输入错误29 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 三角波变方波电路查找错误提示错误说是:no model specified for U4:A lingo程序,这里哪里错了,提示是错误11.data那里有错吗.model:3发点4收点运输问题;集合部分;sets:warehouses/wh1..wh3/:capacity;vendors/v1..v4/:demand;links(warehouses,vendors):cost,volume;endsets目标函数;min=@sum(links:cost lingo中model is illdefined什么意思? 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这个模型能不能接出来 其中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解决非线性规划时,限制条件中有变量相乘怎么办?我是新手程序中变量相乘老是提示错误 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错误,model:max=0.487*(x1+y1)+0.53*(x2+y2)+0.613*(x3+y3)+0.72*(x4+y4)+0.487*(x5+y5)+0.52*(x6+y6)+0.64*(x7+y7);0.487*x1+0.53*x2+0.613*x3+0.72*x4+0.487*x5+0.52*x6+0.64*x7 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程序 老提示conflicting bounds on variable,(一直LINGO菜鸟)model:sets:vec0/1..8/:y;vec1/1..4/:d,z,s;vec2/1..2/:m,b,j,u,t,zv,zh,zr,yr,yb,yfs;vec5(vec2,vec2)/1,4/:m/@cos(j);vec6(vec1,vec2)/1,6/:b/d;endsetsDATA:y=4.5 960 20 1.4 1.5 lingo提示MODEL IS ILL DEFINED.model:sets:project/1..7/;year/1..5/;assignment(project,year):a,b,c,d,e,x;endsetsdata:a=360,600,400,950,10.5,6.8,7.0,360,600,400,1350,10.5,6.8,7.0,360,600,400,1350,10.5,6.8,7.0,360,600,400,950,10.5,6.8,7.0,360,600,400,1 跪求lingo高手更正,提示model is ill defined,具体模型如下:model:sets:city/1,2,3,4/:a;biao(city,city):d,w,x,m;endsetsmin=@sum(biao:x(i,j)*m(i,j)*d(i,j)*3+m(i,j)*150000);@for(biao:x(i,j)*m(i,j) 请高手帮我找下这个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(