请高手帮忙看下这个lingo程序哪里出错了?modelsets:myset/1..8/:T,S;myset1/1..3/:L;link(myset1,myset):x;endsetsdata:T=25 36 32 15 31 28 22 12S=5 7 5 4 6 5 5 3enddatamin=0.66*Q^0.51*20+@sum(myset(j):myset1(i):(@sum(x(i,j))));@sum(myset1(i)

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 01:30:34
请高手帮忙看下这个lingo程序哪里出错了?modelsets:myset/1..8/:T,S;myset1/1..3/:L;link(myset1,myset):x;endsetsdata:T=25

请高手帮忙看下这个lingo程序哪里出错了?modelsets:myset/1..8/:T,S;myset1/1..3/:L;link(myset1,myset):x;endsetsdata:T=25 36 32 15 31 28 22 12S=5 7 5 4 6 5 5 3enddatamin=0.66*Q^0.51*20+@sum(myset(j):myset1(i):(@sum(x(i,j))));@sum(myset1(i)
请高手帮忙看下这个lingo程序哪里出错了?
model
sets:
myset/1..8/:T,S;
myset1/1..3/:L;
link(myset1,myset):x;
endsets
data:
T=25 36 32 15 31 28 22 12
S=5 7 5 4 6 5 5 3
enddata
min=0.66*Q^0.51*20+@sum(myset(j):myset1(i):(@sum(x(i,j))));
@sum(myset1(i):L(i))=20;
@sum(myset(j):x(1,j)*S(j))>150-34.19483;
@sum(myset(j):0.9*x(1,j)*S(j))+@sum(myset(j):x(2,j)*S(j))>160-26.67916;
@sum(myset(j):0.81*x(1,j)*S(j))+@sum(myset(j):0.9*x(2,j)*S(j))

请高手帮忙看下这个lingo程序哪里出错了?modelsets:myset/1..8/:T,S;myset1/1..3/:L;link(myset1,myset):x;endsetsdata:T=25 36 32 15 31 28 22 12S=5 7 5 4 6 5 5 3enddatamin=0.66*Q^0.51*20+@sum(myset(j):myset1(i):(@sum(x(i,j))));@sum(myset1(i)
model:!少了分号;
sets:
myset/1..8/: T,S;
myset1/1..3/: L;
link(myset1,myset): x;
endsets
data:
T=25 36 32 15 31 28 22 12;!这里缺少一个分号;
S=5 7 5 4 6 5 5 3; !这里缺少一个分号;
enddata
min=0.66*Q^0.51*20+@sum(myset(j):myset1(i):(@sum(x(i,j))));!这里语法错,但是不是很清楚楼主的意思所以无法修改;
!因为这里无法修改,所以以下的程序也无法运行查错,建议楼主在问题补充里将以上错误改正再试试;
@sum(myset1(i):L(i))=20;
@sum(myset(j):x(1,j)*S(j))>150-34.19483;
@sum(myset(j):0.9*x(1,j)*S(j))+@sum(myset(j):x(2,j)*S(j))>160-26.67916;
@sum(myset(j):0.81*x(1,j)*S(j))+@sum(myset(j):0.9*x(2,j)*S(j))

请高手帮忙看下这个lingo程序哪里出错了?modelsets:myset/1..8/:T,S;myset1/1..3/:L;link(myset1,myset):x;endsetsdata:T=25 36 32 15 31 28 22 12S=5 7 5 4 6 5 5 3enddatamin=0.66*Q^0.51*20+@sum(myset(j):myset1(i):(@sum(x(i,j))));@sum(myset1(i) 帮忙看下这个lingo程序哪里出错了MODEL:SETS:CUTFA/1..6/:x;CUTFAA/1..11/:y;切割的方法有17种,x表示对应1-6种切割方法的原料钢管的需求量,y表示对应7-17种切割方法的原料钢管的需求量;BUJ/1..3/:n,b;3种钢 请高手帮我看看lingo软件以下提示是什么意思?可能是哪里出错?由于程序语句太长,太多,就不就不在这里写下了, matlab高手帮忙看程序!我要画matlab图,f 随x,y变化,怎么不会出现图形呢,程序如下,请大师帮忙看程序哪里出错了,clcx=0:0.2:10;y=x;f=x.^5.*y.^5.*0.1.^(y-1).*0.3.^(y-1).*0.5.^(y-1).*0.8.^(y-1).*0.9.^(y-1).*exp(-x.*(0.1.^y lindo程序 帮忙看下哪里出错了!急用!Max 175x1+300x2+120x3+450x4+3.5x5s.t.x1+x2+x3+1.5x4 帮忙看哈下面这个lingo程序哪里有问题,显示第十行出错,求指导~model:sets:season/1..4/:x;fire/2,3,4/:y;endsetsmin=120+x(1)+x(2)+x(3)+x(4);120*65+x(1)*60>=6000;((120+x(1))*0.85-y(2))*65+60*x(2)>=7500;(((120+x(1))*0.85-y(2)+x(2))*0. 请高手帮忙看下我的LINGO程序为什么老是提示第36行出问题,model:sets:cities/1..10/:level;!level(!)=the level of city;link( cities,cities):distance,the distance matrix;x;!x(i,j)=1 if we use link i,j;endsets data:distance marix,it ne 用c编写一个程序,总是出错,请大家帮忙看下哪里有错误?#include #include #include #include #include int main(){int fd ;if ((fd = serialOpen (/dev/ttyAMA0,115200)) < 0){fprintf (stderr,Unable to open serial device:%s ,strerror ( 请高手帮我找下这个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:I/1..45/:x,y,c,b,t;endsetsdata:c=64,88,193,193,128,120,120,120,110,120,64,247,190,210,70,85,192,195,128,120,120,120,110,160,70,256,190,210,190,205,110,160,70,256,190,210,190,190,210,200 Eat a balanced diet can help you to stay healthy . 改错.我看不出错在哪里,请帮忙看看. 有没有LINGO高手呀,帮我看看这个程序哪里出错了,MODEL:SETS:WH/W1..W18/:AI,BI,X; ENDSETSDATA:AI=0,0,0.4,1.8,1.3,1.5,2.2,0,-1.2,0.9,1.2,0,0,0.8,1.8,-3,1.4,0;BI=0,3,1,2,2,1,1,0,2,1,1,0,0,2,2,1,3,0; ENDDATAMAX=@SUM(WH:X(I)*AI(I));@FOR(WH: 菜鸟求lingo下题程序 请大家帮忙看下这个是什么动物, 请专家帮忙看下我这个是什么石 请在帮忙看下这个:写出下列反应机制. 大家能帮忙看看这个lingo程序哪里有问题吗?新手很艰难啊,请大家简洁一点说,运行之后总是出现error code 24,说z1是invalid set namemodel:sets:error/1..4/:z1,z2;weight/1..4/:w;datas/1..4/:d1;link(datas,datas):dd,aa;ends model: min=800*x11+1000*x12+1200*x13+700*x21+500*x22+700*x23+800*x31+600*x32+500*x33+500*x41+600*x4哪位可以帮忙看下这个lingo程序有什么问题?为什么我把它求出的变量值带入目标函数得到的结果和它自动求出的目