model:sets:year/1..5/:demand,new,nature,gouxie;gou/1..8/:pay,xie;link(year,gou):c;endsetsdata:demand=150,160,170,80,90;nature=46.15,41.55,37.12,32.81,28.61;pay=5,7,5,4,6,5,5,3;xie=25,36,32,15,31,28,22,12;enddatamin=@sum( link(i,j):c(i,j)*pay(j) );@su

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/29 15:00:38
model:sets:year/1..5/:demand,new,nature,gouxie;gou/1..8/:pay,xie;link(year,gou):c;endsetsdata:demand=150,160,170,80,90;nature=46.15,41.55,37.12,32.81,28.61;pay=5,7,5,4,6,5,5,3;xie=25,36,32,15,31,28,22,12;enddatamin=@sum( link(i,j):c(i,j)*pay(j) );@su
xNP_MmOz!JT(Qt[c1n\01&ėd+83a?~lEqY݉Î!u6(niii:1[$AFnjJyqQ(I@&He*&TMOU J.m(IݶX֥EKH*#=lPte`p [$3X-L]It{M-dz%c Վ1Y%3`6~ߐ ko8&vĊE( c#hE-IK.B7bKIx(l*o

model:sets:year/1..5/:demand,new,nature,gouxie;gou/1..8/:pay,xie;link(year,gou):c;endsetsdata:demand=150,160,170,80,90;nature=46.15,41.55,37.12,32.81,28.61;pay=5,7,5,4,6,5,5,3;xie=25,36,32,15,31,28,22,12;enddatamin=@sum( link(i,j):c(i,j)*pay(j) );@su
model:
sets:
year/1..5/:demand,new,nature,gouxie;
gou/1..8/:pay,xie;
link(year,gou):c;
endsets
data:
demand=150,160,170,80,90;
nature=46.15,41.55,37.12,32.81,28.61;
pay=5,7,5,4,6,5,5,3;
xie=25,36,32,15,31,28,22,12;
enddata
min=@sum( link(i,j):c(i,j)*pay(j) );
@sum(year(i)|i#lt#4:new(i))=139; new(4)=0;new(5)=0;
@for(year:@gin(new); );
这个约束怎么不满足?;
@for(year(i):gouxie(i)+nature(i)>demand(i));
gouxie(1)=@sum( link(i,j):c(1,j)*xie(j) );
@for(year(i)|i#gt#1:gouxie(i)=gouxie(i-1)*0.9+@sum(gou(j):c(i,j)*xie(j)));
new(1)+@sum(gou(j):pay(j)*c(1,j))

model:sets:year/1..5/:demand,new,nature,gouxie;gou/1..8/:pay,xie;link(year,gou):c;endsetsdata:demand=150,160,170,80,90;nature=46.15,41.55,37.12,32.81,28.61;pay=5,7,5,4,6,5,5,3;xie=25,36,32,15,31,28,22,12;enddatamin=@sum( link(i,j):c(i,j)*pay(j) );@su
自己带进去算 满足

model:sets:year/1..3/:demand,new,nature,gouxie; gou/1..8/:pay,xie; link(year,gou):c; endsets datamodel:sets:year/1..3/:demand,new,nature,gouxie;gou/1..8/:pay,xie;link(year,gou):c;endsetsdata:demand=150,160,170;nature=46.15,41.55,37.12;pay=5,7,5,4,6,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: sets: owall/1..4/; nwall/1..8/; year/1..5/; cji(year,owall):c; bik(year,nwall):b,m,x;endsets min=@sum(bik:m*x)+0.66*(Q^0.51)*L; Q>=100; @sum(ow 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 找错 for循环有问题(在线等)我是初学者,运行时显示错误为:subscript out of range on attribute 似乎说是指标超出范围,不是很懂!model:sets:year/1..5/:n,n1,n2,n3,n4,q4;endsetsdata:n1=122000000000,;n2=2970000000 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 model:sets:year/1..5/:demand,new,nature,gouxie;gou/1..8/:pay,xie;link(year,gou):c;endsetsdata:demand=150,160,170,80,90;nature=46.15,41.55,37.12,32.81,28.61;pay=5,7,5,4,6,5,5,3;xie=25,36,32,15,31,28,22,12;enddatamin=@sum( link(i,j):c(i,j)*pay(j) );@su the model year 这是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:product/1..3/:a,b; row/1..5/:c,d,y; num/1..9/:x; endsets其中的product和num该怎么用?还有平时不是用的col么而不是num区别在哪? LINGO中的目标函数的表示若已知条件model:sets:a/1..5/:q;b/1..10/:y;c(a,b):x;endsets若要表示的目标函数为:该如何在lingo中表示出来? LINGO中的目标函数的表示方法若已知model:sets:a/1..5/:q;b/1..10/:y;c(a,b):x;endsets若要表示的目标函数为:该如何在lingo中表示出来? model:sets:month/1..12/:pro,sel,sto;endsetsmin=@sum(month:5*pro);@for(month(i):sto(i+1)=(sto(i)+pro(i)-sel(i)));sto(0)=0;sto(12)=2;@for(month(i):sto(i) 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的数据拟合model:sets:xl/1..5/:n,y; endsets data:n=19,20,22,24,25; y=6,7,8,9,10; enddata @frmodel:sets:xl/1..5/:n,y;endsetsdata:n=19,20,22,24,25;y=6,7,8,9,10;enddata@free(a);@free(b);min=@sum((@log(y)*a-b-n)*(@log(y)*a-b-n));end这段程序 程序哪里错误model:sets:j/1..5/:danjia,yongliao,chengben,xuqiu,shelitouzi,fj;i/1..5/:chaixienengli,danweichaixiehuafei,chuzhihuafei,fenjieziyuanshiyong,vi,ti;k/1..5/:uk,vk,bk;l/1..5/;links1(i,l):oil,pil,gil,lzuidanengli,xil,uil;links2(i,j):qij;l 运行lingo8.0提示属性下标越界,请高人改改,有其他错误的话也一并改一下,程序:model:sets:product/1..5/:x,h,k;material/1..6/:c,e;material2/1..6/:g,f;product2/1..5/;price/1..7/;form(product2,price):a;amount(material,material2) lingo 目标函数的代码编写目标函数为 程序为:MODEL:sets:Warehouse/1..4/:a; Customer/1..8/:b;prize/1..4/:p; qu/1..8/:q; Routes(Warehouse,Customer):c,x; endsets !here are the parameters; data: a=6,8,6,22; b=6,5,8,5,6,5,4,6; p=92,88,90,