SimEvent entity life time for total cycletime calculation

2 visualizaciones (últimos 30 días)
Ken Kwon
Ken Kwon el 13 de Ag. de 2019
Respondida: Sean de Wolski el 13 de Ag. de 2019
is it possible to keep track of entity life time to create histogram of total cycletime?
I'm simulating a process where each entity has 5~6 alternative routes where each route is associated with processing time drawn from normal distribution. All entities converge to single terminator. I'm trying to make histogram of cycletime by alternative routes taken. I can tag each entity so I know which entity went to which route, but I need help figuring out the total processing time (time from entitiy generation to temrination) for each entity.
Thanks

Respuestas (1)

Sean de Wolski
Sean de Wolski el 13 de Ag. de 2019
Pull in the Simulink Sources / Clock Block as an input to stamp an entity with the clock time at initialization and termination. Then just calculate the difference.
Look at the stampEntity design pattern for using a Simulink Function to assign an attribute.

Categorías

Más información sobre Discrete-Event Simulation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by