lingo 程序改错MODEL:A 3 RDC 27 Vendor Transportation Problem;SETS:Import RDCS and vendors from Excel;RDCS:CAPACITY;VENDORS :DEMAND;LINKS( RDCS,VENDORS):COST,VOLUME;ENDSETSThe objective;MIN = @SUM( LINKS( I,J):COST( I,J) * VOLUME( I,J));The dema

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 00:23:15

lingo 程序改错MODEL:A 3 RDC 27 Vendor Transportation Problem;SETS:Import RDCS and vendors from Excel;RDCS:CAPACITY;VENDORS :DEMAND;LINKS( RDCS,VENDORS):COST,VOLUME;ENDSETSThe objective;MIN = @SUM( LINKS( I,J):COST( I,J) * VOLUME( I,J));The dema
lingo 程序改错
MODEL:
A 3 RDC 27 Vendor Transportation Problem;
SETS:
Import RDCS and vendors from Excel;
RDCS:CAPACITY;
VENDORS :DEMAND;
LINKS( RDCS,VENDORS):COST,VOLUME;
ENDSETS
The objective;
MIN = @SUM( LINKS( I,J):
COST( I,J) * VOLUME( I,J));
The demand constraints;
@FOR( VENDORS( J):
@SUM( RDCS( I):
VOLUME( I,J)) = DEMAND( J));
The capacity constraints;
@FOR( RDCS( I):
@SUM( VENDORS( J):VOLUME( I,J))

lingo 程序改错MODEL:A 3 RDC 27 Vendor Transportation Problem;SETS:Import RDCS and vendors from Excel;RDCS:CAPACITY;VENDORS :DEMAND;LINKS( RDCS,VENDORS):COST,VOLUME;ENDSETSThe objective;MIN = @SUM( LINKS( I,J):COST( I,J) * VOLUME( I,J));The dema
!A 3 RDC 27 Vendor Transportation Problem;
这句最后一个分号用了中文状态下的输入导致了sets部分代码被当做注释处理.
LINKS( RDCS,VENDORS):COST,VOLUME; 这句第一个逗号也是用了中文状态下输入的.要改成英文状态下输入.
还有就是集合定义是要表明元素个数.
RDCS/1..10/:CAPACITY; 表示RDCS集合有10个元素标号为1至10,CAPACITY是该集合的一个属性.跟数组有点类似.
各个错误代码的含义可到本人的百度空间日志看看.

lingo 程序改错MODEL:A 3 RDC 27 Vendor Transportation Problem;SETS:Import RDCS and vendors from Excel;RDCS:CAPACITY;VENDORS :DEMAND;LINKS( RDCS,VENDORS):COST,VOLUME;ENDSETSThe objective;MIN = @SUM( LINKS( I,J):COST( I,J) * VOLUME( I,J));The dema lingo程序:model:sets:product/1..3/:a,b; row/1..5/:c,d,y; num/1..9/:x; endsets其中的product和num该怎么用?还有平时不是用的col么而不是num区别在哪? I can make a model plane改错 they will made a model plane.改错 I make a model palane yesterday改错 求教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 码流提取问题;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..2/:a;col/1..3/:b,x;link(row,col):c;ENDSETSDATA:a=8,6;b=2,3,1;c=1,4,2,3,2,0;ENDDATAmin=@SUM(col:b*x);@FOR(row(i):@SUM(col(j):c(i,j)*x(j))>=a(i));END 这个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程序运行不成功,我希望能够在满足以下四个约束条件的情况下得到一个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高手帮忙,程序出现Unexpected jacobian overflow错误model:sets: time/1..7/:t,w; power/1..4/:pmax,pmin,TC,C,MC,TN; link(time,power):p,A,B,n;endsetsdata: t=6,3,3,2,4,4,2; w=10000,30000,22000,33000,22000,27000,16000; pmin=750,1000,1200,1800; 谁能帮我修改一下这个lingo程序啊啊,MODEL:sets:demand/1..3/:g;supply/1..4/:;link(demand,supply):a,x,b,y,c,z,d,w,ea,eba,ebb,ec,ed,q;endsetsdata:x=2.6 13.2 2.8 0.21.1 20.3 1.5 0.96.9 20.2 1.2 1.4;y=116 395 19 5246 143 17 48386 106 40 91;z=0 LINGO运行时,总是提示:subscript out of range on attribute,程序如下model:sets:chang/1..3/:;cangku/1..5/:;wuzi/1..10/:t,c;dian/1..8/:;links1(cangku,wuzi):s,d;links2(dian,wuzi):u;links3(chang,wuzi):y;links4(chang,dian):a,x;endsetsdata:c=80,1 关于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程序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程序改错 看一眼来@@model:sets:cities/v4,v1,v2,v3,v5,v6,v7,v9,v10,v11,v8/;roads(cities,cities):p,w,x;endsetsdata:p=函数;w=函数;enddatan=@size(cities);min=@sum(roads:w*x);@for(cities(i)|i#ne#l#and#i#ne#n:@sum(cities(j):p(i,j)*x(i,j 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,