model antrian by : render, ect. m/m/1 example 2 five copy machines break down at um st. louis per...

21
Model Antrian Model Antrian By : Render, ect By : Render, ect

Post on 22-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Model AntrianModel Antrian

By : Render, ectBy : Render, ect

M/M/1 Example 2M/M/1 Example 2Five copy machines break down at UM St. Louis per eight hour day on average. The average service time for repair is one hour and 15 minutes.

= 5/day ( = 0.625/hour)

1/ = 1.25 hours = 0.15625 days = 1 every 1.25 hours = 6.4/day

Q1: What is the number of “customers” in the system?

L5/day

S = 6.4/day-5/day

= 3.57 broken copiers

M/M/1 Example 2M/M/1 Example 2 = 5/day (or = 0.625/hour) = 6.4/day (or = 0.8/hour) Q2: How long is the average wait in line?

W 5q =

6.4(6.4 - 5)= 0.558 days (or 4.46 hours)

W 0.625q =

0.8(0.8 - 0.625) = 4.46 hours

( )

M/M/1 Example 2M/M/1 Example 2

Q3: How much time per day are there 2 or more broken copiers waiting for the repair person?

2 or more “in line” = more than 2 in the system

356.4

0.477x 480 min./day = 229 min. = 3 hr 49 min.

Pn>2 = 0.477 (47.7% of the time)

= 5/day (or = 0.625/hour) = 6.4/day (or = 0.8/hour)

=

Type: Multiple servers; single-phase.

Input source: Infinite; no balks, no reneging.

Queue: Unlimited; multiple lines; FIFO (FCFS).

Arrival distribution: Poisson.

Service distribution: Negative exponential.

M/M/S ModelM/M/S Model

M/M/S EquationsM/M/S Equations

λMμMμ

μλ

M!1

μλ

n!1

1P

M1M

0n

n0

Probability of zero people or units in the system:

PM!ML

M

sAverage number of people or units in the system:

PM!MW

M

sAverage time a unit spends in the system:

Note: M = number of servers in these equations

M/M/S EquationsM/M/S Equations

sq

sq

WW

LLAverage number of people or units waiting for service:

Average time a person or unit spends in the queue:

M/M/2 Model EquationsM/M/2 Model Equations

(2 + )(2 -)

Ws = 4 42 - 2

Lq = Wq

Wq = 2

Ls = Ws

P0 = 2 - 2 +

Average time in system:

Average time in queue:

Average # of customers in queue:

Average # of customers in system:

Probability the system is empty:

M/M/2 ExampleM/M/2 ExampleAverage arrival rate is 10 per hour. Average service time is 5 minutes for each of 2 servers.

= 10/hr, = 12/hr, and S=2

Q1: What is the average wait in the system?

Ws = 412 4(12)2 -(10)2

= 0.1008 hours = 6.05 minutes

M/M/2 ExampleM/M/2 Example = 10/hr, = 12/hr, and S=2

Q2: What is the average wait in line?

Also note:

so

Ws =1 Wq +

Wq =1 Ws - = 0.1008 - 0.0833 =0.0175 hrs

Wq = (10)2

12 (212 + 10)(212 - 10)= 0.0175 hrs = 1.05 minutes

M/M/2 ExampleM/M/2 Example = 10/hr, = 12/hr, and S=2

Q3: What is the average number of customers in line and in the system?

L q = Wq = 10/hr 0.0175 hr = 0.175 customers

L s = Ws = 10/hr 0.1008 hr = 1.008 customers

M/M/2 ExampleM/M/2 Example = 10/hr and = 12/hr

Q4: What is the fraction of time the system is empty (server is idle)?

= 41.2% of the timeP0 = 212 - 10 212 + 10

M/M/1, M/M/2 and M/M/3M/M/1, M/M/2 and M/M/31 server 2 servers 3 servers

Wq 25 min. 1.05 min. 0.1333 min. (8 sec.)

0.417 hr 0.0175 hr 0.00222 hr

WS 30 min. 6.05 min. 5.1333 min.

Lq 4.167 cust. 0.175 cust. 0.0222 cust.

LS 5 cust. 1.01 cust. 0.855 cust.

P0 16.7% 41.2% 43.2%

Service Cost per DayService Cost per Day = 10/hr and = 12/hr Suppose servers are paid $7/hr and work 8 hours/day and the marginal cost to serve each customer is $0.50.

M/M/1 Service cost per day = $7/hr x 8 hr/day + $0.5/cust x 10 cust/hr x 8 hr/day = $96/day

M/M/2 Service cost per day = 2 x $7/hr x 8 hr/day + $0.5/cust x 10 cust/hr x 8 hr/day = $152/day

Customer Waiting Cost per DayCustomer Waiting Cost per Day = 10/hr and = 12/hr Suppose customer waiting cost is $10/hr.

M/M/1 Waiting cost per day = $10/hr x 0.417 hr/cust x 10 cust/hr x 8 hr/day = $333.33/dayM/M/1 total cost = 96 + 333.33 = $429.33/day

M/M/2 Waiting cost per day = $10/hr x 0.0175 hr/cust x 10 cust/hr x 8 hr/day =$14/dayM/M/2 total cost = 152 + 14 = $166/day

Unknown Waiting CostUnknown Waiting CostSuppose customer waiting cost is not known = C.

M/M/1 Waiting cost per day = Cx 0.417 hr/cust x 10 cust/hr x 8 hr/day = 33.33C $/dayM/M/1 total cost = 96 + 33.33C

M/M/2 Waiting cost per day = Cx 0.0175 hr/cust x 10 cust/hr x 8 hr/day =1.4C $/dayM/M/2 total cost = 152 + 1.4C

M/M/2 is preferred when 152 + 1.4C < 96 + 33.33C orC > $1.754/hr

M/M/2 and M/M/3M/M/2 and M/M/3Q: How large must customer waiting cost be for M/M/3 to be preferred over M/M/2?

M/M/2 total cost = 152 + 1.4C

M/M/3 Waiting cost per day = Cx 0.00222 hr/cust x 10 cust/hr x 8 hr/day = 0.1776C $/dayM/M/3 total cost = 208 + 0.1776C

M/M/3 is preferred over M/M/2 when 208 + 0.1776C < 152 + 1.4C

C > $45.81/hr

= Mean number of arrivals per time period. Example: 3 units/hour.

= Mean number of arrivals served per time period. Example: 4 units/hour.

1/ = 15 minutes/unit.

Remember: Remember: & & Are Rates Are Rates

If average service time is 15 minutes, then μ is 4 customers/hour

M/D/S Constant service time; Every service time is the same. Random (Poisson) arrivals.

Limited population. Probability of arrival depends on number in service.

Limited queue length. Limited space for waiting.

Many others...

Other Queuing ModelsOther Queuing Models

Wait time & queue length increase rapidly for >0.7 Queue is small until system is about 70% busy; then queue grows

very quickly.

Pooling servers is usually advantageous. Airport check-in vs. Grocery stores.

Variance in arrivals & service times causes long waits. Long service times cause big waits.

Cost of waiting is nonlinear. Twice as long wait may be more than twice as bad.

Other ConsiderationsOther Considerations

Reduce effect of waiting. Distract customers with something to do, look at

or listen to. Music, art, mirrors, etc.

Provide feedback on expected length of wait. “Your call will be answered in 6 minutes…”

Use self service can reduce load on servers. Self-service at grocery stores.

More ConsiderationsMore Considerations