simulation solutions

simulation solutions

ID:40371938

大小:475.85 KB

页数:66页

时间:2019-08-01

simulation solutions   _第1页
simulation solutions   _第2页
simulation solutions   _第3页
simulation solutions   _第4页
simulation solutions   _第5页
资源描述:

《simulation solutions 》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、STAT340/CS437PROBLEMSOLUTIONS.1.1.1Thefollowingdatagivesthearrivaltimesandtheservicetimesthateachcustomerwillrequireforthefirst13customersinasingleserverqueue.Onarrivalthecustomereitherentersserviceiftheserverisfreeorjoinsthewaitingline.Whentheservercompletesworkonac

2、ustomer,thenextoneinthequeue(i.e.theonethathasbeenwaitingthelongest)entersservice.ArrivalTimes1231639599154198221304346411455537ServiceTimes40325548185047182854407212(a)Determinethedeparturetimesofthe13customers(b)Repeat(a)whentherearetwoserversandacustomercanbeserv

3、edbyeitherone.(c)Repeat(a)underthenewassumptionthatwhentheservercompletesaser-vice,thenextcustomertoenterserviceisthelasttojointheline-i.e.theonewhohasbeenwaitingtheleasttime.Results:a)52,84,139,187,205,255,302,320,348,402,451,527,549.b)52,63,118,143,136,204,245,239

4、,332,400,451,527,549.c)52,84,139,157,207,254,272,320,348,402,451,527,549.MatlabCode%MatlabcodeforquestionONE%Dataarrival=[1231639599154198221304346411455537];service=[40325548185047182854407212];%%%%%%%%%%%%a)%%%%%%%%%%%%%%%%%%%%%%%departure(1)=arrival(1)+service(1)

5、;fori=2:13ifarrival(i)

6、re2(i-1),departure2(i-2))departure2(i)=min(departure2(i-1),departure2(i-2))+service(i);elsedeparture2(i)=arrival(i)+service(i);1endend2.2.6ThecontinuousrandomvariableXhasprobabilitydensityfunctiongivenbyf(x)=cx,01/2].Sincefisaprobabilitydensityfunc

7、tionweneedtofindtheconstantcsothatR1R1f(x)dx=1orcxdx=1givingc=2.Then00Z1121P(X>)=f(x)dx=x

8、1/2=(1−1/4)=3/4.21/23.2.7IfXandYhavejointprobabilitydensityfunctiongivenbyf(x,y)=2exp{−(x+2y),0

9、

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。