当前位置:文档之家› Arena仿真

Arena仿真

Simulation with Arena, 3rd ed. Chapter 6 – Stat. Output Analysis Terminating Simulations Slide 3 of 29
• •

总的流程图
Customers
Assign expected service time
If no m ore than 3 custom ers in Q
Simulation with Arena, 3rd ed.
Chapter 6 – Stat. Output Analysis Terminating Simulations
Slide 11 of 29
故事2
• • • • • • • •
试模拟一个十字路口的一个方向车流(从西向东) 该方向绿灯之间的间隔是60秒, 持续30秒 该方向有一个车道,如右图所示 该车道的车到达时间间隔为expo(6)秒 一次放行最多10辆车,每辆车通过时间为3秒 当绿灯放行时,左拐、直行和右拐概率分别是30%和 40%和30% 绿灯期间来的车如果前面没有排队可以直接通过 模块提示:hold,signal,submodel, n-way decide
Chapter 6 – Stat. Output Analysis Terminating Simulations
Slide 7 of 29
定义两个服务台以及服务速度
Simulation with Arena, 3rd ed.
Chapter 6 – Stat. Output Analysis Terminating Simulations
Chapter 6 – Stat. Output Analysis Terminating Simulations
Slide 6 of 29
Decide 模块
If no more than 3 customers in Q
0
True
0
False
Simulation with Arena, 3rd ed.
Chapter 6 – Stat. Output Analysis Terminating Simulations Slide 2 of 29
Simulation with Arena, 3rd ed.
故事1
• •
一个双服务台系统,运行2小时 顾客在这2小时中的到达是非平稳的,每15分钟转换一次到达率, 但15分钟到达间隔内都满足指数分布,8个15分钟里,顾客到 达率分别为7、12、4、6、8、9、5和10(单位为到达数/小时, 不是15分钟内到达数) 顾客到达时预先生成一个预计服务时间,为Beta(1,4)小时。但 实际上只有服务台1能达到这个预计时间,而服务台2的服务时 间较慢, 为1.2*预计时间。(Beta分布的均值为1/(1+4)=0.2小时) 两个服务台共用一个队列,而队列容量有限,只有3个,队满则 顾客受阻退出。顾客排队的优先规则为:预先生成的服务时间 短的先服务。 当两服务台都空闲时,顾客喜欢在快一些的服务台1上服务。当 任一个服务台空闲时,顾客进入空闲的服务台上服务。
Chapter 6 – Stat. Output Analysis Terminating Simulations
Slide 10 of 29
扩展训练1
• • •
这道题目还可以用Block模块来做 这是一个挑战,但是对于掌握高级程序设计是必要的! 应该培养在软件找帮助和阅读帮助的能力
se rve r 1 se rve r 2
0
Tru e
Service
Serviced
0 0
Fa l s e
0 0
Blocked
0
Simulation with Arena, 3rd ed.
Chapter 6 – Stat. Output Analysis Terminating Simulations
Slide 4 of 29
Arrival 和 Schedule 模块
Simulation with Arena, 3rd ed.
Chapter 6 – Stat. Output Analysis Terminati
Slide 8 of 29
Process 模块
Service
0
Simulation with Arena, 3rd ed.
Chapter 6 – Stat. Output Analysis Terminating Simulations
Slide 9 of 29
Queue 模块
Simulation with Arena, 3rd ed.
Create
As s ign
Queue
p ro c e s s q u e u e
Seiz e
s e l e c t(s e rv e rs ,POR,s e rv e r # )
Delay
Releas e
Dis pos e
NSEXPO(a rri v a l s c h e d u l e ) s e rv i c e ti m e
s e rv i c e ti m e * fa c to r(s e rv e r # ) s e rv e rs (s e rv e r # )
Dis pos e Pic tures
p i c tu re .m a n
Attributes
s e rv e r # s e rv i c e ti m e
Lecture 5 Arena III: More Advanced Functions
Last revision June 8, 2003
Simulation with Arena, 3rd ed.
Chapter 6 – Stat. Output Analysis Terminating Simulations
Customers
0
Simulation with Arena, 3rd ed.
Chapter 6 – Stat. Output Analysis Terminating Simulations
Slide 5 of 29
生成预计服务时间
Assign expected service time
Simulation with Arena, 3rd ed.
Entities
c u s to m e rs
Queues
p ro c e s s q u e u e
Sc hedules
Arri v a l Sc h e d u l e
Res ourc es
s e rv e r 1 s e rv e r 2
Sets
s e rv e rs
Variables
fa c to r
Slide 1 of 29
知识要点
1. • • • • • 2. • • • •
故事1 顾客非平稳指数到达的建模 (nonstationary arrival) 具有优先级的排队规则 (queueing priority) 资源组(resource set)的使用方法 表达式(expression)数组 使用“操作块”面板(block panel)建模 故事2 保持(hold)和信号(signal)模块 子模型(submodel)的使用 多路径决策(decide; n-way condition) 实体副本(separate)
相关主题