Greetings!
In the simple discrete model (attached) of a queue, I would like to find the average cycle time it takes for a customer to get service (problem taken from Chapter 4, Modeling Dynamic Economic Systems by Bruce Hannon).
In Stella, this is done simply by creating using a built in function though, I believe that (according to Professor Sterman's book) one should track attributes by creating coflows.
I have created a coflow but it is not giving me the correct results, at least I don't think so; does anyone have any suggestions as to how I should proceed? I presume it doesn't matter that my input is in discrete intervals.
Cycle Time, Attribute of Coflow
-
- Senior Member
- Posts: 107
- Joined: Wed Nov 26, 2008 6:12 am
Cycle Time, Attribute of Coflow
- Attachments
-
- Karan_Queue.mdl
- (6.51 KiB) Downloaded 244 times
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm
The general formulation for average residence time in a continuous model is
average residence time = level / outflow
That this makes sense is clear from the standard formulation
outflow = level / average residence time
That assumes an exponential distribution of service times. If you want to assume something different, for example a fifo queue, then you need to make use of the QUEUE functions to get a more accurate result. But the above is usually good enough.
average residence time = level / outflow
That this makes sense is clear from the standard formulation
outflow = level / average residence time
That assumes an exponential distribution of service times. If you want to assume something different, for example a fifo queue, then you need to make use of the QUEUE functions to get a more accurate result. But the above is usually good enough.
-
- Senior Member
- Posts: 107
- Joined: Wed Nov 26, 2008 6:12 am
-
- Senior Member
- Posts: 1107
- Joined: Wed Mar 12, 2003 2:46 pm
Just go with the above solution and an exponential distribution of service times. If you want to use a cascaded chain then you can use
service time = service time 1 + service time 2 + service time 3
where
service time 1 = level 1 / outflow 1
and so on. As you add more levels you will approach a FIFO service time.
service time = service time 1 + service time 2 + service time 3
where
service time 1 = level 1 / outflow 1
and so on. As you add more levels you will approach a FIFO service time.