'AnyLogic: How to show Time-average number of components in the queue of the operation in Graph?
I calculate the number of components in the queue. As you can see in the image below,
- What I want to do is show the number of components in the queue with time.
- 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:
Solution 1:[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:
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();
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Emile Zankoul |