Professional Documents
Culture Documents
12-Queueing Models
12-Queueing Models
Balking
• Customers arrive
• Customers decide whether to enter
• Customers wait (possibly)
• Customers are served
• Customers
Industrial Engineering depart
• A/S/c:X/Y/Z modified Kendall classification scheme
L W
Average Number in System = Throughput Rate x Average Time in System
N X T if you prefer
• M/M/1 queue μ
λ λ λ λ
0 1 2 3 …
Industrial Engineering
μ μ μ μ
0 1 2 3
μ μ μ μ
Rearranging terms,
dpt (n)
In steady state: 0
dt
dpt (0)
0 pt (0) pt (1)
dt
dpt (n)
0 ( ) pt (n) pt (n 1) pt ( n 1) n 1
dt
pt (0) pt (1)
( ) pt (n) pt (n 1) pt (n 1) ; n 1
Industrial Engineering
pt (1) pt (0)
( )
pt (n 1) pt (n) pt (n 1) ; n 1
pt (2) pt (1) pt (0)
Let n = 1
Industrial Engineering
pt (1) pt (1)
pt (1)
IEE 561Production Systems
© Ronald G. Askin 2010
Industrial Engineering
pt (1) pt (0)
pt (n 1) pt (n 1) ; n 1
Let , be the utilization or "traffic intensity" factor
pt (1) pt (0)
pt (n 1) pt (n 1) ; n 1
pt (n) n pt (0) ; n 1
Industrial Engineering
1
Add p (n) 1 p(0) 1 ... p(0)
2
n0 1
p(0) 1
Industrial Engineering
p(n) (1 ) n , n 1
(1 ) 2 1 2 3 2 ...
(1 ) n n 1
2
n 0
d ( n )
d (1 ) 1
Note,
n n 1 (1 ) 2
d n 0 d
Industrial Engineering
2
Thus, Lq L Lq
1 1
λ λ λ λ
0 1 2 3 …
μ 2μ 3μ 3μ
Industrial Engineering
Solution:
10
12
1 1
Throughput time: W 0.5weeks
10
(1 ) 12(1 )
12
Industrial Engineering
1 5
Queuing time: Wq 0.5 weeks
12 12
Industrial Engineering
2 n 1 d
(1 ) 2
2
n n
n
d (1 ) 2
V (N ) n 0 n 0
(1 ) 2 (1 ) 2 (1 ) 2 (1 ) 2 2 (1 )
(1 ) 4
Industrial Engineering (1 ) 2 2 (1 )
(1 )3 (1 )3
E ( N ) (1 ) n 2 n
2
n 0
P(empty) = P0=1-ρ
Mean Empty Period
P0 =1
Mean Empty Period+ Mean Busy Period
1/
1 / + E(busy period)
1 1 1 1
E(Busy Period)=
(1 ) (1 )
Note: If all event times are exponential, we have a Continuous Time Markov chain (CTMC).
The sequence of states, Xn, at the nth shift, form a Discrete Time Markov chain (DTMC).
pij ( x ) P X 1 j, T1 x | X 0 i
i.e. if in state i, an event occurs in less than x and takes the system to j
Assume
• Embedded DTMC defining state change probs at events is irreducible,
aperiodic, positive recurrent;
• Distribution of time between events has finite moments
Define
• = stationary distribution of DTMC with transition matrix P( )
Industrial Engineering
• i E ( S1 | X 0 i ) , the expected time to an event when in i
i i
Then the stationary distribution for the SMP is pi lim P X (t ) i
t
j j
j
λ λ λ
Let λ=3, µ=2 and solve.
0 1 2 3
(From Review Lecture on CTMC).
µ 2µ 2µ
Find , P
0 1 0 0
0 1
0 0
P
2 2
0 0 1 0
2 2 2
2
0 0 1 0
Industrial Engineering
...
2 2 2
yields 1 0 1
2 2 2 2
0.1379 0.3448 0.3621 0.1552
1 1 1 1
Mean time to next event
3 5 7 4 Note: Only means matter;
Sum of Poisson RVs is Poisson
1
(0.1379)
p1 3 0.2237
0.1379 0.3448 0.3621 0.1552
3 5 7 4
Can you solve using Rate Out = Rate In equations for this case?
IEE 561Production Systems
© Ronald G. Askin 2010
Industrial Engineering
Alternative (for Exponential Case):
Rate Out = Rate In
p0 p1
( ) p1 p0 2 p2
( 2 ) p2 p1 2 p3
2 p3 p2
p0 p1 p2 p3 1
2 3
1 p0 1 2 3 Recall
2 4
3, 2
Industrial Engineering 3 9 27
p0 1
2 8 32
p0 0.2238
IEE 561Production Systems
© Ronald G. Askin 2010
Industrial Engineering
A Single Workstation
• M/G/1:GD//
Poisson arrivals, General service, Single server
• Let S be the random variable for service time
• Let T be the random variable for throughput time, i.e. E(T) is W.
• Let N be the random variable for the number of jobs at the workstation
E (S 2 )
E (T ) E ( S )
2(1 )
E ( S 3 ) 2 [ E ( S 2 )]2
V (T ) V ( S )
3(1 ) 4(1 ) 2
2 E (S 2 ) 2 2 V ( S ) Pollaczek-
Industrial Engineering
E(N ) Khintchine formula
2(1 ) 2(1 )
2 3 E ( S 3 ) 4 [ E ( S 2 )]2
V ( N ) E ( N ) V (S )
3(1 ) 4(1 )2
IEE 561Production Systems
© Ronald G. Askin 2010
Industrial Engineering
A Single Workstation: GI/G/1
Ca2 , Cs2 squared coefficient of variation for arrival and service process
W Wq E ( S ) Wq 1
Approximations:
1 Ca2 Cs2
Wq
(1 ) 2
Mean x util. factor x variance factor
IEE 561Production Systems
© Ronald G. Askin 2010
Industrial Engineering
A Single Workstation
• General, part-based priority service
• Suppose there are P part types
• Type p has arrival rate and service time of p and S p
• Parts are ordered such that the lower the number the higher the priority
n
N!
Pn P0
N n !
Industrial Engineering
Lq N 1 P0 ; L Lq (1 P0 )
Second order refinement: Will arrival rate be higher, lower or 2 per day?
Industrial Engineering
0.64
Could you develop the balance equations on the final exam?
IEE 561Production Systems
© Ronald G. Askin 2010
Industrial Engineering
Open Networks
• A network of servers with different task capabilities
• Arriving jobs that require some sequence of servers
• An external arrival process generates jobs that arrive at
one or more workstations and enter the network.
• Fact 3: The interdeparture time from and M/M/c system with infinite
queue capacity is exponential.
2 1 2 1 i+1, j
2 i, j-1
1
2
0,1 1,1
i,j
2
2 1 2 1
Industrial Engineering 0,2
i-1, j i, j+1
2 i-1, j+1
i, j-1 i+1, j
i
p (i, j ) (1 1 ) (1 2 ) 2 j 1
1 2
i,
1 , 2 j 2
1 2 1
i-1, j i, j+1
Do you
Industrial believe
Engineering me? How would you check? i-1, j+1
Then:
i+1, j-1
i-1, j+1
IEE 561Production Systems
© Ronald G. Askin 2010
Industrial Engineering
General Jackson Network
Assumptions:
• FCFS Service
j 'j n
p0 ( ) / n ! n 0,..., c j
j j
pn '
j j n n c j
p
0 ( ) / ( c j ! c j ) n c j 1,...
Industrial Engineering
j
j
p is such that
0 n =1 for each j.
p j
n0
Industrial Engineering
0.5 3 6 M, 10 L, 1 G,2(.5)
Lathe Grind
1 1 4 3 D, 10 L, 2 G, 2
0.5
Industrial Engineering
WCs operate 40 hrs/wk
2 10 3 6
4 3
Or, more directly from individual part types
'
Mill Drill
M 3
1 2 18 1 2
3 3
0.5
'
D 4 2 13 0.5
Industrial Engineering
'
4 11 Lath 0.5
L 1 3 Grin
e
' d1
G 0.5 0.53 4
1 2 13 1
0.5
1 2 M, 2 L, 1 G, 2
2 10 M, 4 D, 5 G,1(.5)
Industrial Engineering
3 6 M, 10 L, 1 G,2(.5)
4 3 D, 10 L, 2 G, 2
Station c W Wq L Lq p0
M 18 6.92 3 0.867 0.4185 0.2741 7.534 4.934 0.035
D 13 6.50 3 0.667 0.2222 0.0684 2.889 0.889 0.111
T 11 31.43 1 0.350 0.0489 0.0171 0.538 0.188 0.650
G 13 24.76 1 0.525 0.0850 0.0446 1.105 0.580 0.475
Industrial Engineering
1 2 M, 2 L, 1 G, 2
2 10 M, 4 D, 5 G,1(.5)
3 6 M, 10 L, 1 G,2(.5)
4 3 D, 10 L, 2 G, 2
Station c W Wq L Lq p0
M 18 6.92 3 0.867 0.4185 0.2741 7.534 4.934 0.035
D 13 Engineering
Industrial 6.50 3 0.667 0.2222 0.0684 2.889 0.889 0.111
T 11 31.43 1 0.350 0.0489 0.0171 0.538 0.188 0.650
G 13 24.76 1 0.525 0.0850 0.0446 1.105 0.580 0.475
• Decomposition/Recomposition approach:
• relate,
• separate,
• aggregate.
Industrial Engineering
vi qi v j p ji
j
Industrial Engineering
Industrial Engineering
Tij X 1 X 2 ... X n
Useful Notes:
'j
3. And j
j
Industrial Engineering
j ji ji d j (1 p ji ) i 1
j
'
p p C 2
Ca2i
i'
2 V (T )
(Recall: Ca 2
p ji Cd2j (1 p ji ) )
i( j)
E (T )
2 2 2 2 2
Then, adding Cd j (1 j ) Ca j j Cs j
Industrial Engineering
'j p 2ji (1 2j ) Ca2j i' Ca2i j' p ji p ji 2j C s2j 1 p ji i ; i 1,..., M
j j
Industrial Engineering M
E (Tp ) v jp [ E (Wq j ) jp1 ]
j 1
n
j 1
j N , where n j is the number of jobs at station j.
Industrial Engineering
Assumptions:
N
p 1
p N
Industrial Engineering
• Throughput Times
N p 1
W jp 1
jp L jp jp1 L jr jr1 j , p
Np r p
Industrial Engineering
c j 1
W j' p
Industrial Engineering
jp c j
L j' p 0; Lq ' 0
jp
1
see Seidmann et al. 1987
v jp : visit counts, the expected number of visits a part type p makes to station j.
L jp X p (v jpW jp ) j , p
Industrial Engineering
Step 2. Update W. 1.
For all j, p compute W jp( ) .
Step 4. Update L.
For all
Industrial Engineering j, p computer L(jp ) L(jp 1)
. If any go to step 2; otherwise
L( )
jp 0.001
stop. ( )
L jp
Industrial Engineering
Visit Counts
Part L/U TC HMC1,HMC2 HMC3 Shuttle
1 1 1 1 1 4
2 1 1 1 0 3
• HMC1 and HMC2 are identical. A shuttle cart transports pallets between stations.
• The shuttle must reach the origination point, load the pallet, travel to the
destination, and off-load the pallet.
• All machining operations average 10 minutes.
• To unload a part from the system and to load a new part onto the same pallet and
fixture takes about 12 minutes.
Industrial Engineering
• Load/unload time at machines is minimal.
• Each station has space for three pallets in input queue and one pallet in process.
• Sufficient storage, extra pallets can always be kept at the storage area.
• Of the nine pallets, six are part type 1 and three are part type 2.
IEE 561Production Systems
© Ronald G. Askin 2010
Industrial Engineering
Solution
• Stations 1 through 5 are L/U, TC, HMC1 and HMC2, HMC3, and the shuttle,
respectively.
N1 6
• Step1. Initialize. L11 L21 L31 L41 L51 1.2
5 5
N 3
L12 L22 L32 L52 2 0.75
4 4
L42 0
• Step2. Compute W.
L/U TC HMC1,HMC2 HMC3 Shuttle
1 33 27.5 18.75 20 2.75
2 32.4 27 18.5 0 2.70
5
Industrial Engineering W11(1) 12 (1.2)(12) 0.75(12) 33
Load/unload 6
5 3
TC W21(1) 10 (1.2)(10) (10) 27.5
6 4
IEE 561Production Systems
© Ronald G. Askin 2010
Industrial Engineering
Continue Computation
6
X 1(1) 0.05442parts / min
33 27.5 18.75 20 4(2.75)
3
X 2(1) 0.03488parts / min
32.4 27 18.5 0 3(2.7)
Industrial Engineering 6
• Step3. Computer Throughput. X 1(2) 0.05038parts / min
43.52 31.89 17.48 19.07 4(1.781)
3
X 2(2) 0.03304parts / min
42.59 25.59 17.25 0 3(1.787)
Compare with the results in the first iteration, we still have not converged.
Thus we start iteration 3.
……