今天小编将为大家介绍一下Flexsim发生器的三种不同到达方式。我们来先了解一下什么是到达时间间隔、到达时间表、到达序列。到达时间间隔:通常根据随机函数产生的到达时刻数值进行产生,最常用统计函数到达时间表格:严格按照时间表格进行产生,注意首尾相连的情况
到达序列:按到达次数分批发送,当第一批发送完才发第二批,并且是紧接着的。
首先我们还是先对发生器进行一个简单的设置,在创建触发中设置标签,在外观设置中设置临时实体的颜色,其中byNumber命令是指根据不同的数值进行设置颜色。
Today I will introduce three different ways to reach Flexsim generator. Let's first understand what is the arrival time interval, arrival schedule, and arrival sequence. Arrival time interval: usually generated according to the arrival time value generated by a random function, the most commonly used statistical function arrival time table: strictly follow the time table to generate, pay attention to the end-to-end situation
Arrival sequence: send in batches according to the number of arrivals, and only send the second batch when the first batch is sent, and it is immediately following.
First of all, let's make a simple setting for the generator. Set the label in the creation trigger, and set the color of the temporary entity in the appearance setting. The byNumber command refers to setting the color according to different values.
然后在临时实体流选项卡中选择指定端口命令,进行指定端口分类运输临时实体。Then select the specified port command in the flow item flow tab to perform the specified port classification to transport the flowitem.
这就是一个简单的到达时间间隔的方法,效果如下:
This is a simple method of inter-arrival time, the effect is as follows:
2.到达时间表:我们先进行简单的设置,假设到达三次,分别在10,20,30秒到达,到达数量为5,10,15。
2. Arrival timetable: Let's make a simple setting first, assuming three arrivals, arriving in 10, 20, and 30 seconds respectively, and the number of arrivals is 5, 10, and 15.
那如果说我们想要第一次到达时就产生十个红色实体应该怎么做呢,这个时候我们就需要用到Labels这一命令,并输入相应颜色所对应的数值(需要注意的是,在设置Labels时,我们需要先将刚才在创建触发中的设置标签选项删除,不然此处的Labels命令将会被覆盖,无法产生作用。)
So if we want to generate ten red entities when we arrive for the first time, what should we do? At this time, we need to use the Labels command and enter the value corresponding to the corresponding color (note that in the settings For Labels, we need to delete the setting label option in the creation trigger just now, otherwise the Labels command here will be overwritten and will not have any effect.)
3.到达序列这个时候,我们需要介入一下暂存区的最大容量问题,当暂存区有充足的容量的时候,到达序列就可以把它所有的序列全部一次性输出到下游。
3. Arrival sequence At this time, we need to intervene in the problem of the maximum capacity of the temporary storage area. When the temporary storage area has sufficient capacity, the arrival sequence can output all its sequences to the downstream at one time.
而如果说暂存区的容量是有限的,它就会严格按照分批发送的方式来进行。
And if the capacity of the temporary storage area is limited, it will strictly follow the way of batch delivery.
可以看到,临时实体按照到达序列依次进入暂存区,每当运输完一个临时实体后,后面的实体也将会立刻补上。
It can be seen that the temporary entities enter the temporary storage area in sequence according to the arrival sequence, and every time a temporary entity is transported, the following entities will be immediately filled.
参考资料:百度
英文翻译:Google翻译
本文由learningyard学苑原创,部分资料、图片来源于网络,如有侵权请联系。
热门跟贴