Batch by Name of Entity

When processing multiple entity names simultaneously and require batches segregated by the entity name. When the batch size changes based on the entity name.

Batch by Name of Entity model image

Where to Find the Model Object

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

  • Batching \ Batch by Name of Entity

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 Batch by Name of Entity 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 from your model to Stage for Batching1.connect to mo Batch by Name of Entity
    2. Connect from Batch by Name of Entity1 to the remainder of your model.connect from mo Batch by Name of Entity
  4. Define Values
    1. Enter the name of the entity(s) to be batched in the Default Value field of the Scenario Parameters dialog. Enter one entity name per scenario parameter as shown below:enter ent name Batch by Name of Entity
    2. Change the s_BatchSize# scenario parameters to match your desired batch sizes.change batch size Batch by Name of Entity
  5. Completion: The model object is now integrated into your model, you should now be able to save and then simulate the model.

Controls Usage


  1. a_Batch: This holds the batch size for each entity type when it leaves the Stage For Batching1


  1. v_EntityNameCnt#: Counters which track the number of each entity type entering “Stage For Batching1” until each count has reached its designated batch size.

Scenario Parameters:

  1. s_BatchSize#: The target batch size for each entity type.
  2. s_EntityName#: The names of each entity.

Advanced Topics

How Do I Add More Entity Types to the Batch?

If you need to add more entity types to batch:

  1. Create a s_BatchSize# scenario parameter for each new batch sizeadd new ent Batch by Name of Entity
  2. Create a s_EntityName# scenario parameter for each additional entity nameadd ent name Batch by Name of Entity
  3. Create a v_EntityNameCnt# variable for each new type.