Batch and Collect Tutorial
This tutorial will guide you through an example of combining the Batch and Collect features in Simul8.
Step 1: Understanding Batching
Batching in Simul8 is the term given to situations where you split up a work item into more than one work item. For example, if a piece of sheet metal arrives at a factory, it is one work item, but at an activity you may cut this up into, say, 2 separate pieces. You now have 2 work items rather than one, and it is important to represent this in your simulation.
This can be represented in the following way:
Before the simulation is run, there are 100 work items. Activity 1 batches each work item into 2.
After the simulation is run, those 100 work items have each been split into 2, giving 200 work items after the activity.
To set this up, build the ‘before’ model above, making sure to set a Start Up value of 100 work items in the first Queue. You can do this by selecting the queue and clicking Start-Up in the Properties tab.
Next, set the batch size of the activity. The default setting is that one work item in = one work item out. Select the activity, then either click on Batching Out under the activities Properties tab or click Routing Out, and the Batching button (below).
The next dialog asks you to enter the ‘Batch size leaving this object’, this is the number of work items which will leave the activity for each one that enters.
In this example, we want two work items to leave for every one work item that enters, so the batch size will be 2.
Step 2: Understanding collecting
Use the Collect feature to assemble several items together in an activity and create one individual item as an output.
In the example below, we will set up the simulation to ‘collect’ one Car Body and four Wheels, in order to output one car.
First, build the structure above, remembering to prepopulate the 2 queues with 100 work items each. The next step is to configure the Car Assembly activity, so it knows how many work items to collect from each queue to assemble one complete car.
Select Car Assembly and go to Routing In from the ribbon (collecting is to do with what you bring into an activity).
Next, choose the Collect discipline from the list on the left-hand side of the dialog.
You can now tell your simulation how many work items to collect from each queue to output one work item. Configure this by selecting each queue and typing the required number in the input box next to collect. We require 1 Car Body and 4 Wheels to produce each complete car. You will notice the list will update to show the required amount of work items from each queue.
Before you run the simulation
How many complete cars should you be able to create?
Run your simulation and check whether this matches with your estimate.
After running your simulation, it should look like the below, we have created 25 cars. One is still in progress, stuck in the Car Assembly activity because we have run out of wheels.
To avoid moving work items into the activity before all the required parts are available, use the ‘Do not collect until all available’ option on the Routing In dialog.