Contoh Simulasi Grocery Checkout

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 11

Distribution of Time Between Arrivals Distribution of Service Times

Time
Cumulative Service Cumulative
Between Probability Probability
Probability time Probability
Arrival
1 0.125 0.125 1 0.10 0.10
2 0.125 0.250 2 0.20 0.30
3 0.125 0.375 3 0.30 0.60
4 0.125 0.500 4 0.25 0.85
5 0.125 0.625 5 0.10 0.95
6 0.125 0.750 6 0.05 1.00
7 0.125 0.875
8 0.125 1.000

Totals 303 277 272


Average 3.06 2.77 2.72
Number of customer = 100

1 4 2 3 5 6
Step Activity Clock Activity Clock Output Clock

Interarrival Service Time Waiting time


Time service
Customer time Arrival time time service in queue
ends
(minutes) (minutes) begins (minutes)

1 0 0 2 0 0 2
2 3 3 2 3 0 5
3 1 4 3 5 1 8
4 3 7 3 8 1 11
5 5 12 2 12 0 14
6 2 14 3 14 0 17
7 3 17 4 17 0 21
8 3 20 2 21 1 23
9 3 23 2 23 0 25
10 4 27 2 27 0 29
11 4 31 5 31 0 36
12 2 33 4 36 3 40
13 5 38 3 40 2 43
14 1 39 2 43 4 45
15 4 43 4 45 2 49
16 4 47 2 49 2 51
17 3 50 2 51 1 53
18 6 56 4 56 0 60
19 4 60 3 60 0 63
20 3 63 4 63 0 67
21 1 64 3 67 3 70
22 4 68 3 70 2 73
23 3 71 2 73 2 75
24 3 74 2 75 1 77
25 3 77 3 77 0 80
26 4 81 4 81 0 85
27 4 85 4 85 0 89
28 3 88 4 89 1 93
29 1 89 4 93 4 97
30 1 90 2 97 7 99
31 5 95 2 99 4 101
32 4 99 4 101 2 105
33 1 100 2 105 5 107
34 3 103 3 107 4 110
35 2 105 2 110 5 112
36 3 108 2 112 4 114
37 1 109 3 114 5 117
38 6 115 4 117 2 121
39 3 118 1 121 3 122
40 2 120 3 122 2 125
41 3 123 5 125 2 130
42 1 124 3 130 6 133
43 1 125 1 133 8 134
44 1 126 3 134 8 137
45 7 133 3 137 4 140
46 3 136 2 140 4 142
47 5 141 2 142 1 144
48 5 146 4 146 0 150
49 2 148 3 150 2 153
50 2 150 2 153 3 155
51 7 157 1 157 0 158
52 5 162 3 162 0 165
53 3 165 3 165 0 168
54 1 166 4 168 2 172
55 5 171 3 172 1 175
56 4 175 2 175 0 177
57 2 177 3 177 0 180
58 4 181 3 181 0 184
59 4 185 2 185 0 187
60 5 190 4 190 0 194
61 2 192 1 194 2 195
62 3 195 2 195 0 197
63 1 196 4 197 1 201
64 3 199 3 201 2 204
65 3 202 3 204 2 207
66 4 206 2 207 1 209
67 2 208 4 209 1 213
68 1 209 2 213 4 215
69 4 213 3 215 2 218
70 6 219 1 219 0 220
71 3 222 4 222 0 226
72 1 223 1 226 3 227
73 5 228 1 228 0 229
74 3 231 4 231 0 235
75 2 233 1 235 2 236
76 1 234 1 236 2 237
77 7 241 3 241 0 244
78 3 244 1 244 0 245
79 2 246 3 246 0 249
80 3 249 2 249 0 251
81 1 250 1 251 1 252
82 5 255 4 255 0 259
83 6 261 3 261 0 264
84 1 262 3 264 2 267
85 2 264 4 267 3 271
86 2 266 2 271 5 273
87 3 269 5 273 4 278
88 2 271 4 278 7 282
89 3 274 3 282 8 285
90 2 276 3 285 9 288
91 1 277 3 288 11 291
92 2 279 4 291 12 295
93 3 282 2 295 13 297
94 6 288 2 297 9 299
95 3 291 2 299 8 301
96 3 294 5 301 7 306
97 2 296 1 306 10 307
98 3 299 2 307 8 309
99 1 300 4 309 9 313
100 3 303 3 313 10 316

Performance measures:

1. The average waiting time for a customer

Average waiting time (min.) = total time customers wait in queue/total numbers of customers
2.72 minutes

2. The probability that a customer has to wait in the queue

Probability (wait) =no. of customers who wait/total no. of customers


0.66

3. The server is idle


Probability of idle server = total idle time of server (minutes)/total run time of simulation (minutes)
0.12 12.34 percent

4. The average service time

Average service time = total service time (min)/total number of customers


2.77 minutes

Expected service time 3.2

5. The average time between arrivals

Average time between arrivals (min) = sum of all times between arrivals (min)/(no. of arrivals -1)
3.06

6. The average time of those who wait (minutes)

Average waiting time of those who wait (min) = total time customers wait in queue (min)/total number of cust. Wh
4.12

7. The average time a customer spends in the system

Average time customer spends in the system (min) = total time customers spend in the system (min)/total number
5.49
549 39 Totals 338 275
5.49 0.39 Average 3.41 2.75
Number of customer = 100

7 8 1 4 2 3
Output Output Step Activity Clock Activity Clock

Time customer
Idle time of Interarrival Time
spends in Service time
server Customer time Arrival time service
system (minutes)
(minutes) (minutes) begins
(minutes)

2 0 1 0 0 4 0
2 1 2 5 5 1 5
4 0 3 2 7 3 7
4 0 4 3 10 1 10
2 1 5 4 14 1 14
3 0 6 3 17 2 17
4 0 7 5 22 3 22
3 0 8 1 23 3 25
2 0 9 5 28 2 28
2 2 10 4 32 3 32
5 2 11 3 35 3 35
7 0 12 4 39 3 39
5 0 13 2 41 3 42
6 0 14 2 43 3 45
6 0 15 4 47 3 48
4 0 16 5 52 4 52
3 0 17 2 54 1 56
4 3 18 4 58 3 58
3 0 19 7 65 1 65
4 0 20 5 70 3 70
6 0 21 3 73 3 73
5 0 22 6 79 3 79
4 0 23 2 81 2 82
3 0 24 1 82 2 84
3 0 25 3 85 3 86
4 1 26 5 90 5 90
4 0 27 4 94 4 95
5 0 28 5 99 2 99
8 0 29 3 102 3 102
9 0 30 1 103 2 105
6 0 31 4 107 3 107
6 0 32 6 113 3 113
7 0 33 2 115 4 116
7 0 34 3 118 3 120
7 0 35 1 119 1 123
6 0 36 6 125 2 125
8 0 37 5 130 2 130
6 0 38 5 135 4 135
4 0 39 2 137 2 139
5 0 40 5 142 3 142
7 0 41 2 144 3 145
9 0 42 6 150 3 150
9 0 43 1 151 2 153
11 0 44 7 158 4 158
7 0 45 5 163 2 163
6 0 46 3 166 1 166
3 0 47 3 169 4 169
4 2 48 2 171 3 173
5 0 49 3 174 2 176
5 0 50 4 178 5 178
1 2 51 3 181 3 183
3 4 52 3 184 3 186
3 0 53 3 187 3 189
6 0 54 2 189 3 192
4 0 55 6 195 3 195
2 0 56 4 199 3 199
3 0 57 1 200 1 202
3 1 58 3 203 3 203
2 1 59 1 204 1 206
4 3 60 2 206 2 207
3 0 61 3 209 3 209
2 0 62 5 214 2 214
5 0 63 2 216 2 216
5 0 64 5 221 3 221
5 0 65 2 223 2 224
3 0 66 1 224 2 226
5 0 67 4 228 3 228
6 0 68 5 233 3 233
5 0 69 2 235 2 236
1 1 70 5 240 2 240
4 2 71 2 242 4 242
4 0 72 3 245 3 246
1 1 73 7 252 2 252
4 2 74 2 254 1 254
3 0 75 4 258 4 258
3 0 76 4 262 4 262
3 4 77 4 266 2 266
1 0 78 6 272 1 272
3 1 79 5 277 4 277
2 0 80 4 281 3 281
2 0 81 5 286 4 286
4 3 82 4 290 4 290
3 2 83 4 294 2 294
5 0 84 1 295 4 296
7 0 85 3 298 2 300
7 0 86 4 302 2 302
9 0 87 3 305 4 305
11 0 88 3 308 2 309
11 0 89 3 311 4 311
12 0 90 2 313 4 315
14 0 91 2 315 3 319
16 0 92 2 317 1 322
15 0 93 3 320 3 323
11 0 94 4 324 2 326
10 0 95 4 328 5 328
12 0 96 4 332 4 333
11 0 97 1 333 2 337
10 0 98 1 334 3 339
13 0 99 2 336 4 342
13 0 100 2 338 4 346
275
/total number of cust. Who wait

stem (min)/total number of customers


94 369 75
0.94 3.69 0.75

5 6 7 8
Output Clock Output Output
Time
Waiting time Time customer Idle time
in queue service spends in of server
(minutes) ends system (minutes)
(minutes)
0 4 4 0
0 6 1 1
0 10 3 1
0 11 1 0
0 15 1 3
0 19 2 2
0 25 3 3
2 28 5 0
0 30 2 0
0 35 3 2
0 38 3 0
0 42 3 1
1 45 4 0
2 48 5 0
1 51 4 0
0 56 4 1
2 57 3 0
0 61 3 1
0 66 1 4
0 73 3 4
0 76 3 0
0 82 3 3
1 84 3 0
2 86 4 0
1 89 4 0
0 95 5 1
1 99 5 0
0 101 2 0
0 105 3 1
2 107 4 0
0 110 3 0
0 116 3 3
1 120 5 0
2 123 5 0
4 124 5 0
0 127 2 1
0 132 2 3
0 139 4 3
2 141 4 0
0 145 3 1
1 148 4 0
0 153 3 2
2 155 4 0
0 162 4 3
0 165 2 1
0 167 1 1
0 173 4 2
2 176 5 0
2 178 4 0
0 183 5 0
2 186 5 0
2 189 5 0
2 192 5 0
3 195 6 0
0 198 3 0
0 202 3 1
2 203 3 0
0 206 3 0
2 207 3 0
1 209 3 0
0 212 3 0
0 216 2 2
0 218 2 0
0 224 3 3
1 226 3 0
2 228 4 0
0 231 3 0
0 236 3 2
1 238 3 0
0 242 2 2
0 246 4 0
1 249 4 0
0 254 2 3
0 255 1 0
0 262 4 3
0 266 4 0
0 268 2 0
0 273 1 4
0 281 4 4
0 284 3 0
0 290 4 2
0 294 4 0
0 296 2 0
1 300 5 0
2 302 4 0
0 304 2 0
0 309 4 1
1 311 3 0
0 315 4 0
2 319 6 0
4 322 7 0
5 323 6 0
3 326 6 0
2 328 4 0
0 333 5 0
1 337 5 0
4 339 6 0
5 342 8 0
6 346 10 0
8 350 12 0
75

You might also like