请各位大大看看这个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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 02:18:00
请各位大大看看这个lingo程序哪里出错了?model:sets:I/1..45/:x,y,c,b,t;endsetsdata:c=64,88,193,193,128,120,120,120,110,

请各位大大看看这个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
请各位大大看看这个lingo程序哪里出错了?
model:
sets:
I/1..45/:x,y,c,b,t;
endsets
data:
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,150,150,180,70,120;
b=42,42,48,50,36,36,36,36,36,36,27,75,48,50,42,42,48,50,36,36,36,36,36,36,27,75,48,50,48,50,36,36,27,75,48,50,48,48,50,48,50,48,48,25,45;
t=40,40,50,48,45,45,48,45,40,45,40,45,48,50,40,40,50,48,45,45,48,45,40,45,40,45,48,50,48,50,40,45,40,45,48,50,48,48,50,48,50,48,48,50,48;
enddata
min=@sum(I:y*b*t);
@for(I:x>=0.8);
@for(I:x=0.95);
@sum(I:x*c)>=5600;
end

请各位大大看看这个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
没有语法错误,可以得到结果,你那边有错是什么错误代码?换个版本试试,我空间有下载地址,自个找找.
结果如下:
Global optimal solution found.
Objective value: 70652.13
Extended solver steps: 2
Total solver iterations: 1516
Variable Value Reduced Cost
X( 1) 0.8000000 0.000000
X( 2) 0.8000000 0.000000
X( 3) 0.8000000 0.000000
X( 4) 0.8000000 0.000000
X( 5) 0.8000000 0.000000
X( 6) 0.8000000 0.000000
X( 7) 0.8000000 0.000000
X( 8) 0.8000000 0.000000
X( 9) 0.8000000 0.000000
X( 10) 0.8000000 0.000000
X( 11) 0.8000000 0.000000
X( 12) 0.8000000 0.000000
X( 13) 0.8000000 0.000000
X( 14) 0.8466667 0.000000
X( 15) 0.8000000 0.000000
X( 16) 0.8000000 0.000000
X( 17) 0.8000000 0.000000
X( 18) 0.8000000 0.000000
X( 19) 0.8000000 0.000000
X( 20) 0.8000000 0.000000
X( 21) 0.8000000 0.000000
X( 22) 0.8000000 0.000000
X( 23) 0.8000000 0.000000
X( 24) 0.9000000 0.000000
X( 25) 0.8000000 0.000000
X( 26) 0.8000000 0.000000
X( 27) 0.8000000 0.000000
X( 28) 0.9000000 0.000000
X( 29) 0.8000000 0.000000
X( 30) 0.8000000 0.000000
X( 31) 0.8000000 0.000000
X( 32) 0.9000000 0.000000
X( 33) 0.8000000 0.000000
X( 34) 0.8000000 0.000000
X( 35) 0.8000000 0.000000
X( 36) 0.9000000 0.000000
X( 37) 0.8000000 0.000000
X( 38) 0.8000000 0.000000
X( 39) 0.9000000 0.000000
X( 40) 0.9000000 0.000000
X( 41) 0.8000000 0.000000
X( 42) 0.8000000 0.000000
X( 43) 0.8000000 0.000000
X( 44) 0.8000000 0.000000
X( 45) 0.8000000 0.000000
Y( 1) 0.7600000 0.000000
Y( 2) 0.7600000 0.000000
Y( 3) 0.7600000 0.000000
Y( 4) 0.7600000 0.000000
Y( 5) 0.7600000 0.000000
Y( 6) 0.7600000 0.000000
Y( 7) 0.7600000 0.000000
Y( 8) 0.7600000 0.000000
Y( 9) 0.7600000 0.000000
Y( 10) 0.7600000 0.000000
Y( 11) 0.7600000 0.000000
Y( 12) 0.7600000 0.000000
Y( 13) 0.7600000 0.000000
Y( 14) 0.8043333 0.000000
Y( 15) 0.7600000 0.000000
Y( 16) 0.7600000 0.000000
Y( 17) 0.7600000 0.000000
Y( 18) 0.7600000 0.000000
Y( 19) 0.7600000 0.000000
Y( 20) 0.7600000 0.000000
Y( 21) 0.7600000 0.000000
Y( 22) 0.7600000 0.000000
Y( 23) 0.7600000 0.000000
Y( 24) 0.8550000 0.000000
Y( 25) 0.7600000 0.000000
Y( 26) 0.7600000 0.000000
Y( 27) 0.7600000 0.000000
Y( 28) 0.8550000 0.000000
Y( 29) 0.7600000 0.000000
Y( 30) 0.7600000 0.000000
Y( 31) 0.7600000 0.000000
Y( 32) 0.8550000 0.000000
Y( 33) 0.7600000 0.000000
Y( 34) 0.7600000 0.000000
Y( 35) 0.7600000 0.000000
Y( 36) 0.8550000 0.000000
Y( 37) 0.7600000 0.000000
Y( 38) 0.7600000 0.000000
Y( 39) 0.8550000 0.000000
Y( 40) 0.8550000 0.000000
Y( 41) 0.7600000 0.000000
Y( 42) 0.7600000 0.000000
Y( 43) 0.7600000 0.000000
Y( 44) 0.7600000 0.000000
Y( 45) 0.7600000 0.000000

请各位大大看看这个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 请高手帮我看看lingo软件以下提示是什么意思?可能是哪里出错?由于程序语句太长,太多,就不就不在这里写下了, 请高手帮忙看下这个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:de/1..8/:x,y;fe/1..5/:f;link(fe,de):W;endsetsdata:x=5 7 5 4 6 5 5 3;y=25 36 32 15 31 28 22 12;L=20;enddatamin=@sum(de:x*w(1,j))+@sum(de:x*w(2,j))+@sum(de:x*w(3,j))+@sum(de:x*w(4,j))+@sum(de:x*w(5,j))+ 有没有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程序哪里错了啊····谢谢各位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程序哪里有问题吗?新手很艰难啊,请大家简洁一点说,运行之后总是出现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 数学二次函数题,我写出来了,可第三问的收益我怎么算的是负数?请各位帮我看看哪里出错了. :-@这个表情表示什么意思?请各位大大回答! 请大家看看我这mathematica程序哪里出错了Mersenne[n_Integer]:=Module[{M,i,u=4},If[!Prime Q[n],False,M=2^n-1;For[i=1,i 帮我看看这个程序哪里出错了 怎么输出的是负数#includevoid main(){ int a,b,c;c=a+b;scanf(%d%d,&a,&b);printf(%d,c);} 大神们看看我这个表达式哪里出错了 怎么写都不对 求不定积分解题过程本人学渣,请各位大大帮忙看看 帮忙看下这个lingo程序哪里出错了MODEL:SETS:CUTFA/1..6/:x;CUTFAA/1..11/:y;切割的方法有17种,x表示对应1-6种切割方法的原料钢管的需求量,y表示对应7-17种切割方法的原料钢管的需求量;BUJ/1..3/:n,b;3种钢 请各位大神帮我看看这个指针到底哪里出错了?#include#includeusing namespace std;class point{public:point();point(int xx,int yy){x=xx;y=yy;}point();int getx(){return x;}private:int x,y;};int main(){point *p=new point;point a(2,3);p=&a 请大神看看这个程序的作用是什么? 这个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,