lingo程序有错误,model:模型4.2;sets:hotel/1..10/:a;room/1..6/:d;link(room,hotel):x,n;endsetsdata:d=83 54 19 118 69 43;n=0 50 30 0 30 2085 55 0 0 0 050 24 0 27 0 0 50 45 0 0 0 070 40 0 0 0 00 40 30 40 30 050 0 30 40 0 040 40 0 0 45 00 0 60 0 0 6

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 07:24:14

lingo程序有错误,model:模型4.2;sets:hotel/1..10/:a;room/1..6/:d;link(room,hotel):x,n;endsetsdata:d=83 54 19 118 69 43;n=0 50 30 0 30 2085 55 0 0 0 050 24 0 27 0 0 50 45 0 0 0 070 40 0 0 0 00 40 30 40 30 050 0 30 40 0 040 40 0 0 45 00 0 60 0 0 6
lingo程序有错误,
model:模型4.2;
sets:
hotel/1..10/:a;
room/1..6/:d;
link(room,hotel):x,n;
endsets
data:
d=83 54 19 118 69 43;
n=0 50 30 0 30 20
85 55 0 0 0 0
50 24 0 27 0 0
50 45 0 0 0 0
70 40 0 0 0 0
0 40 30 40 30 0
50 0 30 40 0 0
40 40 0 0 45 0
0 0 60 0 0 60
0 0 100 0 0 0;
enddata
min=@sum(hotel:a(i));
@for(link|i#le#3:x

lingo程序有错误,model:模型4.2;sets:hotel/1..10/:a;room/1..6/:d;link(room,hotel):x,n;endsetsdata:d=83 54 19 118 69 43;n=0 50 30 0 30 2085 55 0 0 0 050 24 0 27 0 0 50 45 0 0 0 070 40 0 0 0 00 40 30 40 30 050 0 30 40 0 040 40 0 0 45 00 0 60 0 0 6
你写的几乎每句都有严重问题 我没法给你改 你自己把集循环函数每个集名和变量后面都加上下标 如果感觉有问题 那就自己改一下

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: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: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程序有错误,model:模型4.2;sets:hotel/1..10/:a;room/1..6/:d;link(room,hotel):x,n;endsetsdata:d=83 54 19 118 69 43;n=0 50 30 0 30 2085 55 0 0 0 050 24 0 27 0 0 50 45 0 0 0 070 40 0 0 0 00 40 30 40 30 050 0 30 40 0 040 40 0 0 45 00 0 60 0 0 6 在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: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 约束条件 顺序lingo中,约束条件的顺序对结果有什么影响?为什么?程序1model:sets:worker/w1..w5/:;job/j1..j5/:;links(worker,job):c,x;endsetsdata:c=8,6,10,9,12,9,12,7,11,9,7,4,3,5,8,9,5,8,11,8,4,6,7,5,11;enddatamin=@sum(links 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: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程序,这里哪里错了,提示是错误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程序的错误!下面是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语句(0-1变量)是不是写错了啊求大神指点!运行出的结果是没有计算运费的最优方案,但是不知道错在哪里…本程序是模型Ⅰ中张三的程序;model:最优网购问题;sets:定义变量部 lingo问题,谁帮我运行下这个程序,有错误的话帮我看看model:sets:xcs/1..20/:A,m,n,q;ccs/1..2/:x;link(xcs,ccs):c,b;endsetsdata:A=300,320,340,360,380,400,440,460,500,540,480,440,380,340,280,200,160,80,60,40;m=16,16,16,16,16,16,16,16,16, 用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求不出可行解程序对应的方程组如上所示,lingo程序如下:model: sets: plan/1..36/;分配方法(堆数)有36种; raw/1..14/:l,total;第二档原料有14种,l是原料长度,total是各个原料的根数; require Lingo求不出可行解程序对应的方程组如上所示,lingo程序如下:model: sets: plan/1..36/;分配方法(堆数)有36种; raw/1..14/:l,total;第二档原料有14种,l是原料长度,total是各个原料的根数; require 有关lingo的一个错误程序 model;sets:row/1,2,3,4/:b;arrange/1,2,3,4,5/:x,p;numb/1,2,3/:c;link1(row,arrange):a1;link2(numb,arrange):a2;endsetsdata:p=16,13,15,20,20;b=30,35,30,40;c=20,25,20;a1=7,1,3,5,2,3,4,4,2,5,3,2,3,5,3,2,5,6,3,5;a2=1,2,3,1,2 我的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))