














Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!















After installing Process Model from the book’s CD-ROM, you can start Process Model by selecting Start Programs Process Model 4. You will see the screen shown in Figure 1, where some key icons have been labeled. It is simple to simulate an M / M /1 queuing system having l 10 arrivals/hour and m 15 customers/hour. See file MM1.igx. Assume that these are calls for directory assistance.
Step 1 Click on one of the arrival icons (a person or a phone) and drag the icon to the blank part of the screen (called the Layout portion). We have chosen to use the phone icon. Your screen should look like Figure 2.
Step 2 Select the Process rectangle and drag it right over the arrival icon. Click on it and drag it to the right. You will now have a double-arrowed connection between the arrival icon and the Process rectangle. The double-arrowed icon indicates the arrival of entities into the system. Later we will tell Process Model that interarrival times are exponential with mean 6 minutes. After Taking Calls is typed within the Process rectangle, the Lay- out window looks as shown in Figure 3.
Step 3 Choose one of the server icons to represent a telephone operator (say, the person with the computer) and drag this icon to the Layout window above the Take Calls Process rectangle. Then type the word “operator” to indicate a phone operator. Next, click on the Connector Line tool in the Toolbox and place the cursor over the operator. We then click once and drag a connection down to the Take Calls activity. This indicates that the oper- ator can take calls. The Layout window should now look as shown in Figure 4.
Step 4 Next, tell Process Model to make interarrival times exponential. Process Model works off the mean interarrival time or service time, not the arrival or service rates. Process Model supports many distributions, including the triangular, normal, and Erlang random variables. For now, we will use the exponential distribution. Since the average time between arrivals is 6 minutes, we will model the interarrival times as E(6). (E stands for exponential.) To enter the interarrival time distribution, click on the double arrow con- necting Call to Take Calls and fill in the dialog box as shown in Figure 5. Entering Peri- odic and E(6) ensures that interarrival times will be generated over and over as indepen- dent exponential random variables with mean 6.
1192 C H A P T E R 2 2 Simulation with Process Model
Step 5 We now need to tell Process Model that service times are exponential with mean
Step 6 We have now completed the model setup. Select File Save As and save the model. (All models have the suffix .igx.)
Step 7 To run the simulation, select Simulation and then Options and fill in the dialog box as shown in Figure 7.
We have chosen to run the system for 4,000 hours. Choosing a Warmup length of 1 hour, the first hour of running the simulation will not be used in the collection of sta- tistics. To start the simulation, choose Simulation Save and Simulation. As the simulation progresses, telephone calls moving through the flowchart illustrate the flow of calls through the process. Resources or servers will show a green light when the resource is being utilized and a blue light when idle. Counters above and to the left of each activity represent the number of calls waiting to be processed. The speed of the simulation can be
1194 C H A P T E R 2 2 Simulation with Process Model
controlled by moving the Speed Control bar, left for slower and right for faster. By choos- ing Simulation End Simulation, you may stop the simulation at any time. During the sim- ulation, an on-screen scoreboard tracks the following quantities:
Quantity Processed (total number of units to leave the system)
Cycle Time (average time a unit spends in the system)
2 2. 2 Simulating an M/M/2 System 1195
Value Added Time (time a unit spends in service)
Cost Per Unit (if costs are associated with the resources, the cost incurred per unit serviced is computed)
After completing the simulation, you are asked if you want to view the output. If so, you will see an output similar to Figure 8, and the output may be saved as a text file. Figure 8 includes comments (in boldface ) to explain the key portions of the output. If we treat this output as representative of the system’s steady state, we have the fol- lowing parameter estimates:
0 .
0 1 .
Ws 4.01 minutes
Wq 7.71 minutes
W 11.72 minutes
For an M / M /1 system, we can compute the steady-state values of these quantities exactly. Since r 10/15 .667, we find from Equation (24) of Chapter 20 that 0 1 .667 .333. From (25) of Chapter 20, we find that 1 .667(1 .667) .222. Thus, 0 1 .555. Clearly Ws 4 minutes. From Formula (31) of Chapter 20, W 15 ^1 10 .2 hour 12 minutes. Then Wq 12 4 8 minutes. Note that the simulation yields very close agreement with the steady-state estimates.
22.2 Simulating an M/M/2 System
Let us modify the previous example by changing the number of operators to 2 and en- suring that up to 2 operators can be working on calls at the same time. See file MM2.igx. To change the number of operators to 2, click on the resource and fill in the dialog box as shown in Figure 9. To ensure that two operators can work on calls at the same time click on the Process rectangle Take Calls and modify it as in Figure 10. After saving this file as MM2.igx and running it for 1,000 hours, we obtain the output shown in Figure 11. (Boldface comments explain key portions.)
2 2. 2 Simulating an M/M/2 System 1197
Average Number Minutes Resource Scheduled Of Times Per Name Units Hours Used Usage % Util
Staff 1 3985.90 39581 4.01 66. Staff was busy 66.37% of the time, and average staff usage per call processed was 4.01 minutes.
Resource Scheduled % % % Name Hours In Use Idle Down
Staff 3985.90 66.37 33.63 0.
Staff was busy 66.37% of the time. ENTITY SUMMARY (Times in Scoreboard time units)
Average Average Cycle VA Entity Qty Time Time Average Name Processed (Minutes) (Minutes) Cost
Call 39580 11.72 4.01 1.
Each call spent an average of 11.72 minutes in the system.
(Continued)
1198 C H A P T E R 2 2 Simulation with Process Model
General Report Output from C:\Program Files\ProcessModel 4\second.mod Date: Aug/13/2002 Time: 03:08:49 PM
Scenario : Normal Run Replication : 1 of 1 Warmup Time : 1 hr Simulation Time : 4001 hr
ACTIVITIES
Average Activity Scheduled Total Minutes Average Maximum Current Name Hours Capacity Entries Per Entry Contents Contents Contents % Util
Take Calls inQ 4000 999 39968 0.51 0. 7 0 0. We see that an average of almost exactly 10 arrivals per hour have been observed. Take Calls 4000 2 39970 4.03 0. 2 0 33.
ACTIVITY STATES BY PERCENTAGE (Multiple Capacity)
% Activity Scheduled % Partially % Name Hours Empty Occupied Full
Take Calls inQ 4000 94.34 5.66 0. Take Calls 4000 49.58 33.64 16. We see that 5.66% of the time, people are waiting. Note from theM/M/s template below that probability of people waiting = probability >2 people present = 1 - .5 - .333 - .111 = .0566.
RESOURCES
Average Number Minutes Resource Scheduled Of Times Per Name Units Hours Used Usage % Util
Operator.1 1 4000 19971 4.03 33. Operator.2 1 4000 19999 4.03 33. Operator 2 8000 39970 4.03 33. Each operator’s mean service time is 4.03 minutes (compared to the 4
1200 C H A P T E R 2 2 Simulation with Process Model
two tasks. One worker is available to install the engine and can service an average of 60 cars per hour. After the engine is installed, the car goes to the tire station and waits for its tires to be attached. Three workers serve at the tire station. Each works on one car at a time and can put tires on a car in an average of 3 minutes. Assume that interarrival times and service times are exponential. Simulate this system for 400 hours.
Solution See file Carassembly.igx. The key to creating a queuing network with Process Model is to build the diagram one service center at a time. We begin by creating the arrivals as in Section 22.1. Then we create the engine production center as in Section 22.1. Then we drag the Process rectangle over the Engine production center and pull it to the right to create the Tire production center. Of course, we must change the number of servers at the Tire production center to 3 (and also change the capacity of the tire operation to 3). We must enter service times of E(1) for the Engine production center and E(3) for the Tire production center. For the interarrival times, we must enter E(1.11), since there is an ar- rival an average of every 60/54 1.1 minutes. The flowchart looks like Figure 12. Note that clicking on the arrow connecting the Engine and Tire rectangles results in the dialog box shown in Figure 13. This indicates that 100% of all cars completing En- gine installation are sent to the Tire station. We also adjusted the Move time from 1 minute to 0 minute. The Move time indicates how many minutes are needed to move from the Engine to the Tire station. Suppose, for example 70% of the jobs completing Engine in- stallation are sent to other stations (such as Final inspection), and 30% are sent on to the Tire station. We would model this by changing the percentage on the arrow joining En- gine and Final inspection to 70%. The percentage going from Engine to Tire would auto- matically adjust to 30%. We will see how this works in the next example.
2 2. 3 Simulating a Series System 1201
General Report Output from C:\Program Files\ProcessModel 4\carassembly.mod Date: Aug/15/2002 Time: 10:14:13 AM
Scenario : Normal Run Replication : 1 of 1 Warmup Time : 1 hr Simulation Time : 404.
Average Activity Scheduled Total Minutes Average Maximum Current Name Hours Capacity Entries Per Entry Contents Contents Contents % Util
Engine inQ 403.88 999 21741 8.32 7.46 54 1 0. Engine 403.88 1 21741 1.00 0.89 1 1 89. Tire inQ 403.88 1000 21743 8.00 7.18 46 0 0. Tire 403.88 3 21746 3.02 2.71 3 3 90. An average of 21,741/403.88 = 53.83 arrivals per hour were observed.
ACTIVITY STATES BY PERCENTAGE (Multiple Capacity)
% Activity Scheduled % Partially % Name Hours Empty Occupied Full
Engine inQ 403.88 19.24 80.76 0. Tire inQ 403.88 25.74 74.26 0. Tire 403.88 2.37 15.20 82. 19% of the time, no cars are waiting for engine installation. 26% of the time, no cars are waiting for tire installation. 82.4% of the time, all tire installers are busy; 2.37% of the time, no tire installers are busy; and 15.2% of the time, some (but not all) tire installers are busy.
After running the simulation for 400 hours (with a 1-hour warmup period), we ob- tained the results shown in Figure 14 (explanatory comments in boldface).
2 2. 4 Simulating Open Queuing Networks 1203
The Effect of a Finite Buffer
Suppose we have only enough space for two cars to wait for tire installation. This is called a buffer of size 2. We assume that if there are two cars waiting for tire installation, the engine installation center must shut down until there is room to “store” a car waiting for tire installation. To model this, change the Input Capacity in the Tire Activity dialog box to 2. (See Figure 15.) Rerunning the simulation, we now find the average time for a car in the system is nearly 6 hours! Clearly, we need more storage space. Even with a buffer of size 10, total time in the system is increased by around 50%.
22.4 Simulating Open Queuing Networks
In this section, we show how to use Process Model to simulate open queuing networks. To illustrate, we simulate Example 14 from Section 20.10.
An open queuing network consists of two servers: server 1 and server 2. An average of 8 customers per hour arrive from outside at server 1. An average of 17 customers per hour arrive from outside at server 2. Interarrival times are exponential. Server 1 can serve at an exponential rate of 20 customers per hour, and server 2 can serve at an exponential rate of 30 customers per hour. After completing service at server 1, half the customers leave the system and half go to server 2. After completing service at server 2, 75% of the customers complete service and 25% return to server 1. Simulate this system for 400 hours.
Solution See file Open.igx. To begin, we need to create two arrival entities: one representing ex- ternal arrivals to server 1 and one representing external arrivals to server 2. After creat- ing Process rectangles for server 1 and server 2, we use the Connector tool to create a link from server 1 to server 2, a link from server 2 to server 1, and a link from Server 1 and 2 to exit the system. For server 1, arrivals are E(7.5), and for server 2, arrivals are E(3.53). Service time for server 1 is E(3), while service time for server 2 is E(2). After clicking on the link from server 1 to server 2, we make sure that the routing percentage is 50% (this is the default). After clicking on the link from server 2 to server 1, we change the rout- ing percentage to 25%. Note that the routing percentages on the exit links automatically adjust so that the total routing percentage leaving a service center is 100%. As an exam- ple, the dialog box on the link leaving server 2 and going to server 1 should be filled in
1204 C H A P T E R 2 2 Simulation with Process Model
as shown in Figure 16. There, the Move time from server 2 to server 1 is made equal to 0, and we ensured that 25% of all customers completing server 2 go instantly to server 1. This implies that 75% of all customers completing server 2 instantly leave the system. (Click on the arc leaving server 2 if you do not believe this.) Note that the default Move times must always be adjusted from 1 minute unless you want a move time of 1 minute. The flowchart is shown in Figure 17. Note that as the simulation runs, some calls move between the servers, and some exit the system. Seeing this movement really makes the
1206 C H A P T E R 2 2 Simulation with Process Model
Average Number Minutes Resource Scheduled Of Times Per Name Units Hours Used Usage % Util
Staff 1 400 6787 2.83 80. Staff2 1 400 8323 1.99 69.
Resource Scheduled % % % Name Hours In Use Idle Down
Staff 400 80.04 19.96 0. Staff2 400 69.32 30.68 0.
ENTITY SUMMARY (Times in Scoreboard time units)
Average Average Cycle VA Entity Qty Time Time Average Name Processed (Minutes) (Minutes) Cost
Call 3114 16.30 4.57 0. Call2 6885 13.92 3.13 0.
Calls that first arrive from outside to server 1 spend an average of 16.3 minutes in the system and 4.57 minutes in service. Calls that first arrive from outside to server 2 spend an average of 13.92 minutes in the system and 3.13 minutes in service.
Avg BVA Time Call 3115 7.70 0 0 0 0 Avg BVA Time Call2 6886 3.48 0 0 0 0
Average Variable Total Minutes Minimum Maximum Current Average Name Changes Per Change Value Value Value Value
Avg BVA Time Entity 1 0.00 0 0 0 0
(Continued)
22.5 Simulating Erlang Service Times
As we saw in Chapter 20, service times often do not follow an exponential distribution. The Erlang distribution is often used to model nonexponential service times. An Erlang distribution can be defined by a mean and a shape parameter k. The shape parameter must be an integer. It can be shown that
Standard deviation of Erlang
m
ea k
n
2 2. 5 Simulating Erlang Service Times 1207
Therefore, if we know the mean and standard deviation of the service times, we may de- termine an appropriate value of k. The syntax for generating Erlang service times in Process Model is ER(Mean, k). We now illustrate how to simulate a queuing system with Erlang service times.
A walk-in hospital clinic has four doctors. An average of 12 patients per hour arrive at the clinic (interarrival times are assumed to be exponential). A doctor can see an average of 4 patients per hour, with the standard deviation of service times being 8.66 minutes. Simulate the operation of this clinic for 1,000 hours.
Solution See file Doctor.igx. The flowchart is shown in Figure 19. We must remember to adjust the number of doctors to 4 and the See Doctor capacity to 4. By clicking on the arrow con- necting Customer and See Doctor, we can input the interarrival times as E(5). We know that the mean service time is 15 minutes. To estimate the shape parameter k , we solve
15 k
8.66 minutes. This yields k 3. We now fill in the See Doctor dialog box as shown
in Figure 20. This ensures that up to 4 patients can be seen at once and that service times will follow an Erlang random variable with mean 15 minutes and shape parameter 3. (This implies a standard deviation of 8.66 minutes.) The output is shown in Figure 21, with explanatory comments in boldface.
2 2. 5 Simulating Erlang Service Times 1209
Variable Total Minutes Minimum Maximum Current Average Name Changes Per Change Value Value Value Value
Avg BVA Time Entity 1 0.00 0 0 0 0 Avg BVA Time Customer 11963 5.01 0 0 0 0
Resource Scheduled % % % Name Hours In Use Idle Down
Doctor.1 1000 75.13 24.87 0. Doctor.2 1000 75.12 24.88 0. Doctor.3 1000 75.12 24.88 0. Doctor.4 1000 75.12 24.88 0. Doctor 4000 75.12 24.88 0. Each doctor is busy about 75% of the time. This is reasonable because (12 patients/hour)(15 minutes/patient)= 180 minutes/hour of work arrives for doctors, and doctors have 240 minutes per hour to work, so they should be busy 75% of the time.*
ENTITY SUMMARY (Times in Scoreboard time units)
Average Average Cycle VA Entity Qty Time Time Average Name Processed (Minutes) (Minutes) Cost
Customer 11962 20.45 15.07 0. On average, a patient spends a total of 20.45 minutes in the system. (Send me to this clinic!!)
Average
(Continued)
1210 C H A P T E R 2 2 Simulation with Process Model
22.6 What Else Can Process Model Do?
Our discussion of Process Model has only scratched the surface of its capabilities. Other modeling features include the following.
Bulk arrivals and services. At a restaurant, people often arrive in groups. This arrival pattern is called bulk arrivals. Consider an amusement park ride seating 40 people. The attendant waits until 40 people are present and then runs the ride. This service mechanism is known as bulk service.
Reneging. Perhaps people hang up when calling an 800 number if they are put on hold more than 5 minutes. Process Model can accommodate such balking or reneging behavior.
Variation in arrival pattern. At a restaurant or bank, the arrival rate varies sub- stantially over the course of a day (or a whole week). Variable arrival rate patterns can easily be simulated with Process Model.
Variation in number of servers. During the day, workers take breaks and go to lunch. Also, many companies vary the number of servers during the day. Process Model can easily accommodate variation in service capacity.
Priorities. In an emergency room, more seriously ill patients are given priority over earlier arriving, less ill patients. Process Model can handle complex priority mechanisms.
For more details on these and other features of Process Model, consult the online manual.
R E V I E W P R O B L E M S
Group A