Short Batches If

When you need to batch in set quantities, but close a batch before the oldest entity expires or close the batch if the arrival frequency slows below a specified limit.

Short Batches If model image

Where to Find the Model Object

The following model object can be found in the model objects directory:

  • Batching \ Short Batches If.

How to Use the Model Object

  1. Open Your Model: Open your model or create a new blank model.
  2. Insert the Model Object into Your Model
    1. Locate the model object Short Batches If and select the insert button.
    2. Move the cursor to the point of insertion and left mouse-click. The upper left corner of the model object will be inserted at the location of the mouse-click.
  3. Connect to Your Model
    1. Connect the incoming route to Prepare Batch1 to your model.connect from your model Short Batches If
      1. If you add any additional route entering Prepare Batch1, make sure they each contain a copy the action logic from the original route.paste logic Short Batches If
    2. Connect Batch1 to an activity in your model and rename as needed.Do not change the name of the Close Batch1 entity. That name is used within the model object.connect to your model Short Batches If
  4. Define Values
    1. Change the value for scenario parameters s_Normal_BatchSize1s_Frequency1s_First1 and s_Last1 to match your requirements.See heading Attributes, Variables, Scenario Parameters and Scenarios Usage below for more information on each scenario parameter.change sp value Short Batches If
    2. Change the Time field on Batch1 to the time it normally take to process a batch (not the time for each individual entity within the batch).change time Short Batches If
  5. Completion: The model object is now integrated into your model, you should now be able to save and then simulate the model.The Route to Prepare Batch1Prepare Batch1Batch Trigger1Close Batch1 and all the associated routes are being used to control the logic for setting the appropriate batch size given your conditions. Don’t modify times or logic for objects mentioned. All changes of object behavior should be made through the scenario parameters.

    The Batch1 is where you will enter any processing time after the batch is created.

Controls Usage


  1. a_BatchSize1: Size of the batch. Normally this is your standard batch size. But at the times when the End of Day entity arrives, it is set to 1 which closes the batch. Then, just prior to entering Batch1, is reassigned a value equal to the number of entities to be rebatched.
  2. a_Qty: The create quantity in the create route that triggers the premature closing of a short batch* RebatchQty: A system attribute that tracks the previous batch size.