Documente Academic
Documente Profesional
Documente Cultură
I have a simple model with a source, server and sink and I would like to know at what point in time during the
simulation run the queue for the server exceeds 9 for the first time.
Categories:
Add-On Process Logic, Custom Statistics
Key Concepts:
Add-On Process, Contents, CrossingStateChange, Event, InputBuffer, Monitor, On Entered, Process Triggering
Event, Real State Variable, Stopping Condition, Run.TimeNow
Assumption:
Since the time is the only information desired, the simulation stops running after the queue reaches 9 for the first
time.
Technical Approach:
A state variable is updated with the number of entities in the server queue each time a new entity enters the
server. A Monitor element is used to track this state variable and trigger an event when the state variable goes
over the value of 9. The triggering of this event executes a process that updates another variable with the current
simulation time and the simulation stops. The variable with the simulation time is displayed in the Results Window
as a State Statistic.
Details for Building the Model:
Simple System Setup
Place a Source, Server and Sink in the Facility Window. Update the Processing Time property of the Server
to be ‘Random.Triangular(.2,.3,.5)’ so that the Server has some queuing.
Connect the Source and Server, as well as the Server and Sink with Paths.