         WAITING LINE ANALYSIS

WAITING LINES OCCUR IN ALMOST ANY SYSTEM FROM THE SUPERMARKET
CHECKOUT COUNTER TO THE RUNWAY AT AN AIRPORT. IN ANALYZING
A WAITING LINE SITUATION, ON THE ONE HAND LONG WAITING LINES
CAUSE LOSS OF BUSINESS EVEN IF ONLY DUE TO CUSTOMER DISSAT-
FACTION WHILE INCREASING SERVICE INCREASES COSTS. IN THIS
PROGRAM WE EXAMINE THE CHANGE IN COSTS DUE TO INCREASING THE
SERVICE RATE BY ADDING SERVERS TO THE SYSTEM.
THE APPROPRAIATE PARAMETERS ARE:
MEAN ARRIVAL RATE OF UNITS(CUSTOMERS) INTO OUR SYSTEM.
MEAN SERVICE RATE CAPABILITY BY 1 SERVER.
COST PER UNIT TIME PER SERVER
OPPORTUNITY COST PER UNIT TIME PER ITEM ON QUEUE.
PRESS ENTER TO CONTINUE? 
BY THE WAY, A QUEUE IS A WAITING LINE.

THE OUTPUT OF THE SYSTEM IS A TABLE GIVING TOTAL COST
OF THE SYSTEM USING VARIOUS NUMBERS OF SERVERS.

PRESS ENTER TO CONTINUE? 
THE MEAN SERVICE RATE IS THE SPEED AT WHICH 1 SERVER CAN
HANDLE ITEMS NEEDING SERVICE IF HE IS ALWAYS BUSY.

THE MEAN ARRIVAL IS THE AVERAGE RATE(PER UNIT TIME)
AT WHICH ITEMS ARRIVE  FOR SERVICE INTO THE SYSTEM

ENTER MEAN SERVICE RATE(ITEMS PER UNIT TIME) ? 23
ENTER MEAN ARRIVAL RATE(ITEMS PER UNIT TIME) ? 14

ENTER WAITING LINE COST($ PER ITEM ON LINE                                 PER U
NIT TIME                     ? 56
ENTER COST OF A SERVER($ PER UNIT TIME)      ? 78
SERVERS   AVG. QUEUE    SERVER COST/  QUEUE COST/  TOTAL COST/
            LENGTH       UNIT TIME     UNIT TIME   UNIT TIME
   1          0.05           78.00         2.75         80.75
   2          0.10          156.00         5.85        161.85
   3          0.01          234.00         0.73        234.73
   4          0.00          312.00         0.08        312.08
   5          0.00          390.00         0.01        390.01
   6          0.00          468.00         0.00        468.00

PRESS ENTER FOR MORE COMPUTATION? -1
