lingo程序错了...model:sets:renshu/1..4/:x,v;xianliang/1..4/:b;link(xianliang,renshu):a;endsetsdata:v=1,1,1,1;b=21,18,16,29;a=1,1,0,0,0,1,1,0,0,0,1,1,1,0,0,1;enddatamin=@sum(renshu:x*v);@for(xianliang(i):@sum(renshu(j):a(i,j)*x(j))

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 19:24:47
lingo程序错了...model:sets:renshu/1..4/:x,v;xianliang/1..4/:b;link(xianliang,renshu):a;endsetsdata:v=1,1

lingo程序错了...model:sets:renshu/1..4/:x,v;xianliang/1..4/:b;link(xianliang,renshu):a;endsetsdata:v=1,1,1,1;b=21,18,16,29;a=1,1,0,0,0,1,1,0,0,0,1,1,1,0,0,1;enddatamin=@sum(renshu:x*v);@for(xianliang(i):@sum(renshu(j):a(i,j)*x(j))
lingo程序错了...
model:
sets:
renshu/1..4/:x,v;
xianliang/1..4/:b;
link(xianliang,renshu):a;
endsets
data:
v=1,1,1,1;
b=21,18,16,29;
a=1,1,0,0,0,1,1,0,0,0,1,1,1,0,0,1;
enddata
min=@sum(renshu:x*v);
@for(xianliang(i):
@sum(renshu(j):a(i,j)*x(j))

lingo程序错了...model:sets:renshu/1..4/:x,v;xianliang/1..4/:b;link(xianliang,renshu):a;endsetsdata:v=1,1,1,1;b=21,18,16,29;a=1,1,0,0,0,1,1,0,0,0,1,1,1,0,0,1;enddatamin=@sum(renshu:x*v);@for(xianliang(i):@sum(renshu(j):a(i,j)*x(j))
语法上倒是没什么错误 数据也不必非要按行写
model:
sets:
renshu/1..4/:x,v;
xianliang/1..4/:b;
link(xianliang,renshu):a;
endsets
data:
v=1,1,1,1;
b=21,18,16,29;
a=1,1,0,0,0,1,1,0,0,0,1,1,1,0,0,1;
enddata
min=@sum(renshu:x*v);
@for(xianliang(i):
@sum(renshu(j):a(i,j)*x(j))

这个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语句(0-1变量)是不是写错了啊求大神指点!运行出的结果是没有计算运费的最优方案,但是不知道错在哪里…本程序是模型Ⅰ中张三的程序;model:最优网购问题;sets:定义变量部 用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程序错在哪了?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:people/1..6/:c,x;endsetsdata:c=20 30 25 10 20 15;enddatamax=@sum(people:c*x);@sum(people(i)|i#le#3:x(i))25*x3+15*x6;@for(people:@gin(x));end我的本意是接出来后所有解都要大于1的.希 大家看看这个lingo程序哪里错了啊····谢谢各位model:title first stepsets:demand/1,2/:dem;supply/1..5/:sup;link(supply,demand):,d,c;endsetsmin=@sum(link(i,j):d(i,j)*c(i,j));@for(suply(i):@sum(demand(j):c(i,j))dem(j));data:sup=640,390 lingo程序,这里哪里错了,提示是错误11.data那里有错吗.model:3发点4收点运输问题;集合部分;sets:warehouses/wh1..wh3/:capacity;vendors/v1..v4/:demand;links(warehouses,vendors):cost,volume;endsets目标函数;min=@sum(links:cost 请问一下这个LINGO程序错在哪里了啊.为什么老是不执行model:飞机排队问题;sets:planes:passengerALL,passengerEXHANGE,PDT,PAT,delay,MD;time:e;links(planes,time):cost,sequence;endsets目标函数;min=@sum(links:cost*sequence);飞 小弟编了一个超简单的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最优化程序中,总说模型定义错误,还有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时出现THE MODEL DIMENSIONS EXCEED THE CAPACITY OF THIS VERSION.哪位大虾可以告诉我是什么地方出了问题.如何解决,程序应该不用出错.谢谢.程序如下:model:title CUMCM-2003B-01;sets:cai / 1..10 /:crate, lingo程序如何运行 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程序超出lingo软件规模谢谢你! 虽能帮我看看lingo程序哪里错了model:sets:a/1..3/:d;b/1..3/;c(a,b):f;endsets@for(a:@bnd(0,d,8));@for(c:@bnd(0,f,5));max=@sum(a(j):@sum(b(i)|i#lt#d(j):f(i,j)+d(j)));end应该是目标函数那行错了,但我觉得没什么逻辑上的错误 如果我们程序编错了,LINGO会有什么提示呢?怎么样才知道我们这样编写程序的准确性呢? 问一个LINGO的问题,这个程序有一行又语法错误,标出来了,那一行哪里错了啊MODEL:SETS:XIA/A,B/:X1,Y1,S;GO/1..6/:X2,Y2,D;LI(XIA,GO):M,YU;ENDSETSDATA:X1=5 2;Y1=1 7;X2=1.25 8.75 0.5 5.75 3 7.25;Y2=1.25 0.75 4.75 5 6.5 7.75;D=3 5 4 lingo中model is illdefined什么意思?