Goals of this lesson

- Getting more dynamics into the decision making at exclusive or inclusive gateways
- Usage of stochastic process variables

How-to

The exclusive gateway in Model 3.a from lesson Exclusive Gateways is pretty static. During the simulation every process instance will use the same path, because the evaluation will always get the same result. Models with more dynamic (and realistic) path selection can be achieved by defining stochastic attributes. Stochastic attributes are variables, whose values change (similarly to the duration of activities) by a stochastic distribution.

Figure 1: Model 3b - Assignment of Stochastic Attributes / IYOPRO-Link |

Creating Stochastic Attributes

To use a stochastic variable, we need to define it at the activity before the gateway:

- Make sure, you selected the Simulation option from the Property Set drop-down-box
- Click the first activity in the model
- Click the button right to the Stochastic Attribute Assignment property under Optional Simulation Properties
- The Process Attribute Editor shows up (see the picture below)
- Click the Add button to add a new stochastic attribute
- The Distribution Editor shows up. You will notice, that it is the same Distribution Editor that you already got to know by assigning durations of activities or inter-arrival times of start events.
- Now select the normal distribution with a mean value of 10 and a standard deviation of 3
- The variable will be given a name (something like "v1"). You can change this by double-clicking into the Name field. Rename it to X.

Assigning Conditions with Stochastic Attributes

We are now ready to go. Simply define the conditions (see lesson Assigning Gateway Conditions) like this:

- Upper edge: Result=(X<7.0); which means that the variables value is below the mean minus the sigma (standard deviation, 10 - 3 = 7)
- Middle edge: Result=(X>13.0); which means that the variables value is beyond the mean plus the sigma (standard deviation, 10 + 3 = 13)
- Bottom edge: Put in on default by selecting Default Sequence Flow from the Element Type in the General Properties. This means the value is between the mean plus / minus the sigma (7 < X < 13).

Figure 2: IYOPRO'S Simulation Process Attribute Editor |