question

Noah Z avatar image
0 Likes"
Noah Z asked Jordan Johnson commented

Tracking the time it takes for dispatcher to find available operator for task?

capture-dispatcher-wait-time-for-task.fsm

I'm wondering if there is a way to have a model provide output stats on how long it takes a dispatcher to successfully send out a task sequence to an available operator? Even more useful would be if I could pull out average wait time before the task was sent out to an available operator by center port of the dispatcher. This would allow me to gauge the impact that putting priorities on certain tasks has on creating bottlenecks at other system points.

I've attached a dummy model that is personnel constrained (1 operator and three processors with fast arrival rates).

FlexSim 16.0.1
dispatcherwait timegetstats
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Jordan Johnson edited

capture-dispatcher-wait-time-for-task-2.fsmWith Process Flow, you can get this information fairly easily.

You can listen to the Dispatcher's OnReceiveTaskSequence event, and create a token in response. You can assign the task sequence to a label on the Token. To get the object that possesses the task sequence, you can use the findownerobject() command. Using this command, you can find out which dispatcher received the task sequence.

The token then waits for zero time. If the dispatcher can immediately assign the task sequence to one of its task executers, then that will happen while the token waits on the delay activity. The next activity uses the findownerobject() command to get the current owner of the task sequence. The token then enters a zone, which I will explain later.

The token then checks to see if the current owner of the task sequence (the operator) is the same as the first owner (the dispatcher). If they are the same, then the task sequence has not been assigned, and the token needs to wait for the task to be assigned. In this model, you can wait for the OnResourceAvailable event (be sure to make sure that the token's task sequence is the Next Task Seq in the event; use the match option). If they are different, then this task has been handled, and we don't need the token anymore.

This model collects two statistics. The Staytime statistic on the Wait For Start activity records the staytimes of task sequences that had to wait to be assigned. The Staytime statistic on the zone records the staytimes of every task sequence, even those that didn't have to wait. Both values might be important.


· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jordan Johnson avatar image Jordan Johnson ♦♦ commented ·

Previously, I had posted an answer that had bad information. If you read that answer, disregard it.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.