LINGO程序错误在哪?model:sets:bumen/1..7/;person/1..8/;assign(bumen,person):a,x;endsetsdata:a=5.9876,3.7781,3.7781,6.5162,6.5162,5.6671,5.6671;enddatamin=(21*0.6961*Xi1-a)^2+(21*0.4445*Xi2-a)^2+(21*0.4445*Xi3-a)^2+(21*0.8750*Xi4-a)^2+(21*0.8750*

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/21 03:21:08
LINGO程序错误在哪?model:sets:bumen/1..7/;person/1..8/;assign(bumen,person):a,x;endsetsdata:a=5.9876,3.7781

LINGO程序错误在哪?model:sets:bumen/1..7/;person/1..8/;assign(bumen,person):a,x;endsetsdata:a=5.9876,3.7781,3.7781,6.5162,6.5162,5.6671,5.6671;enddatamin=(21*0.6961*Xi1-a)^2+(21*0.4445*Xi2-a)^2+(21*0.4445*Xi3-a)^2+(21*0.8750*Xi4-a)^2+(21*0.8750*
LINGO程序错误在哪?
model:
sets:
bumen/1..7/;
person/1..8/;
assign(bumen,person):a,x;
endsets
data:
a=5.9876,3.7781,3.7781,6.5162,6.5162,5.6671,5.6671;
enddata
min=(21*0.6961*Xi1-a)^2+(21*0.4445*Xi2-a)^2+(21*0.4445*Xi3-a)^2+(21*0.8750*Xi4-a)^2+(21*0.8750*Xi5-a)^2+(21*0.6667*Xi6-a)^2+(21*0.6667*Xi7-a)^2;
X21+X51+X71

LINGO程序错误在哪?model:sets:bumen/1..7/;person/1..8/;assign(bumen,person):a,x;endsetsdata:a=5.9876,3.7781,3.7781,6.5162,6.5162,5.6671,5.6671;enddatamin=(21*0.6961*Xi1-a)^2+(21*0.4445*Xi2-a)^2+(21*0.4445*Xi3-a)^2+(21*0.8750*Xi4-a)^2+(21*0.8750*
我知道了…在题目中变量a表示的是一个7*8的矩阵,而你给a的赋值是1*7的矩阵…所以这个变量有问题.同时对于变量x的表达方式上也有问题.变量x的表达方法应为x(i,j)表示Xi,j.
但因为不知道题目的原意所以不能帮助修改程序.

在lingo最优化程序中,总说模型定义错误,还有15号错误,这是怎么回事,要怎么改,想了很久也没想出哪错model:sets:head/1..10/:;tail/1..10/:;links(head,tail):q,w;endsetsdata:w=0 0.8 0.5 0.9 1.2 1.4 1.2 1.6 1.7 2.20.8 0 0.9 LINGO程序错误在哪?model:sets:bumen/1..7/;person/1..8/;assign(bumen,person):a,x;endsetsdata:a=5.9876,3.7781,3.7781,6.5162,6.5162,5.6671,5.6671;enddatamin=(21*0.6961*Xi1-a)^2+(21*0.4445*Xi2-a)^2+(21*0.4445*Xi3-a)^2+(21*0.8750*Xi4-a)^2+(21*0.8750* lingo利用for循环,有错误1 lingo有没有真为1这么一说2 @for(lianxi(i,j)| i #NE# j:(T(i)#EQ#1)*@floor((i+4)/5) #NE# (T(j)#EQ#1)*@floor((j+4)/5)); (j+4)/5))); 这句话哪有错误.整个程序是model:sets:jiaoshi/1..45/:dianliang,zuowei,K 这个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:product/1..3/:a,b; row/1..5/:c,d,y; num/1..9/:x; endsets其中的product和num该怎么用?还有平时不是用的col么而不是num区别在哪? lingo中的错误提示在哪找?以下为所写程序,MODEL:sets:num_i/1..8/:x,k;num_p/9..22/:x,k;num_q/23..46/:x,k;num_j/1..3/:n,m,l;endsetsdata:n=43;59,39,41,27,28,34,21,24,24,20,25,21,23,21,18,31,23,22,59,18,25,35,29,30,42,28,42,45,49,50,64,52,63 请高手帮我找下这个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: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程序错在哪了?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程序错在哪?model:sets:num_i/1..4/;num_j/1..4/;num_t/1..7/;link(num_i,num_j,num_t):x;link2(num_i,num_j):s;endsetsdata:s=1000,800,600,500,1500,800,700,600,1300,900,700,400,1000,800,700,500;enddata[obj]max=@sum(num_i(i):@sum(num_j(j):@sum(n 请哪位高手看看这个LINGO程序哪有错误model:sets:people/1..7/:c,x;endsetsdata:c=16 15 16 19 14 12 18;enddatamin=@sum(people:x);@sum(people(i)|i#le#5:x(i))>16;@sum(people(i)|i#le#4#and#i#ge#7#and#i#le#7:x(i))>15;@sum(people(i)|i#le#3#and#i 我在使用lingo时出现THE MODEL DIMENSIONS EXCEED THE CAPACITY OF THIS VERSION.哪位大虾可以告诉我是什么地方出了问题.如何解决,程序应该不用出错.谢谢.程序如下:model:title CUMCM-2003B-01;sets:cai / 1..10 /:crate, 求教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: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是出现 unable to solve ...no model currently in momery 是什么意 这个lingo程序问题到底出在哪里,是不是这个数学问题无法用LINGO求解呢?model:sets:p/1..20/:x,y,t,m,a,b,c;!定义集及其属性;endsetsinit:x=400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400,400;!初 lingo程序超出lingo软件规模谢谢你!