Modeling How-To's > Miscellaneous > Defining Initialization Logic

Defining Initialization Logic

Cause some logic to be executed at the start of the simulation. This may be the setting of variables, an initial ordering of entities, an initial send request, etc.

 

The model used for this example, as well as all of the modeling "how-to" examples, can be found in the ProModel Solutions Café (http://www.promodel.com/solutionscafe/howto/).

Solution

  1. Define a dummy entity connected to a dummy activity with the number of arrivals set to 1 to occur at time 0.
  2. In the Logic Builder of the dummy activity define the logic you would like to occur.
Example

At the beginning of the simulation, you would like to initialize the level of 3 different buffers (1, 2 and 3) in a lamp manufacturing process to 20 lamps each.

Solution

Although individual arrivals could have been defined to each of the buffers to be initialized (see One-Time Arrivals), the solution taken here was to define a single arrival to a dummy activity where logic could be defined ordering the Lamps to each of the Buffers.


© 2014 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com