我的lingo程序报161错误!model:sets:cd/1..3/:a;xd/1..4/:b;links(cd,xd):c,x;px/1..13/:d1,d2;endsetsdata:a=300 200 400;b=200 100 450 250;c=5 2 6 73 5 4 64 5 2 3;enddatamin=d2(13);@for(cd(i):@sum(xd(j):x(i,j))=a(i));@for(xd(j):@sum(cd(j):x(i,j))

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 09:24:00
我的lingo程序报161错误!model:sets:cd/1..3/:a;xd/1..4/:b;links(cd,xd):c,x;px/1..13/:d1,d2;endsetsdata:a=3002

我的lingo程序报161错误!model:sets:cd/1..3/:a;xd/1..4/:b;links(cd,xd):c,x;px/1..13/:d1,d2;endsetsdata:a=300 200 400;b=200 100 450 250;c=5 2 6 73 5 4 64 5 2 3;enddatamin=d2(13);@for(cd(i):@sum(xd(j):x(i,j))=a(i));@for(xd(j):@sum(cd(j):x(i,j))
我的lingo程序报161错误!
model:
sets:
cd/1..3/:a;
xd/1..4/:b;
links(cd,xd):c,x;
px/1..13/:d1,d2;
endsets
data:
a=300 200 400;
b=200 100 450 250;
c=5 2 6 7
3 5 4 6
4 5 2 3;
enddata
min=d2(13);
@for(cd(i):@sum(xd(j):x(i,j))=a(i));
@for(xd(j):@sum(cd(j):x(i,j))

我的lingo程序报161错误!model:sets:cd/1..3/:a;xd/1..4/:b;links(cd,xd):c,x;px/1..13/:d1,d2;endsetsdata:a=300 200 400;b=200 100 450 250;c=5 2 6 73 5 4 64 5 2 3;enddatamin=d2(13);@for(cd(i):@sum(xd(j):x(i,j))=a(i));@for(xd(j):@sum(cd(j):x(i,j))
model:
sets:
cd/1..3/:a;
xd/1..4/:b;
links(cd,xd):c,x;
px/1..13/:d1,d2;
endsets
data:
a=300 200 400;
b=200 100 450 250;
c=5 2 6 7
3 5 4 6
4 5 2 3;
enddata
min=d2(13);
@for(cd(i):@sum(xd(j):x(i,j))=a(i));
@for(xd(j):@sum(cd(i):x(i,j))

我的lingo程序报161错误!model:sets:cd/1..3/:a;xd/1..4/:b;links(cd,xd):c,x;px/1..13/:d1,d2;endsetsdata:a=300 200 400;b=200 100 450 250;c=5 2 6 73 5 4 64 5 2 3;enddatamin=d2(13);@for(cd(i):@sum(xd(j):x(i,j))=a(i));@for(xd(j):@sum(cd(j):x(i,j)) Lingo报错程序报错,一下午也找不出错误在哪里.感觉错误应该在目标函数和约束中.题目中的三个约束是:x(1)+.+x(10) 线性最优化的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高手!关于父集函数的表示~!sets: box_area/1..6/; box_kind/1..4/; bay_area/1..3/; allowed(box_area,bay_area,box_kind):e; endsets我有这么个程序.lingo一直报错,说是出错在了allowed那里~求高手修改!~万分感谢~ 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程序如何运行 cool mode ,mormal mode,silent mode .是我电脑上F11键上有个小风扇的图标. 求教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怎么解决TSP问题比如我已知A,B,C,D.之间的距离,求最小解,写出程序, 帮忙编一下下图的数学建模lingo程序. 任意两点间最短路的lingo程序 lingo程序超出lingo软件规模谢谢你! 初学建模,用lingo有些不会我自己写的程序如下,但好像有些错误,倒数第二排的错误就不知道怎么解决model:sets: nodes/n0..n9/; liuliang(nodes,nodes):C,X;endsetsdata:C=0 12 20 0 0 0 0 0 0 0 0 0 0 12 0 0 0 0 0 0 用数学模型lingo程序做, 求LINGO能手帮助解决,求LINGO老师,初学不懂望指教.如果解决两边我都给分,非线性规划,LINGO程序 最后解题时运行LINGO出现错误,error code108,我用的LINGO11.0,应该不是版本低吧?具体程序如下MODEL:SETS:SHOP/1..8/;FACTORY/1..3/;CANGKU/1..5/:KRL;WUZI/1..10/:TJ,KCF,ZXQL,Q,N;LINKS(SHOP,WUZI):XQL;LINKS1(FACTORY,WUZI):NCL,DJ,X;LIN