lingo程序运行不出来,求教model:sets:dmu/1..5/:w;!定义了5个dmunai/1..3/:xr;!3个类型A投入nbi/1..2/:zr;!2个类型B投入ngo/1/:gr;!1个产出gi(nai,dmu):x;!A投入矩阵3*5bi(nbi,dmu):z;!B投入矩阵2*5go(ngo,dmu):y;!产出矩阵1*5en

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 17:33:22
lingo程序运行不出来,求教model:sets:dmu/1..5/:w;!定义了5个dmunai/1..3/:xr;!3个类型A投入nbi/1..2/:zr;!2个类型B投入ngo/1/:gr;!

lingo程序运行不出来,求教model:sets:dmu/1..5/:w;!定义了5个dmunai/1..3/:xr;!3个类型A投入nbi/1..2/:zr;!2个类型B投入ngo/1/:gr;!1个产出gi(nai,dmu):x;!A投入矩阵3*5bi(nbi,dmu):z;!B投入矩阵2*5go(ngo,dmu):y;!产出矩阵1*5en
lingo程序运行不出来,求教
model:
sets:
dmu/1..5/:w;!定义了5个dmu
nai/1..3/:xr;!3个类型A投入
nbi/1..2/:zr;!2个类型B投入
ngo/1/:gr;!1个产出
gi(nai,dmu):x;!A投入矩阵3*5
bi(nbi,dmu):z;!B投入矩阵2*5
go(ngo,dmu):y;!产出矩阵1*5
endsets
data:
x=5.69 4.93 6.7 0.51 4.11
17.25 16.56 25.71 27.70 16.34
170.58 159.03 154.01 118.56 124.79 ;
z=29.59 20.06 30.55 10.60 25.48
11.72 8.91 6.92 4.29 23.72;
y=374.19 249.49 329.24 285.27 376.65;
xr=4.93 16.56 159.03;
zr=20.06 8.91;
yr=249.49;
enddata
max=ddf;
@for(nai(n):
@sum(dmu(i):w(i)*x(n,i))=(1+ddf)yr(m));
End

lingo程序运行不出来,求教model:sets:dmu/1..5/:w;!定义了5个dmunai/1..3/:xr;!3个类型A投入nbi/1..2/:zr;!2个类型B投入ngo/1/:gr;!1个产出gi(nai,dmu):x;!A投入矩阵3*5bi(nbi,dmu):z;!B投入矩阵2*5go(ngo,dmu):y;!产出矩阵1*5en
改成这样
model:
sets:
dmu/1..5/:w,yr;!定义了5个dmu;
nai/1..3/:xr;!3个类型A投入;
nbi/1..2/:zr;!2个类型B投入;
ngo/1/:gr;!1个产出;
gi(nai,dmu):x;!A投入矩阵3*5;
bi(nbi,dmu):z;!B投入矩阵2*5;
go(ngo,dmu):y;!产出矩阵1*5;
endsets
data:
x=5.69 4.93 6.7 0.51 4.11
17.25 16.56 25.71 27.70 16.34
170.58 159.03 154.01 118.56 124.79 ;
z=29.59 20.06 30.55 10.60 25.48
11.72 8.91 6.92 4.29 23.72;
y=374.19 249.49 329.24 285.27 376.65;
xr=4.93 16.56 159.03;
zr=20.06 8.91;
yr=249.49;
enddata
max=ddf;
@for(nai(n):
@sum(dmu(i):w(i)*x(n,i))=(1+ddf)*yr(m));
End

lingo程序如何运行 lingo程序运行不出来,求教model:sets:dmu/1..5/:w;!定义了5个dmunai/1..3/:xr;!3个类型A投入nbi/1..2/:zr;!2个类型B投入ngo/1/:gr;!1个产出gi(nai,dmu):x;!A投入矩阵3*5bi(nbi,dmu):z;!B投入矩阵2*5go(ngo,dmu):y;!产出矩阵1*5en lingo改错,写的程序怎么运行不出来MODEL:SETS:location/1..12/:x,y,r;ENDSETSDATA:x=0,8.20,0.50,5.70,0.77,2.87,4,43,2.58,0.72,9.76,3.19,0.55;y=0,0.50,4.90,5.00,6.49,8.76,3.26,9.32,9.96,3.16,7.20,7.88;r=600,1000,800,1400,1200,700,600,800,1000, 为什么lingo程序运行出来没有灵敏度分析的数据呀? 下面这个LINGO程序问什么20分钟一直运行不出来?model:sets:hang/1..8/;lie/1..19/:b;zonghe(hang,lie):x;endsetsdata:b=13 4 3 6 7 6 6 7 6 4 4 4 7 5 2 2 5 2 2;enddatamin=(1/152)*@sum(zonghe(i,j):(x(i,j)-(1/152)*x(i,j))^2);@for(lie(j):(@sum( 目标函数的lingo语句(0-1变量)是不是写错了啊求大神指点!运行出的结果是没有计算运费的最优方案,但是不知道错在哪里…本程序是模型Ⅰ中张三的程序;model:最优网购问题;sets:定义变量部 帮忙看下一个Lingo程序,自己编的运行不了了具体如下:MODEL:SETS:JOB/1..5/;WORKER/1..7/;REVISOR/1..7/;LINKS(WORKER,REVISOR,JOBA,JOBB,TIME,ZZ):C,D,X,Y,T,Z;ENDSETSDATA:C=2 15 13 1 810 4 14 15 79 14 16 13 87 8 11 9 48 4 15 8 612 4 6 8 一个LINGO的程序结果运行不出,MODEL:TITLE 交通流均衡;SETS:ROAD/AD,BD,CD,DG,EG,FG,JG,GK,KH,KI/:Y;CAR/1,2,3,4,5/;LINK(CAR,ROAD):T,X;ENDSETSDATA:T=1.2,0.81,0.79,1.8,0.84,1,1.54,1.69,0.52,0.4681.64,1.62,1.5,3.5,1.65,1.9,3.0,3.3,1.1,0.93.25, 那位高手知道下面这段lingo程序为什么解不出来?谢谢,急!model:sets:warehouses/wh1..wh6/:capacity;vendors/v1..v18/:demand;links(warehouses,vendors):cost,volume,x;endsets!目标函数;min=@sum(links:cost*volume*1);!需求约束;@for(v 帮我运行个lingo的程序,我这边运行不了程序如下:model:sets:cities/1..6/:u; link(cities,cities):dist,x;endsetsn=@size(cities);data:dist=0 5600 3500 2100 5100 60005600 0 2100 5700 7800 70003500 2100 0 3600 6800 68002100 5700 3600 0 51 lingo error 11,我的lingo程序运行有错 model:sets:rural/Al A2 A3 A4/:A,B;warhouse/W1 W2 W3/:G;city/C1 C2 C3 C4 C5/:R,D;tr/tr1 tr2 tr3/:Z;link1(rural,warhouse):C,L;link2(warhouse,city):H,S;link3 (city,warhouse):O,P;link4(warhouse,rural):E,F;ends 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改错,为什么运行不出来?,求各位大师帮忙.MODEL: SETS: chsh/1..6/; links(chsh,cash)/1,2 1,3 2,3 2,4 3,5 4,3 4,6 5,4 5,6 6,1/:C,U,F; !6,1是虚拟弧,U为流量限制,C为费用,F为实际流量;ENDSETSDATA: U=8,7,5,9,9,2,5,6,10,1 求教LINGO大神 我有个地方程序错误程序是这样的,是要给五个人分配四个任务model:sets:ren/p1,p2,p3,p4,p5/;renwu/A,B,C,D,E/;endsetsdata:C= 10 5 15 20 10000 2 10 5 15 0 3 15 14 13 0 15 2 7 10000 0 9 4 15 8 一段简单的LINGO线性规划程序lingo说解不出来啊,怎么回事?model:title:model2;sets:flag/1..2/:a;commercial/1..4/:m;!商品种类 已知;client/1..8/:c;!客户 已知;supply/1..5/:w;!货栈 已知;links(supply,client):n,t,x;!货栈和 LINGO 程序.帮忙运行下结果呀!急呀!谢谢……model:min=12*(@sqrt(36+D1^2))+18*(@sqrt(16+(D2-D1)^2))+28*(@sqrt(25+(D3-D2)^2))+16*(@sqrt(36+(D4-D3)^2))+25*(@sqrt(D5-D4)^2);D4>=D3;D3>=D2;D2>=D1;D1>=0;D5=40;end 这是lingo程序为什么运行不起呢?希望你们能回答下谢谢!model:sets:year/1..10/:y;rate/1..4/:m;jiangjin/1/:s;endsetsdata:m=0.01584 0.018 0.02016 0.02232;enddatamax=s(1);@for(year(i)|i#le#3:y(i)*(1+i*m(i))=s(1));y(4)*(1+0.02016*3)*(1+0 LINGO问题 我找了一个程序 自己改了改,运行出错了,求大侠帮忙.model:sets:v/1..20/:a,b,d,n,m; endsetsmin=w;w=@sum(v(i):a*b*d)*t;@sum(v(i):n*d)>=k1;@sum(v(i):n*d)=0.8*m);@for(v(i):n