Flexsim案例五(2)
创建控制临时实体路径的全局表:
创建一个全局表,定义每个临时实体将被送到哪个货架。假设,输出端口1连接到货架1,输出端口2连接到货架2,输出端口3连接到货架3。如果连接顺序不对,可以通过属性框的常规选项卡进行调整。本模型将把所有类型为1的临时实体送到货架2,所有类型为2的临时实体送到货架3,所有类型为3的临时实体送到货架1。
创建全局表的步骤:
点击工具,将鼠标放置在全局表上,然后点击添加。将名称(Name)改为 Route。将行数设置为 3, 列数设为 1。双击行表头(Row1, Row2, Row3)并将它们命名为 Item1、 Item2 和 Item3, 然后输入我们希望临时实体离开的输出端口号(货架号)。点击关闭按钮。
调整传送带暂存区的发送至端口选项:
在3D视图中点击暂存区,在显示的快捷属性窗口中设置传送带暂存区的临时实体流和运输选项。另外,你也可以打开实体的属性窗口直接进行设置。
双击传送带暂存区,弹出属性窗口。点击临时实体流选项卡,在发送至端口列表中,选择查询全局表。弹出代码模板窗口。选择Route.点击确定,关闭窗口。
重置、保存、运行
重置、保存、运行模型来验证对模型的改动是否发生作用。模型应显示叉车正在将临时实体搬运到货架中,货架的选择是基于在全局表中临时实体的类型。
为叉车创建一条网络路径
1. 从实体库中拖拽网络节点到模型中。把它们放到传送带暂存区和每个货架旁边,分别命名为NN1,NN2,NN3,NN4。这些节点将作为模型中的装载位置和卸载位置。
2. NN1与NN2、NN3、和NN4分别连接(A键)。建立连接后,将会显示带有两条绿色指示框的连线,表示路径为双向通行。
3. 将网络节点与它对应的实体用A键连接(NN1与传送带暂存区连接、NN2与货架1连接等)。如果连接正确,将会出现一条蓝色的线。(如果你不能看见蓝色线,则需要移动网络节点)
4. 最后一步就是把叉车连接到网络路径。为了让叉车知道它必须在路径上行驶,必须把它
连接到路径网络中的某个节点上。按住键盘"A"键然后连接叉车和NN1。重置和运行模型时,
与叉车连接的那个节点将成叉车的起始位置。
重置、保存、运行模型
现在,可以重置、保存、运行模型来查看叉车是否在网络路径行驶。
关于偏移的说明
在模型运行的时候,可以注意到,叉车在装载和卸载临时实体时,会离开网络节点。这是因为在叉车属性中选择了"执行装载装卸任务时进行行进偏移"。
叉车通过偏移确定装载或卸载临时实体的位置。叉车行驶到暂存区内捡取一个临时实体,然后行驶到某个特定的货架的货格进行卸载。如果要强制叉车呆在网络节点上,不离开网络路径,需要在减速复选框下面的下拉列表中选择"执行装载/卸载任务时不进行偏移"。 路径网络自动采用Dyjkstra算法,选择网络中两个节点间距离最短的路径行驶。
使用报告查看输出结果
在模型运行一段时间以后,如果想要查看仿真的汇总结果,选择统计>报告与统计。(若显示栏上没有,则要在全局设置中设置,具体设置如下)
打开文件选项卡下全局设置,选择自定义工具栏,将报告与统计添加到右边框栏中,点击确定关闭。页面上会出现一个条形统计图的图标,在报告与统计对话框中选择汇总报告选项卡。
要生成一个最基本的报告,请点击生成报告。使用这个界面,也可以向报告中添加其它属性。
生成的报告是一个csv文件,可以自动在Excel中或设置的用于打开csv文件的其它程序中显示。
使用实验控制器多次运行仿真进行试验
要访问Flexsim中的实验器,选择统计主菜单〉实验器,弹出实验器窗口。
使用实验器不仅可以多次运行一个模型,还可以运行模型的多个方案。当运行多个方案时,可以指定几个实验变量,设置每个方案中这些变量的值。针对你在绩效指标选项卡上定义的每个绩效指标,实验器将计算和显示置信区间。
Create a global table that controls the path of the flowitem:
Create a global table that defines which shelf each flowitem will be sent to. Assume that output port 1 is connected to shelf 1, output port 2 is connected to shelf 2, and output port 3 is connected to shelf 3. If the connection sequence is wrong, you can adjust it through the General tab of the property box. This model will send all temporary entities of type 1 to shelf 2, all temporary entities of type 2 to shelf 3, and all temporary entities of type 3 to shelf 1.
Steps to create a global table:
Click the tool, place the mouse on the global table, and click Add. Change the name (Name) to Route. Set the number of rows to 3 and the number of columns to 1. Double-click the row headers (Row1, Row2, Row3) and name them Item1, Item2, and Item3, and then enter the output port number (shelf number) where we want the flowitem to leave. Click the close button.
Adjust the send to port option of the conveyor belt temporary storage area:
Click the temporary storage area in the 3D view, and set the temporary entity flow and transportation options of the conveyor temporary storage area in the displayed shortcut properties window. In addition, you can also open the properties window of the entity to set it directly.
Double-click the temporary storage area of the conveyor belt, and the properties window will pop up. Click the flow item flow tab, and in the list of sent to ports, select the query global table. The code template window pops up. Select Route. Click OK to close the window.
Reset, save, run
Reset, save, and run the model to verify whether the changes to the model have an effect. The model should show that the forklift is moving the flowitem
Transported to the rack, the selection of the rack is based on the type of temporary entity in the global table.
Create a network path for the forklift
1. Drag and drop the network node from the entity library to the model. Put them in the conveyor belt temporary storage area and next to each shelf, respectively named NN1, NN2, NN3, NN4. These nodes will serve as the loading and unloading locations in the model.
2. Connect NN1 to NN2, NN3, and NN4 respectively (key A). After the connection is established, a connection with two green indicator boxes will be displayed, indicating that the path is two-way traffic.
3. Connect the network node and its corresponding entity with the A key (NN1 is connected to the temporary storage area of the conveyor belt, NN2 is connected to the shelf 1, etc.). If the connection is correct, a blue line will appear. (If you can"t see the blue line, you need to move the network node)
4. The last step is to connect the forklift to the network path. In order for the forklift to know that it must be on the path, it must be
Connect to a node in the path network. Press and hold the keyboard "A" key and connect the forklift to NN1. When resetting and running the model,
The node connected to the forklift will become the starting position of the forklift.
Reset, save, and run the model
Now, you can reset, save, and run the model to see if the forklift is driving on the network path.
A note on offset
When the model is running, it can be noticed that the forklift will leave the network node when loading and unloading the flowitem. This is because the "travel offset when performing loading/unloading tasks" is selected in the forklift properties.
The forklift determines the position of loading or unloading the temporary entity through the offset. The forklift travels to the temporary storage area to pick up a temporary entity, and then travels to a specific shelf for unloading. If you want to force the forklift to stay on the network node and not leave the network path, you need to select "Do not offset when performing loading/unloading tasks" in the drop-down list below the deceleration check box. The route network automatically uses the Dyjkstra algorithm to select the route with the shortest distance between two nodes in the network.
Use reports to view output results
After the model has been running for a period of time, if you want to view the summary results of the simulation, select Statistics>Reports and Statistics. (If it is not on the display bar, you must set it in the global settings, the specific settings are as follows)
Open the global settings under the File tab, select the custom toolbar, add the report and statistics to the right frame, and click OK to close. A bar chart icon will appear on the page. Select the Summary Report tab in the Reports and Statistics dialog box.
To generate a basic report, click Generate report. Using this interface, you can also add other attributes to the report.
The generated report is a csv file, which can be automatically displayed in Excel or other programs set to open the csv file
Show.
Use the experiment controller to run the simulation multiple times for experimentation
To access the experimenter in Flexsim, select the main menu of statistics> experimenter, and the experimenter window will pop up.
Using the experimenter can not only run a model multiple times, but also run multiple scenarios of the model. When running multiple scenarios, you can specify several experimental variables and set the values of these variables in each scenario. For each performance indicator you define on the Performance Indicators tab, the experimenter will calculate and display the confidence interval.
注:本模型使用的是FlexSim 2019
参考资料:百度百科,Flexsim7.5.4版本中文用户手册【北京创时能公司汉化】版
翻译:Google翻译
本文由LearningYard学苑原创,文中部分图片和文字均来源于网络,如有侵权请联系删除!