1

I calculate the number of components in the queue. As you can see in the image below, enter image description here

  1. What I want to do is show the number of components in the queue with time.
  2. How can I calculate the time-average number of components in the whole system?

Kindly let me know how I can do that. Thank you.

Logic of System:

enter image description here

Aqeel Tariq
  • 315
  • 1
  • 8

1 Answers1

1

The simplest way to do this is to use a time-plot element from the Analysis palette. Let's say you want to update the graph every 10 min, then you fill it this way for the queue:

enter image description here

Then, for the number of agents in the system as a whole, you can use the same approach, but change the value to:

source.count() - sink.count() - scrapped.count();
Emile Zankoul
  • 2,161
  • 2
  • 6
  • 18