lingo编一个程序 sets:supplyment/s1..s20/:supply;receiver/r1..r20/:demand;links(supplyment,receiver ):cost,v,s;endsetsmin=@sum(links:cost*s);@for(receiver(J):@sum(supplyment(I):v(I,J))=demand(J));@for(supplyment(I):@sum(receiver(J):v(I,J))

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 17:26:43
lingo编一个程序sets:supplyment/s1..s20/:supply;receiver/r1..r20/:demand;links(supplyment,receiver):cost,v

lingo编一个程序 sets:supplyment/s1..s20/:supply;receiver/r1..r20/:demand;links(supplyment,receiver ):cost,v,s;endsetsmin=@sum(links:cost*s);@for(receiver(J):@sum(supplyment(I):v(I,J))=demand(J));@for(supplyment(I):@sum(receiver(J):v(I,J))
lingo编一个程序
sets:
supplyment/s1..s20/:supply;
receiver/r1..r20/:demand;
links(supplyment,receiver ):cost,v,s;
endsets
min=@sum(links:cost*s);
@for(receiver(J):
@sum(supplyment(I):v(I,J))=demand(J));
@for(supplyment(I):
@sum(receiver(J):v(I,J))

lingo编一个程序 sets:supplyment/s1..s20/:supply;receiver/r1..r20/:demand;links(supplyment,receiver ):cost,v,s;endsetsmin=@sum(links:cost*s);@for(receiver(J):@sum(supplyment(I):v(I,J))=demand(J));@for(supplyment(I):@sum(receiver(J):v(I,J))
最后一句 集名后面带上下标

小弟编了一个超简单的lingo程序,不知错在哪里~望指教~大谢!MODEL:SETS:warehouse/w1,w2,w3/:w;costomer/v1..v4/:d;links/warehouse,costomer/:c,x;ENDSETSDATA:c=6,22,6,20;2,18,4,16;14,8,20,10;d=9,18,15,18;w=21,22,27;ENDDATAMIN=@SUM(links lingo编一个程序 sets:supplyment/s1..s20/:supply;receiver/r1..r20/:demand;links(supplyment,receiver ):cost,v,s;endsetsmin=@sum(links:cost*s);@for(receiver(J):@sum(supplyment(I):v(I,J))=demand(J));@for(supplyment(I):@sum(receiver(J):v(I,J)) lingo中sets是什么? 帮忙编一下下图的数学建模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编一下这个程序.谢谢! 请教lingo程序已知两点坐标(0.54396095,2.119993265),(0.69667726,2.031854138)求其余八个点中到已知两点距离最短的点.我是这样编的,不过报错model:sets:chshi/1..8/:a,b;juli/1,2..8/:c;endsetsmin=@smin(6371*@acos(@c 帮忙看下一个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程序lingo程序如下:sets:a/1..5/:x; endsets data:x=1,2,3,4,5;enddata 若知道a(i):x(i)=5,如何写出程序求出i的值 lingo程序如何运行 lingo程序超出lingo软件规模谢谢你! 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 一个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:part/1..7/:x,f,cost,ub,lb;endsetsdata:cost=25 20 20 50 50 10 25;ub=0.125 0.375 0.125 0.125 1.875 20 0.935;lb=0.075 0.225 0.075 0.075 1.125 12 0.5625;enddatacalc:f(1)=(8721*(-x(3)/(x(1)-x(2))) 为什么这个lingo程序运行不成功,我希望能够在满足以下四个约束条件的情况下得到一个32*40的0-1矩阵~model:sets:a/1..32/:c; b/1..40/; link(a,b):e;endsetsdata:c=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 如果我们程序编错了,LINGO会有什么提示呢?怎么样才知道我们这样编写程序的准确性呢? 用数学模型lingo程序做, 一个lingo程序问题:s=@sum(number(I) | I #le# 5:x);表示啥意思?