PF模块案例(一)
PF模块案例(一)
上次小编为大家介绍了PF模块的基本操作,那么今天带大家简单地进行一个案例的运用。
Last time the editor introduced the basic operation of the PF module to you, so today I will take you to a simple case application.
案例如下:每20秒有一位客户到达邮局。模拟时间间隔的最符合的分布是期望值为20的指数分布。
The case is as follows: a customer arrives at the post office every 20 seconds. The most consistent distribution for the simulation time interval is the exponential distribution with an expected value of 20.
邮局窗口的服务时间为lognormal2(31,3.1,0.5)秒。
The service time of the post office window is lognormal2(31,3.1,0.5) seconds.
若服务窗口前排队的队列超过20个人,新到的客户会成为(unhappy customers) ,直接离开。
If there are more than 20 people in the queue before the service window, new customers will become (unhappy customers) and leave directly.
在三维模型中,最重要的实体便是发生器,那么在PF模块也是如此,但是其中有三种发生器,恰好对应着三维模型中的三种到达方式。
In the three-dimensional model, the final entity is the generator, and so is the PF module, but there are three types of generators, which correspond exactly to the three arrival methods in the three-dimensional model.
拖入发生器时间间隔活动,代表顾客,顾客到达系统后需要接收一个服务,在三维模式中经常会选用处理器,PF模块就需要选择延迟活动,表示需要停留一段时间,进入下一活动,完成延迟之后,就需要离开,我们就选择吸收器。这样就模拟了顾客的一个模型。在PF模块中,活动的属性都比较少,在右侧显示。
Drag in the generator time interval activity to represent the customer. After the customer arrives in the system, he needs to receive a service. In the three-dimensional mode, the processor is often selected. The PF module needs to select the delayed activity, which means that it needs to stay for a while, enter the next activity, and complete After the delay, we need to leave and we choose the absorber. This simulates a model of the customer. In the PF module, there are fewer active attributes, which are displayed on the right.
接下来就进行参数设置,可以在属性中设置,也可以双击图标来进行参数设置,设置如下
Next, set the parameters, which can be set in the properties, or you can double-click the icon to set the parameters, the settings are as follows
现在运行结果如下,这个绿色的小圆点就是临时标识token,会慢慢地由浅绿色变成深绿色,表示运行过程。
The results of the current operation are as follows. The small green dot is the temporary token, which will gradually change from light green to dark green, indicating the operation process.
那么此模型还有些许不足,在现实生活中邮局是会有窗口限制的,因此还需要加上资源限制,还需要加入占用资源和释放资源活动,占用资源后面与其他活动有些许的不一样,后面会存在一个感叹号,是因为模型中或许会有多个资源,因此需要指定。
Then this model has some shortcomings. In real life, the post office has window restrictions, so resource restrictions need to be added, and resource occupation and resource release activities need to be added. The occupation of resources is slightly different from other activities. There will be an exclamation point later because there may be multiple resources in the model, so they need to be specified.
我们只需要将它指定一下就好了。点击感叹号,吸附资源就好,这时会出现一条蓝色的线,但是它会隐藏。
We only need to specify it. Click on the exclamation mark to absorb resources. At this time, a blue line will appear, but it will be hidden.
有占用资源就需要利用到释放资源,但是释放资源与占用资源不一样,不需要特别的指引,因为它的默认方式就是释放上一个,但是也可以进行指引,一般情况下不需要
If resources are occupied, they need to be used to release resources, but releasing resources is not the same as occupying resources. No special guidance is needed, because the default method is to release the previous one, but guidance can also be given. Generally, it is not necessary
运行结果如下,延迟的活动下只有一个临时标识,其他的便在占用资源里面,选中资源实体,绿色的标识会跟延时有连线表示正在服务,红色的标识会跟占用资源连接,表示正在请求服务或者是排队。
The results of the operation are as follows. There is only one temporary logo under the delayed activity, and the others are in the occupied resources. Select the resource entity. The green logo will be connected to the delay to indicate that it is serving, and the red logo will be connected to the occupied resource, indicating that the resource is being occupied. Request service or queue up.
最后便需要完成20个人的限制,需要添加新的吸收器,代表流失顾客,而且还需要引用新的区域资源,以及进入区域活动。
Finally, the 20-person limit needs to be completed, new absorbers need to be added to represent lost customers, and new regional resources and access to regional activities need to be referenced.
最终的模型如下
The final model is as follows
进行参数设置
Parameter setting
最终模型运行如下,满足排队不超过20人的限制。
The final model runs as follows, meeting the limit of no more than 20 people in the queue.
以上便是本次的PF模型教学,希望对你们的学习有一定的帮助
The above is the PF model teaching this time. I hope it will be helpful to your study.
参考资料:腾讯课堂《从小白到大神》
英文翻译:Google翻译
本文由LearningYard学苑原创,若有侵权,请联系删除。