Collect statistics on workers

General Simio discussions. THIS IS *NOT* A GOOD PLACE FOR SUPPORT QUESTIONS.
To limit spam this and all Public Forums have very limited ability to attach files. We recommend that support issues and more technical topics be initiated inside one of the Simio Insider (SI) forums below where you can attach your model and see example solutions. See above Welcome forum to join Simio Insiders.
Post Reply
khaterehhadi
Posts: 9
Joined: Sun Jan 01, 2017 10:26 pm

Collect statistics on workers

Post by khaterehhadi » Wed Feb 15, 2017 3:33 pm

I have a network of transfer nodes with workers moving between them. I want to calculate the time that each worker spends in each node. How do that?

Thanks,
Kati

dsturrock
Simio Team Member
Posts: 1455
Joined: Thu Mar 13, 2008 12:35 pm
Location: Sewickley, PA USA
Contact:

Re: Collect statistics on workers

Post by dsturrock » Wed Feb 15, 2017 4:08 pm

It depends in part on how many combinations you have and what you want your output to look like.

In general, you will probably want to have some process logic executed on the entry and exit from the node, that captures in a TallyStatistic the time that the worker spent in that node. An alternative to a TallyStatistic might be a State array or simply writing to a file. That process logic could potentially be on either the Worker or on each Node.

I don't think we have a SimBit that does that, but you might look at ElectricVehicle and the Vehicle*** SimBits for some ideas.
Dave Sturrock
VP Operations, Simio LLC

khaterehhadi
Posts: 9
Joined: Sun Jan 01, 2017 10:26 pm

Re: Collect statistics on workers

Post by khaterehhadi » Wed Feb 15, 2017 10:48 pm

I have limited number of nodes and workers so it wouldn't be a problem to repeat the process for each node/worker. I have 6 node with a boolean state assigned to them. Three of them are assigned "true" and the other three to "false". I want to calculate the time that each worker spends in each "true" node and then have the total time spent in "true" nodes for each worker.

I set Add-on process triggers for one of the workers and used processed logic. On "Entered node", I collected Tally statistics of TimeEntered using the expression of "Run.TimeNow". On "ExitedNode", I collected Tally statistics of TimeExited using the same expression. I have the time entered and exited from the node, but couldn't calculate the time in between (which is time spent in the node) since the Tally statistics are referenced elements and are not numbers to be subtracted, I guess. any hints on how to solve this?

Thanks.

dsturrock
Simio Team Member
Posts: 1455
Joined: Thu Mar 13, 2008 12:35 pm
Location: Sewickley, PA USA
Contact:

Re: Collect statistics on workers

Post by dsturrock » Thu Feb 16, 2017 2:08 am

Yes, instead have a state on the worker named something like TimeEntered.
On entry assign TimeEntered = TimeNow.
On exit tally the expression "TimeNow-TimeEntered" to record an observation for how long it was in the node.
That will give you min, max, average, and number of observations. You can multiply the last two to get a total.
Dave Sturrock
VP Operations, Simio LLC

Post Reply