lingo程序求改错sets:mianji/1..24/:s,x,n;endsetsdata:s=1276640 193
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/14 00:26:56
lingo程序求改错
sets:
mianji/1..24/:s,x,n;
endsets
data:
s=1276640 1938396 1276640 1637792 1635150 1938396 1635150 1938396 1470144 1626880 1940352 1940352 1668000 1430000 939231 1575196 1540000 1540000 110050 110700 218325 326600 290390 1171240;
x=86733.939 130129.0809 96313.81587 109023.7773 98820.70489 118164.0872 138466.1177 165968.0001 122726.8403 125782.4755 161979.5544 154073.1681 130617.2637 57842.40806 33534.41497 57881.72657 52043.52683 57836.04266 2311.691221 2325.345008 4623.998729 6917.20135 6940.086128 28940.55948;
enddata
max=@sum(mianji(i):n(i)*x(i));
@for(@sum(mianji(i):s(i)*n(i))
sets:
mianji/1..24/:s,x,n;
endsets
data:
s=1276640 1938396 1276640 1637792 1635150 1938396 1635150 1938396 1470144 1626880 1940352 1940352 1668000 1430000 939231 1575196 1540000 1540000 110050 110700 218325 326600 290390 1171240;
x=86733.939 130129.0809 96313.81587 109023.7773 98820.70489 118164.0872 138466.1177 165968.0001 122726.8403 125782.4755 161979.5544 154073.1681 130617.2637 57842.40806 33534.41497 57881.72657 52043.52683 57836.04266 2311.691221 2325.345008 4623.998729 6917.20135 6940.086128 28940.55948;
enddata
max=@sum(mianji(i):n(i)*x(i));
@for(@sum(mianji(i):s(i)*n(i))
@sum(mianji(i):s(i)*n(i))
lingo的循环程序sets:zones/1..20/:Q,n,m;endsetsdata:Q=156.02 80.45
Lingo MODEL:SETS:\x05site/s1..s13/:x,y;ENDSETSDATA:\x05Y= 53
关于LINGO程序lingo程序如下:sets:a/1..5/:x; endsets data:x=1,2,3,4,5;
求改lingo程序,用sets:endsets
lingo 程序sets:k/1..5/;z/1..8/:m;link(k,z):a,c,l,t,s;endsetsmi
lingo错误model:sets:quarter/1..4/:DEM,RP,OP,INV;endsetsdata:DE
lingo查错model:sets:kinds/1..10/:v,Q,s,N,c_p,d,p;fa/1..3/;link
lingo错误求解model:sets:kinds/1..10/:c_p,d,v,Q,s,N;fa/A1,A2,A3/:
lingo程序求解model:sets:jingkou/1..9/:n;zuobiao/1,2/;links(jingk
sets:num:a,v,t,x,y;endsetsdata:num =1..4;y2=760;vc=1.5;endda
lingo哪错了?MODEL:sets:Quarters/1..4/:a,k,d,c,t,p;endsetsdata:k
lingo错误29sets:sec/1..15/:a,b,c,d,e,f,g,w;endsetsdata:a,b,c,d