Вы находитесь на странице: 1из 6

Question 1

1 Sample Space S = {1, 2, 3, 4, 5, 6, 7, 8}


2 pmf of X
2
Xi P(Xi) Xi*P(Xi) Xi
1 0.027778 0.027778 1
2 0.055556 0.111111 4
3 0.083333 0.25 9
4 0.111111 0.444444 16
5 0.138889 0.694444 25
6 0.166667 1 36
7 0.194444 1.361111 49
8 0.222222 1.777778 64

3 Expectation

E(X) = 5.666667

Variance

Var(X) = 3.888889

Part of Question 2 answer


Table hand Simulation Base time unit = Min

Just Finished Event Variables

Entity
No. Time Event Type QA(t) QB(t) A(t) B(t)

- 0 INTI 0 0 0 0

A1 0 Arr 0 0 1 0

A2 3.46 Arr 1 0 1 0
A2 3.46 Arr 1 0 1 0

A1 3.46 Dep from A 0 0 1 1

A3 4.06 Arr 1 0 1 1

Dep from
A1 5.08 1 0 1 0
Sys

A4 5.31 Arr 2 0 1 0

A2 11.36 Dep from A 1 0 1 1

A5 14.21 Arr 2 0 1 1

A3 14.96 Dep from A 1 1 1 1

Dep from
A2 16.06 1 0 1 1
Sys

A6 18.71 Arr 2 0 1 1

- 20 End 2 0 1 1

Area Under the QA(t) Curve = 24.03

Area Under the QA(t) Curve = 1.1


Xi2*P(Xi)
0.027777777777778
0.222222222222222
0.75
1.77777777777778
3.47222222222222
6
9.52777777777778
14.2222222222222

Attributes Statistical Accumulators

Departure from Total


machie A or #Passed #Passed Total waiting waiting time
Arrival time for through through time in Queue in Queue of
Arrival times of machie B (in Queue of Queue of of machine A machine B #Departure
entities (in Queue A) Queue B) Machie A Machie B so far [TAq] so far [TBq] the System

() () 0 0 0 0 0

A1-00.00 A1-03.46 1 0 0 0 0

A1-00.00
A1-03.46 1 0 0 0 0
A2-03.46
A1-03.46 1 0 0 0 0
A2-03.46

A1-00.00
A1-03.46 2 1 0 0 0
A2-03.46

A2-03.46
A1-03.46 2 1 0 0 0
A3-04.06

A2-03.46
A1-03.46 2 1 0 0 1
A3-04.06
A2-03.46
A3-04.06 () 2 1 0 0 1
A4-05.31
A2-03.46
A3-04.06 (11.36-4.06) =
A2-11.36 3 2 0 1
7.3
A4-05.31

A2-03.46
A3-04.06
() 3 2 7.3 0 1
A4-05.31
A5-14.21
A2-03.46
A3-04.06
A3-14.96 4 2 16.95 0 1
A4-05.31
A5-14.21
A2-03.46
A3-04.06 (16.06-
A3-14.96 4 3 16.95 2
A4-05.31 14.96)= 1.10
A5-14.21
A3-04.06
A4-05.31
A3-14.96 4 3 16.95 1.1 2
A5-14.21
A5-18.71
A3-04.06
A4-05.31
A3-14.96 4 3 16.95 1.1 2
A5-14.21
A5-18.71
Event Calender

Total times in
System so Entity
far [Ts] No. Time Event Type
1 0 Arr
0 - 20 End
A2 3.46 Arr
0 A1 3.46 Dep from A
- 20 End
A1 3.46 Dep from A
0 A3 4.06 Arr
0
- 20 End
A3 4.06 Arr
A1 5.08 Dep from Sys
0
A2 11.36 Dep from A
- 20 End
A1 5.08 Dep from Sys
A4 5.31 Arr
0
A2 11.36 Dep from A
- 20 End
A4 5.31 Arr
(5.08-0.0) =
A2 11.36 Dep from A
5.08
- 20 End
A2 11.36 Dep from A
5.08 A5 14.21 Arr
- 20 End
A5 14.21 Arr
A3 14.96 Dep from A
5.08
A2 16.06 Dep from Sys
- 20 End
A3 14.96 Dep from A
A2 16.06 Dep from Sys
5.08
A6 18.71 Arr
- 20 End
A2 16.06 Dep from Sys
A6 18.71 Arr
5.08
- 20 End
A4 26.01 Dep from A
A6 18.71 Arr
5.08+(16.06- - 20 End
3.46) = 17.68 A4 26.01 Dep from A
A3 28.86 Dep from Sys
- 20 End
A4 26.01 Dep from A
17.68
A3 28.86 Dep from Sys
A7 37.9 Arr
A4 26.01 Dep from A
A3 28.86 Dep from Sys
Z
A7 28.86 Arr

Вам также может понравиться