- 1、本文档共15页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
数
学
建
模
实
验
报
告
姓名:xxx
学号:xxxx
班级:xx
学院:xxxx
1,存货问题
(一)问题描述
某企业对于某种材料的月需求量为随机变量,具有如下表概率分布:
需求量(吨)50607080901001101200.050.100.150.250.200.100.100.05每次订货费为500元,每月每吨保管费为50元,每月每吨货物缺货费为1500元,每吨材料的购价为1000元。该企业欲采用周期性盘点的策略来控制库存量,求最佳的,值。(注:策略指的是若发现存货量少于s时立即订货,将存货补充到S,使得经济效益最佳。)
(二)问题分析
随机产生每个月需求量的概率,取遍每一个S和s的值,将每种S,s的组合对应的每月平均花费保存在数组money里,筛选数组,选出其中费用最小值,并求出对应的S和s。模拟400个月的生产情况。
(三)程序代码
clear;clc;
need=0;
remain=0;
cost=0;
mincostavg=inf;
forsl=30:10:70
forsh=80:10:140
fornum=1:100000
m=rand;
if m=0.1
need=50;
elseif m=0.3
need=60;
elseif m=0.45
need=70;
elseif m=0.7
need=80;
elseif m=0.75
need=90;
elseif m=0.85
need=100;
elseif m=0.95
need=110;
else
need=120;
end
if remainsl
cost=cost+(sh-remain)*1000+500;
ifshneed
cost=cost+(need-sh)*1500;
remain=0;
else
cost=cost+(sh-need)*50;
remain=sh-need;
end
else
if remainneed
cost=cost+(need-remain)*1500;
remain=0;
else
cost=cost+(remain-need)*50;
remain=remain-need;
end
end
end
costavg=cost/100000;
ifcostavgmincostavg
mincostavg=costavg;
propersl=sl;
propersh=sh;
end
fprintf(s=%d, S=%d\nMonthly average cost=%.1f\n,sl,sh,costavg);
cost=0;
end
end
fprintf(\nWhen s=%d, S=%d\nThe least monthly average cost=%.1f\n,propersl,propersh,mincostavg);
(四)运行结果
s=30, S=80
Monthly average cost=85466.9
s=30, S=90
Monthly average cost=87007.6
s=30, S=100
Monthly average cost=87114.2
s=30, S=110
Monthly average cost=87951.0
s=30, S=120
Monthly average cost=86778.9
s=30, S=130
Monthly average cost=86411.8
s=30, S=140
Monthly average cost=86374.8
s=40, S=80
Monthly average cost=83707.2
s=40, S=90
Monthly average cost=84026.6
s=40, S=100
Monthly average cost=85089.1
s=40, S=110
Monthly average cost=85386.0
s=40, S=120
Monthly average cost=86294.0
s=40, S=130
Monthly average cost=85148.0
s=40, S=140
Monthly average cost=84992.9
s=50, S=80
Monthly average cost=83693.0
s=50, S=90
Monthly average cost=82548.0
s=50, S=10
您可能关注的文档
- 物业项目预算管理与成本管控定稿程序总汇.pptx
- 维修工单管理系统手册程序总汇.ppt
- 维修管理程序总汇.ppt
- 维修管理新程序总汇.ppt
- 物业新员工入职客户服务之有效沟通培训程序总汇.pptx
- 无线维护岗位认证教材-WiFi基础理论程序总汇.ppt
- 维修培训讲义新()程序总汇.ppt
- 物业信息管理系统程序总汇.ppt
- 无线音乐业务运营程序总汇.ppt
- 维修培训讲义新程序总汇.ppt
- 2023年浙江省公务员考试行测真题及答案详解(考点梳理).docx
- 2023年璧山县公务员考试行测真题精编答案详解.docx
- 2023年海西州公务员考试行测真题及一套参考答案详解.docx
- 2023年湘潭市公务员考试行测真题精编答案详解.docx
- 2023年白山市公务员考试行测真题及答案详解(历年真题).docx
- 2023年湖北省公务员考试行测真题及答案详解一套.docx
- 2023年红河州公务员考试行测真题附答案详解(名师推荐).docx
- 2023年肇庆市公务员考试行测真题及答案详解参考.docx
- 2023年梧州市公务员考试行测真题附答案详解(考试直接用).docx
- 2023年荆州市公务员考试行测真题及答案详解(必刷).docx
文档评论(0)