Interrupting a Simulation

The Interrupt element An efvent element that is triggered by an event, and responds by interrupting the simulation. is triggered by an event, and responds by interrupting the simulation.

The triggering event can be a discrete event signal A discrete signal indicating that something (e.g., an accident, an earthquake, a bank deposit) has occurred. or another type of event (e.g., a condition, such as X becoming greater than Y).

When the simulation is interrupted, you can display a user-defined message dialog with options for continuing or pausing (and subsequently aborting) the simulation and/or you can specify that the message is written to the run log Text that is stored with a GoldSim model once it has been run. It contains basic information regarding the simulation, and any warning or error messages that were generated.. You also specify how to treat the interrupted realization A single model run within a Monte Carlo simulation. It represents one possible path the system could follow through time. if the simulation is resumed (e.g., continue the realization, or keep current realization results and move to the next).

The Interrupt element has a number of potential uses:

The properties dialog for an Interrupt element looks like this:

The topics below describe the use of the Interrupt element in detail.

The example file Interrupt.gsm in the General Examples/Events folder of your GoldSim directory (accessed by selecting File | Open Example... from the main menu) includes a simple example on the use of Interrupt elements.