lingo语句哪错了sets:position/P1 P2 P3 P4 P5/:x,k;endsetsdatax=5 6 4 8 10;enddata@for(position(i):k(i)=1/x(i));

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 23:22:58
lingo语句哪错了sets:position/P1P2P3P4P5/:x,k;endsetsdatax=564810;enddata@for(position(i):k(i)=1/x(i));lin

lingo语句哪错了sets:position/P1 P2 P3 P4 P5/:x,k;endsetsdatax=5 6 4 8 10;enddata@for(position(i):k(i)=1/x(i));
lingo语句哪错了
sets:
position/P1 P2 P3 P4 P5/:x,k;
endsets
data
x=5 6 4 8 10;
enddata
@for(position(i):k(i)=1/x(i));

lingo语句哪错了sets:position/P1 P2 P3 P4 P5/:x,k;endsetsdatax=5 6 4 8 10;enddata@for(position(i):k(i)=1/x(i));
sets:
position/P1 P2 P3 P4 P5/:x,k;
endsets
data:!少了一个冒号;
x=5 6 4 8 10;
enddata
@for(position(i):k(i)=1/x(i));

lingo语句哪错了sets:position/P1 P2 P3 P4 P5/:x,k;endsetsdatax=5 6 4 8 10;enddata@for(position(i):k(i)=1/x(i)); lingo中sets是什么? 目标函数的lingo语句(0-1变量)是不是写错了啊求大神指点!运行出的结果是没有计算运费的最优方案,但是不知道错在哪里…本程序是模型Ⅰ中张三的程序;model:最优网购问题;sets:定义变量部 这个lingo程序错在哪?我编了个lingo程序,测试的时候出错,感激不尽~以下是程序“MODEL:title 码流提取问题;SETS:job/1..5/;worker/1..16/;assign(job,worker):x,a,b;ENDSETSDATA:a=30.8667,32.7657,35.4304,37.781,40.3113,28.6755, 这个lingo程序错在哪了?model: sets: row/1..3/:b; col/1..2/:c,x,l,u; matrix(row,col):A; endsetsmin=@sum(col:c*x);@for(col:@bnd(l,x,u));@for(row(i): @sum(col(j):A(i,j)*x(j) 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出现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 哪错了model:sets:year/1..15/:bank,st,xz;endsets@for(year:bank(i)=100*(1+0.05)^i);@for(year:st(i)=50*@exp(i^0.5/6));@for(year:xz(i)=st(i)/((1+0.05)^i));end 在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错在哪, 求lingo高手!关于父集函数的表示~!sets: box_area/1..6/; box_kind/1..4/; bay_area/1..3/; allowed(box_area,bay_area,box_kind):e; endsets我有这么个程序.lingo一直报错,说是出错在了allowed那里~求高手修改!~万分感谢~ 求lingo高手!mcm1988b题目,用lingo咋写代码.新手待解救,财富不多,见谅!貌似自己写的很多错啊...先谢过了!model:Title:train problem;sets:huowu/1..7/:t,w,k;train/1..2/:x;link(huowu,train):h;endsetsdata:t=48.7,52.0,61.3,72.0, 高手给看看哪错了 lingo 在这里谢谢了model:sets:part/1..7/:a;equipment/1..5/:g;time/1..6/:t;machine_hour(equipment,part):d;machine(equipment,time):h,n,m;pxt(time,part):c,v,x;endsetsdata:a=100 60 80 40 110 90 30;g=2 2 3 1 1;h=4 4 4 4 4 4 2 求大神指教lingo问题,下面代码哪错了?model:sets:w/1..6/:a;q/1..8/:d;link(w,q):c,x;endsetsmin=@sum(link:c(i,j)*x(i,j));@for(w:@sum(q:x)<a);@for(q:@sum(w:x)=d);data:a=60 55 51 43 41 52;d=35 37 22 32 41 32 43 38;c=6 2 6 7 4 2 5 94 9 5 3 8 lingo哪错了?MODEL:sets:Quarters/1..4/:a,k,d,c,t,p;endsetsdata:k=25,35,30,10;d=10,15,25,20;c=1000,800,800,1000;t=13,12,12,10;p=7.04,7.04,7.04,7.04;enddatamin=@sum(Quarters:a*c*p*0.0001+(0.75t+1.08*p^3+15.71*p^2+76.80*p-116.55)*a+0.15*@sum(quarters( lingo中@for语句代表什么意思? lingo 中if语句怎么运用. 怎样利用LINGO进行循环语句