When Will You Need This?

If you want to hold entities until a certain condition is true, then release them all simultaneously, rather than release one at a time. This is done -without- creating a batch.

Release All Waiting Entities at Once model image

Model Object

The following model object can be found in the model objects directory: Flow Control \ Release All Waiting Entities at Once.

Ease of Use: Easy

Ease of Modification: Easy

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 Release All Waiting Entities at Once 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 a percentage route from your model to Storage.

from your model to Release All Waiting Entities at Once

2. Connect a percentage route from Storage to the rest of your model.

from Release All Waiting Entities at Once to your model

4. Update Action Logic

1. Update the condition (Wait Until) in the action logic of Storage to meet your own criteria.

The TIME(0 Min) statement in the storage’s action logic is the key to making this model object work. Once the Wait condition is true, all 30 entities move to the Time statement. This will place each entity at the bottom of the simulation’s pending actions queue. The result is that the v_Count variable is not decremented until “after” all 30 entities have passed the Time statement. Since the processing sequence of all 30 entities is now consecutive, they all move one after the other through the Dec statement, reducing the counter to 0, before any new entities enter the storage.

update action logic in Release All Waiting Entities at Once

5. Update Objects

1. Change the name of Storage to what maybe appropriate for your model.

6. Completion

The model object is now integrated into your model, you should now be able to save and then simulate the model.

Attributes, Variables, Scenario Parameters and Scenarios Usage

Variables:

1. v_Count1: The number of entities required before the Time statement will be executed.