帮看下lingo的程序,model:sets:num1/1..8/:a,b;num2/1..3/:l;aa(num2,num1):x;endsetsdata:a=5,7,5,4,6,5,5,3;b=25,36,32,15,31,28,22,12;enddatamin=0.66*20*Q^0.51+@sum(aa(i,j):x(i,j)*a(j));m1=@sum(num1(j):x(1,j)*b(j));m2=0.9*m1+@sum(num1(j):x(2,j)*b(j)

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/07 14:39:55
帮看下lingo的程序,model:sets:num1/1..8/:a,b;num2/1..3/:l;aa(num2,num1):x;endsetsdata:a=5,7,5,4,6,5,5,3;b=2

帮看下lingo的程序,model:sets:num1/1..8/:a,b;num2/1..3/:l;aa(num2,num1):x;endsetsdata:a=5,7,5,4,6,5,5,3;b=25,36,32,15,31,28,22,12;enddatamin=0.66*20*Q^0.51+@sum(aa(i,j):x(i,j)*a(j));m1=@sum(num1(j):x(1,j)*b(j));m2=0.9*m1+@sum(num1(j):x(2,j)*b(j)
帮看下lingo的程序,
model:
sets:
num1/1..8/:a,b;
num2/1..3/:l;
aa(num2,num1):x;
endsets
data:
a=5,7,5,4,6,5,5,3;
b=25,36,32,15,31,28,22,12;
enddata
min=0.66*20*Q^0.51+@sum(aa(i,j):x(i,j)*a(j));
m1=@sum(num1(j):x(1,j)*b(j));
m2=0.9*m1+@sum(num1(j):x(2,j)*b(j));
m3=0.9*m2+@sum(num1(j):x(3,j)*b(j));
46.5+m1>=150;
40.7+m2>=160;
34.7+m3>=170;
28.4+0.9*m3+Q>=180;
22.4+0.81*m3+Q>=190;
@for(num2(i):@bnd(0,l(i),8.68);
@bnd(100,Q,167.8);
@for(aa(i,j):@bin(x(i,j)));
@for(num1(j):@sum(num2(i):x(i,j))

帮看下lingo的程序,model:sets:num1/1..8/:a,b;num2/1..3/:l;aa(num2,num1):x;endsetsdata:a=5,7,5,4,6,5,5,3;b=25,36,32,15,31,28,22,12;enddatamin=0.66*20*Q^0.51+@sum(aa(i,j):x(i,j)*a(j));m1=@sum(num1(j):x(1,j)*b(j));m2=0.9*m1+@sum(num1(j):x(2,j)*b(j)
model:
sets:
num1/1..8/:a,b;
num2/1..3/:l;
aa(num2,num1):x;
endsets
data:
a=5,7,5,4,6,5,5,3;
b=25,36,32,15,31,28,22,12;
enddata
min=0.66*20*Q^0.51+@sum(aa(i,j):x(i,j)*a(j));
m1=@sum(num1(j):x(1,j)*b(j));
m2=0.9*m1+@sum(num1(j):x(2,j)*b(j));
m3=0.9*m2+@sum(num1(j):x(3,j)*b(j));
46.5+m1>=150;
40.7+m2>=160;
34.7+m3>=170;
28.4+0.9*m3+Q>=180;
22.4+0.81*m3+Q>=190;
@for(num2(i):@bnd(0,l(i),8.68));
@bnd(100,Q,167.8);
@for(aa(i,j):@bin(x(i,j)));
@for(num1(j):@sum(num2(i):x(i,j))

线性最优化的LINGO程序举例 这个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实现,y(i)=y(j)时,x(i)不等于x(j)?大哥大姐们:请问用lingo如何实现y(i)=y(j)时,x(i)不等于x(j)?lingo有这个功能吗?我试过了,但是不行,我的现有程序是:MODEL:data:M=7;enddatas lingo求不出可行解程序对应的方程组如上所示,lingo程序如下:model: sets: plan/1..36/;分配方法(堆数)有36种; raw/1..14/:l,total;第二档原料有14种,l是原料长度,total是各个原料的根数; require Lingo求不出可行解程序对应的方程组如上所示,lingo程序如下:model: sets: plan/1..36/;分配方法(堆数)有36种; raw/1..14/:l,total;第二档原料有14种,l是原料长度,total是各个原料的根数; require 请高手帮我找下这个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( lingo程序如何运行 lingo程序出错,MODEL:MAX=x1*y4+x2*y1+x3*y2+x4*y3;data:l,d=?;enddatal,d为所放箱子的长宽;x1*l+y1*d lingo程序:model:sets:product/1..3/:a,b; row/1..5/:c,d,y; num/1..9/:x; endsets其中的product和num该怎么用?还有平时不是用的col么而不是num区别在哪? 帮忙编一下下图的数学建模lingo程序. 任意两点间最短路的lingo程序 lingo程序超出lingo软件规模谢谢你! 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 约束条件 顺序lingo中,约束条件的顺序对结果有什么影响?为什么?程序1model:sets:worker/w1..w5/:;job/j1..j5/:;links(worker,job):c,x;endsetsdata:c=8,6,10,9,12,9,12,7,11,9,7,4,3,5,8,9,5,8,11,8,4,6,7,5,11;enddatamin=@sum(links Lingo 那里出错了啊?model:title 物流仓库选址问题lingo求解程序;sets:store/1..12/:w,s,m;sale/1..12/:d;links(store,sale):C,p,x;endsetsdata:从仓库i向销售中心j运送货物的运送总成本;C=100,80,50,50,60,100,120,90,60,100,120, Lingo@for循环和@if的语句 Lingo新手,不知道该怎么写程序,MODEL:SETS:city/A1..A4/:U;;links(city,city):distance,;quan/1..4/:A;demond/1..4/:D;link(quan,demond):c;ENDSETSDATA:distance=0,34,84,8,34,0,63,7,84,63,0,5,8,7,5,0;d=12,18,23,16;ENDD 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: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;!货栈和