Beruflich Dokumente
Kultur Dokumente
15
International Journal of Computer Applications (0975 – 8887)
Volume 182 – No. 10, August 2018
Information:
Lq = average number of customers in the queue
Fig 1 : Queue structured : multi channel single phase
P0 = probability of idle time
3.3 First Come First Served λ = customer arrival rate
The earliest process order will be served first. This FCFS
method is a common method used to solve public queuing μ = service level
problems [11]. c = number of service facilities
Table 1. FCFS Process Step IV determines Ls, the average number of customers in
Process Burst Time the system.
P1 24 𝜆
𝐿𝑠 = 𝐿𝑞 + ……………..…………………………(4)
3 𝜇
P2
3 Information:
P3 Ls = average number of customers in the system
by FCFS, process will be served like fig.2 Ls = average number of customers in the queue
λ = customer arrival rate
μ = service level
Fig 2 : FCFS Process
Step V determines Wq, the average customers time in the
3.4 Kendall Notation queue.
To understand the characteristics of a queuing system used 𝐿𝑞
Kendall Notation. Kendall notation is used to explain how the 𝑊𝑞 = ……………………….………………….(5)
𝜆
queue system that reviewed works and is modeled [12].
Information :
Step I shows the variable of data type Wq = average customers time in queue
1
𝜆= …………………………...........................(1) Lq = average number of customers in the queue
𝑇1/𝑁
λ = customer arrival rate
1
𝜇= .....................................................................(2) μ = service level
𝑇2/𝑁
λ = customers arrival rate Step VI specifies Ws, the average customers time in the
system.
μ = service level
T1 = total time between arrivals 1
𝑊𝑠 = 𝑊𝑞 + …………………..…………………….(6)
T2 = total customers service time 𝜇
Information :
N = total customers Ws = average customers time in the system
Step II determines the value of unemployment opportunity Wq = average customers time in queue
(P0)
μ = service level
𝑐=1 𝜆 𝑛
𝜇 3.5 Priority Queue
𝑃0 = ( + The Priority Queue (PQ) algorithm is part of the Shortest Job
𝑛!
𝑛=0 First (SJF) in scheduling algorithm. SJF is used when CPU
𝜆 𝑐 processes which have the shortest time will get priority. If two
𝜇 or more processes have the same time then the FCFS
𝜆
)−1 ............................(2) algorithm is used to solve the problem. PQ can be allocated to
𝑐! 1− 𝑐 .𝜇
processes with the highest priority. For the same priority done
Information: with FCFS [13].
16
International Journal of Computer Applications (0975 – 8887)
Volume 182 – No. 10, August 2018
4. DESIGN OF RESEARCH
4.1 Material and Tools
The tools and materials used in this research are some places
where there is a queue process in there. This research
especially do the sample in hospital in Surakarta City. This
research combine queue system before and after the new
system applied. The system process the data using FCFS and
PQ combination method. The system is made in web platform
and online.
Fig 3 : PQ Process
shown on fig.4.
17
International Journal of Computer Applications (0975 – 8887)
Volume 182 – No. 10, August 2018
16 08.00 13.00 13.15 special poly. Special Poly usually there is only one doctor /
service facility in each poly. So, in this case the value of c = 1.
17 08.10 13.15 13.23
18 08.30 13.25 13.40
4.2.3 Determining Average Number of Customers
in Queue
19 08.50 13.40 13.50 After getting the value of the idle time opportunity on the
queue, the next step is to determine the average number of
20 09.00 13.50 14.05
customers in the queue:
𝜆 𝑐 𝜆
Then, analyzing Kendall Notation 𝜇
.(𝑐.𝜇 )
𝐿𝑞 = 𝜆 0𝑃
4.2.1 Shows The Variable of Data Type 𝑐!(1−(𝑐.𝜇 ))2
The process of determining the data type variable is shown by 0.08 1 0.08
the following formula. .
0.09 1. 0.09
𝐿𝑞 = 0.08 2 . (0.11)
Counting customer arrivals: 1! 1−( )
1. 0.09
1 (0.89).(0.89)
𝜆= 𝐿𝑞 = . (0.11)
𝑇1/𝑁 1. 1−(0.89) 2
1 0.7921
𝜆= 𝐿𝑞 = . (0.11)
240/20 0.11 2
1 0.7921
𝜆= 𝐿𝑞 = . (0.11)
12 0.0121
0.7921
𝜆 = 0.08 𝐿𝑞 = . (0.11)
0.0121
Calculating service levels: 𝐿𝑞 = (65.46). (0.11)
𝜇=
1 𝐿𝑞 = 7.2
𝑇2/𝑁
1 The value of Lq is 7.2, rounded to 7. So the average number
𝜇= of customers in the queue is 7 customers in the queue.
227/20
1
𝜇= 4.2.4 Determining Average Number of Customers
11.35
in The System
𝜇 = 0.09 After getting the average number of customers in the queue,
the next step is to determine the average number of customers
4.2.2 Determines The Value of Unemployment
in the system:
Opportunity (P0)
After getting the value of the variables of the customer arrival 𝜆
rate and service level, the next step is to determine the value
𝐿𝑠 = 𝐿𝑞 +
𝜇
of unemployment opportunities: 0.08
𝐿𝑠 = 7.2 +
𝑐=1 𝜆 𝑛 0.09
𝜆 𝑐
𝜇 𝜇 𝐿𝑠 = 7.2 + 0.89
𝑃0 = ( + 𝜆
)−1 𝐿𝑠 = 8.09
𝑛! 𝑐! 1− 𝑐 .𝜇
𝑛=0
0.08 0 0.08 1 The value of Ls is 8.09, rounded to 8. So the average number
( ) ( )
𝑃0 = ( 0.09
+( 0.09
0.08 ))−1 of customers in the system is 8 customers in the system.
0! 1!(1−1(0.09))
1 0.89
4.2.5 Determining Average Time Customer in
𝑃0 = ( + )−1 Queue
1 1.(1−0.89)
0.89 −1 After getting the value of the average number of customers in
𝑃0 = (1 + ) the system, the next step is to determine the average customer
1(0.11) time in the queue:
0.89 −1
𝑃0 = (1 + ) 𝐿𝑞
0.11
−1 𝑊𝑞 =
𝑃0 = (1 + 8.09) 𝜆
7.2
𝑃0 = (9.09)−1 𝑊𝑞 =
0.08
1
𝑃0 = 𝑊𝑞 = 90
9.09
1
𝑃0 = The Wq value is 90. So the average customer time in the
9.09 queue is 90 minutes / customer.
𝑃0 = 0.11 or 11% 4.2.6 Determining Average Time Customer in
In the case of queuing at the hospital, the number of service System
facilities can be more than one, but the number of service After getting the average customer time value in the queue,
facilities more than one is usually found in the registration the next step is to determine the average time the customer is
service, while this research takes the case on the service in in the system:
18
International Journal of Computer Applications (0975 – 8887)
Volume 182 – No. 10, August 2018
1 4.3.2 Databases
𝑊𝑠 = 𝑊𝑞 +
𝜇 The databases is needed to store the data, which shown below.
1
𝑊𝑠 = 90 +
0.09
𝑊𝑠 = 90 + 11.11
𝑊𝑠 = 101.11
The value of Ws is 101.11. So the average customer time in
the system is 101.11 minutes / customer.
START
Yes No
Yes
PQ Time =
PQ Time ==
PQ Time+ average Yes FCFS Time + PQ Time
Other PQ Time
service time
19
International Journal of Computer Applications (0975 – 8887)
Volume 182 – No. 10, August 2018
Fig 9 : Detail Queue Status Page patients choose the Combine queues by inserting
type of queue: PQ queues into the FCFS
fastest time /
Fig. 9 is detail queue status page. The next step from queue request time
queue line according to the
method shown in the system
status page. Customer can monitor status of type of queue. flowchart
20
International Journal of Computer Applications (0975 – 8887)
Volume 182 – No. 10, August 2018
5.2.1 Shows The Variable of Data Type 5.2.4 Determining Average Number of Customers
Counting customer arrivals: in The System
1 𝜆
𝜆= 𝐿𝑠 = 𝐿𝑞 +
𝑇1/𝑁 𝜇
1 0.046
𝜆= 𝐿𝑠 = 0.78 +
360/16.65 0.08
1
𝜆= 𝐿𝑠 = 0.78 + 0.575
21.62
𝜆 = 0.046 𝐿𝑠 = 1.35
The value of Ls is 1.35, it beetwen 1 and 2. So the average
Calculating service levels:
1 number of customers in the system is 1 untill 2 customers in
𝜇= the system.
𝑇2/𝑁
1 5.2.5 Determining Average Time Customer in
𝜇=
281/23 Queue
1 𝐿𝑞
𝜇= 𝑊𝑞 =
12.217 𝜆
𝜇 = 0.08 0.78
𝑊𝑞 =
0.046
5.2.2 Determines The Value of Unemployment 𝑊𝑞 = 16.96
Opportunity (P0)
𝑐=1 𝜆 𝑛 𝜆 𝑐 The Wq value is 16.96, rounded to 17. So the average
𝜇 𝜇 −1 customer time in the queue is 17 minutes / customer.
𝑃0 = ( + 𝜆
)
𝑛! 𝑐! 1− 𝑐 .𝜇
𝑛=0 5.2.6 Determining Average Time Customer in
0.046 0.046 System
( 0.08 )0 ( 0.08 )1
𝑃0 = ( +( 0.046 ))−1 𝑊𝑠 = 𝑊𝑞 +
1
0! 1!(1−1(0.08))
𝜇
1 0.575 1
𝑃0 = ( + )−1 𝑊𝑠 = 16.96 +
1 1.(1−0.575) 0.08
𝑃0 = (1 +
0.575 −1
) 𝑊𝑠 = 16.96 + 12.5
1(0.425) 𝑊𝑠 = 29.46
0.575 −1
𝑃0 = (1 + ) The value of Ws is 29.46. So the average customer time in the
0.425
−1
𝑃0 = (1 + 1.35) system is 29 minutes / customer.
𝑃0 = (2.35)−1 6. CONCLUCION
1 Generally, FCFS is used for almost all types of queues for
𝑃0 =
2.35 human services. FCFS will still be a heap of customers if
there are many customers who come and no server is ready
𝑃0 = 0.425 or 42.5% yet. Now customers want to queue with no waiting, or at least
with the minimum waiting time. The solution of the problem
5.2.3 Determining Average Number of Customers is monitoring the queue with the online system. The online
in Queue system is still not enough, the customers want to order a
𝜆 𝑐 𝜆 certain time to be served, the solution is with the time request.
𝜇
.(𝑐.𝜇 )
𝐿𝑞 = 𝜆 𝑃0
Then FCFS is combined with PQ. In this case, research in the
𝑐!(1−(𝑐.𝜇 ))2 hospital queue. Before using this system the patient can queue
0.046 1 0.046
for up to 2 hours, after using this system patient waiting time
0.08
. 1. 0.08 on average reduced to 30 minutes. Another advantage is the
𝐿𝑞 = 0.046 2 . (0.425) hospital has experienced employee performance efficiency
1! 1−(1. 0.08 ) because there is no idle time for employees and there are not
(0.575).(0.575) many queues at the service place.
𝐿𝑞 = . (0.425)
1. 1−(0.575) 2
0.33 7. REFERENCES
𝐿𝑞 = 2 . (0.425) [1] Takagi, H., 2014, From Computer Science to Service
0.425
0.33 Science: Queues with Human Customers And Servers,
𝐿𝑞 = . (0.425) Faculty of Engineering, Information and Sistems,
0.18 University of Tsukuba, Tsukuba Science City, Ibaraki
𝐿𝑞 = (1.83). (0.425) 305-8573, Japan.
𝐿𝑞 = 0.78 [2] Gross, D., and Harris, C., 1998, Fundamental of Queuing
The value of Lq is 0.78, rounded to 1. So the average number Theory, Third Edition, USA: MC Graw Hill, pp. 28-
of customers in the queue is 1 customers in the queue. 30.
[3] Platz, T., and Osterdal, L., 2015, The Curse of The First-
in First-out Queue Discipline, University of Southern
Denmark, pp. 80-85.
21
International Journal of Computer Applications (0975 – 8887)
Volume 182 – No. 10, August 2018
[4] Pinedo, M., 2016, Schedulling: Theory, Algorithms, and [9] Pinedo, M., 2016, Schedulling: Theory, Algorithms, and
Sistem. NYU Stern School of Business, New York, pp. Sistem. NYU Stern School of Business, New York, pp.
57-58. 87-90.
[5] Erl, T., and Puttini, R., 2013, Cloud Computing: [10] Aminudin, 2005, Principal of Research Operation,
concepts, technology and Architecture, Prentice Hall. Jakarta : Erlangga.
[6] Hao, T., and Yifei, T., 2011, Study on Queuing Sistem [11] Platz, T., and Osterdal, L., 2015, The Curse of The First-
Optimization of Bank Based on BPR, Nanjing University in First-out Queue Discipline, University of Southern
of Science and Technology, School of Mechanical Denmark, 92-95.
Engineering 402, 210094 Nanjing, Republic of China.
[12] Gross, D., and Harris, C., 1998, Fundamental of Queuing
[7] Taufemback, C., dan Da Silva, S., 2012, Queuing Theory Theory, Third Edition, USA: MC Graw Hill, 101-110.
Applied to The Optimal Management of Bank Excess
Reserves. Program in Economics, Federal University of [13] Gross, D., and Harris, C., 1998, Fundamental of Queuing
Santa Catarina, Florianopolis SC88049-970, Brazil. Theory, Third Edition, USA: MC Graw Hill, 115-120.
[8] Walraevens, J., dan Bruneel, H., 2017, Delay analysis of [14] Arina, S., and Harahap, R., 2014, Analysis of Queue
multiclass queues with correlated train arrivals and a Service System in PT BNI, Department of Mathematics ,
hybrid priority/FIFO scheduling discipline. Department Faculty of Mathematics and Natural Sciences ,
of Telecommunication and Information Processing, University of Sumatera Utara.
Ghent University, Belgium [15] Erl, T., and Puttini, R., 2013, Cloud Computing:
concepts, technology and Architecture, Prentice Hall.
IJCATM : www.ijcaonline.org 22