欢迎来到天天文库
浏览记录
ID:14021844
大小:60.00 KB
页数:6页
时间:2018-07-25
《2014数学模型实验7》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、数学模型实验—实验报告7学院:数学与计算机学院专业:电气信息类(计算机类)姓名:王赛赛学号:___2012436138实验时间:__2014年5月实验地点:主楼402一、实验项目:Lingo编程求解有关模型二、实验目的和要求a)熟练掌握Lingo语言b)通过Lingo编程求解模型三、实验内容1、Lingo编程求解“原油采购与加工”模型(应用第三种解法)2、Lingo编程求解“饮料的生产批量问题”模型3、Lingo编程求解“钢管下料”问题(2)要求:1)对每行命令进行注解;2)分析输出结果model
2、:max=4.8*(x11+x21)+5.6*(x12+x22)-5000*z2-9000*z3-12000*z4;x11+x12<=500+x;x21+x22<=1000;x<=1500;x11/(x11+x21)>=0.5;x12/(x12+x22)>=0.6;z1<=y1;z2<=y1+y2;z3<=y2+y3;z4<=y3;z1+z2+z3+z4=1;y1+y2+y3=1;@bin(y1);@bin(y2);@bin(y2);x=500*z2+1000*z3+1500*z4;endLoca
3、loptimalsolutionfound.Objectivevalue:4800.000Objectivebound:4800.000Infeasibilities:0.1136868E-14Extendedsolversteps:2Totalsolveriterations:313VariableValueX110.000000X210.000000X122000.000X221000.000Z20.000000Z30.000000Z41.000000X1500.000Z10.000000Y1
4、0.000000Y20.000000Y31.000000RowSlackorSurplus14800.00020.00000030.00000040.00000050.00000060.6666667E-0170.00000080.00000091.000000100.000000110.000000120.000000130.000000sets:periods/1..4/:s,c,h,d,m,x,y,w;endsetsdata:s=8888;!每次生产准备费用;c=5.05.15.45.5;!
5、每件生产费用;h=0.20.20.20.2;!单件生产库存费用;d=15253525;!产品需求数量;m=30404520;!生产能力;enddatamin=@sum(periods:s*w+c*x+h*y);x(1)-d(1)=y(1);@for(periods(t)
6、t#gt#1:y(t-1)+x(t)-d(t)=y(t));@for(periods:x7、ivebound:554.0000Infeasibilities:0.000000Extendedsolversteps:0Totalsolveriterations:0VariableValueReducedCostS(1)8.0000000.000000S(2)8.0000000.000000S(3)8.0000000.000000S(4)8.0000000.000000C(1)5.0000000.000000C(2)5.1000000.000000C(3)5.4000000.000000C(8、4)5.5000000.000000H(1)0.20000000.000000H(2)0.20000000.000000H(3)0.20000000.000000H(4)0.20000000.000000D(1)15.000000.000000D(2)25.000000.000000D(3)35.000000.000000D(4)25.000000.000000M(1)30.000000.000000M(2)40.000000.000000M(3)45.000000.000000M(4)20.009、0000.000000X(1)30.000000.000000X(2)40.000000.000000X(3)30.000000.000000X(4)0.0000000.000000Y(1)15.000000.000000Y(2)30.000000.000000Y(3)25.000000.000000Y(4)0.0000005.800000W(1)1.0000008.000000W(2)1.0000004.000000W(3)1.0000008.000000W(4)0.000000
7、ivebound:554.0000Infeasibilities:0.000000Extendedsolversteps:0Totalsolveriterations:0VariableValueReducedCostS(1)8.0000000.000000S(2)8.0000000.000000S(3)8.0000000.000000S(4)8.0000000.000000C(1)5.0000000.000000C(2)5.1000000.000000C(3)5.4000000.000000C(
8、4)5.5000000.000000H(1)0.20000000.000000H(2)0.20000000.000000H(3)0.20000000.000000H(4)0.20000000.000000D(1)15.000000.000000D(2)25.000000.000000D(3)35.000000.000000D(4)25.000000.000000M(1)30.000000.000000M(2)40.000000.000000M(3)45.000000.000000M(4)20.00
9、0000.000000X(1)30.000000.000000X(2)40.000000.000000X(3)30.000000.000000X(4)0.0000000.000000Y(1)15.000000.000000Y(2)30.000000.000000Y(3)25.000000.000000Y(4)0.0000005.800000W(1)1.0000008.000000W(2)1.0000004.000000W(3)1.0000008.000000W(4)0.000000
此文档下载收益归作者所有