You are on page 1of 3

TUGAS SIMULASI SISTEM INDUSTRI

MUHAMMAD ARIO | D071171516

EXERCISES
1. Consider a batch manufacturing process in which a machine processes jobs in batches of three units.
The process starts only when there are three or more jobs in the buffer in front of the machine.
Otherwise, the machine stays idle until the batch is completed. Assume that job interarrival times are
uniformly distributed between 2 and 8 hours, and batch service times are uniformly distributed
between 5 and 15 hours. Assuming the system is initially empty, simulate the system manually for
three batch service completions and calculate the following statistics:
• Average number of jobs in the buffer (excluding the batch being served
• Probability distribution of number of jobs in the buffer (excluding the batch being served)
• Machine utilization
• Average job waiting time (time in buffer)
• Average job system time (total time in the system, including processing time)
• System throughput (number of departing jobs per unit time)
Approach: After each arrival, schedule the next interarrival time, and when each batch goes into
service, schedule its service completion time. To obtain these quantities, use your calculator to
generate a sequence of random numbers (these are equally likely between 0 and 1, and statistically
independent of each other).
Then transform these numbers as follows:
a. To generate the next random interarrival time, A, generate the next randomnumber U from your
calculator, and set A = 2+6U .
b. To generate the next random batch service time, B, generate the next random number U from your
calculator, and set B=5+10U .If you cannot use random numbers from your calculator, use instead
determin-istic interarrival times, A=5 (the average of 2 and 8), and deterministic service times B=10
(the average of 5 and 15).
Answers:
a. Random interval time

Job ID @Rand() A=2+6*U @int(a) Actual input


1 0.062282 2.373695 3 3
2 0.909690 7.458141 7 7
3 0.168990 3.013941 3 3
4 0.667215 6.003294 6 6
5 0.706092 6.236554 6 6
6 0.396531 4.379191 4 4
7 0.489018 4.934113 4 4
8 0.288858 3.733153 3 3
9 0.670019 6.020116 6 6
Avg 4,56
TUGAS SIMULASI SISTEM INDUSTRI
MUHAMMAD ARIO | D071171516

Job ID A=2+6*U @int(a)


If A = 5
1 5 5
A = 2 + 6U 2 5 5
5-2 = 6U 3 5 5
4 5 5
3/6 = U 5 5 5
U = 0.5 6 5 5
7 5 5
8 5 5
9 5 5
Avg 5
expect 5
b.
Batch Service Time

Batch ID @Rand() B=5+10*U @int(a) Actual input


1 0.328042 8.280429833 8 8
2 0.784549 12.84549521 12 12
3 0.526235 10.26235078 10 10
Avg 10
expect 10

Remember, Number of job in one batch = 3


If B = 10 Batch ID B=5+10*U @int(a)
1 10 10
B = 5 + 10U
2 10 10
10-5 = 10U 3 10 10
avg 10
U = 0.5
expect 10
TUGAS SIMULASI SISTEM INDUSTRI
MUHAMMAD ARIO | D071171516

Job ID Inter-arrival clock time

1 3 3
2 7 10
3 3 13
4 6 19
5 6 25
6 4 29
7 4 33
8 3 36
9 6 42
earlier start Waiting for All job Actual Actual Non-
Batch ID Service time
time job arrive start End usetime
1 8 0 3 13 13 21 13
2 12 21 6 29 29 41 8
3 10 41 9 42 42 52 1
Total 30 22

Batch ID Start time End Time service time job wait Job system total
1 13 21 8 10 18
1 13 21 8 3 11
1 13 21 8 0 8
2 29 41 12 10 22
2 29 41 12 4 16
2 29 41 12 0 12
3 42 52 10 9 19
3 42 52 10 6 16
3 42 52 10 0 10
Total 42 132
Avg 7 26,40

• 1.62 Average Number of jobs in the buffer (excluding the batch being served)
• 0.81 Probability distribution of number of jobs in the buffer (excluding the batch being served)
• 42.3% Mechine Utilization
• 7 Average job waiting time (time in buffer)
• 26.40 Average job system time (total time in the system including processing time)
• 0.09 System Throughput (Number of departing jobs per unit of time

You might also like