example 12.5 operations models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 |...

22
Example 12.5 Operations Models

Upload: sarah-galloway

Post on 26-Mar-2015

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

Example 12.5

Operations Models

Page 2: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Background Information Tom Lingley, an independent contractor, has agreed

to build a new room on an existing house.

He plans to begin work on Monday morning June 1.

The main question is when will he complete his work, given that he works only weekdays.

The owner of the house is particularly hopeful that the room will be ready by Saturday, June 27, that is, in 20 or fewer working days.

The work proceeds in stages, labeled A through J, as summarized in the table on the next slide.

Page 3: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Background Information -- continued

Three of the activities, E, F, and G, will be done by separate independent subcontractors. The expected durations of the activities are shown in the table.

Activity Time Data

Description Index Predecessors Expected Duration

Prepare foundation A None 4

Put up frame B A 4

Order custom windows C None 11

Erect outside walls D B 3

Do electrical wiring E D 4

Do plumbing F D 3

Put in duct work G D 4

Hang dry wall H E, F, G 3

Install windows I B, C 1

Paint and clean up J H 2

Page 4: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Background Information -- continued However, these are only best guesses.

Lingley knows that the actual activity times can vary because of unexpected delays, worker illnesses, and so on.

He would like to use a computer simulation to see

– How long the project is likely to take, and

– How likely it is that the project will be completed by the deadline, and

– Which activities are likely to be critical.

Page 5: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Solution We first need to choose distributions for the uncertain

activity times.

Then, given any randomly generated activity times, we will illustrate a method for calculating the length of the project and identifying the activities on the critical path.

Page 6: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

The Pert Distribution

As always, there are several reasonable candidate probability distributions we could use for the random activity times.

Here we illustrate a distribution that has become popular in project scheduling, called the Pert distribution. As shown on the next slide, it is “rounded” version of the triangular distribution that is specified by three parameters: a minimum value, and a maximum value.

Page 7: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

The Pert Distribution -- continued

Page 8: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

The Pert Distribution -- continued The distribution in the figure uses the values 7, 10,

and 19 for these three values, which implies a mean of 11. We will use this distribution for activity C.

Similarly, for the other activities, we choose parameters for the Pert distribution that lead to the means in the table.

In reality, it would be done the other way around. The contractor would estimate the minimum, most likely, and maximum parameters for the various activities, and the means would follow from these.

Page 9: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Developing the Simulation Model The key to the model is representing the project

network in activity-on-arc form, as in the diagram below, and then finding Ej for each j, where Ej is the earliest time we can get to node j.

We stated in Chapter 5 that when the nodes are numbered so that all arcs go from lower-numbered nodes to higher-numbered nodes, we can calculate the Ej’s iteratively, starting with E1=0, with the equation Ej = max(Ei + tij).

Here, the maximum is taken overall arcs leading into node j, and tij is the activity time on such an arc.

Page 10: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Developing the Simulation Model -- continued Then En is the time to complete the project, where n

is the index of the finish node.

This will make it very easy to calculate the project length.

We also need a methods for identifying the critical activities for any given activity times.

By definition, an activity is critical is a small increase in its activity time cause the project time to increase. Therefore, we will keep track of two sets of activity times, and associated project times.

Page 11: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Developing the Simulation Model -- continued The first uses the simulated activity times. The

second adds a small amount, such as 0.001 day, to a “selected” activity’s time. By using the RISKSIMTABLE function with a list as long as the number of activities, we can make each activity the “selected” activity in this method.

Page 12: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

PROJECTSIM.XLS The spreadsheet model appears on the next slide.

This file contains the model.

Page 13: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Page 14: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Developing the Simulation Model -- continued The details of the model are followed.

– Inputs. Enter the parameters of the Pert activity time distributions in the shaded cells and the implied means next to them. As discussed above, we actually chose the minimum, most likely, and maximum values while in @Risk’s Model window to achieve the means in the activity table. Note that some of these distributions are symmetric about the most likely value, whereas other are skewed.

– Activity time. Generate random activity times in column I by entering the formula =RISKPERT(E5, F5, G5) in cell I5 and copying it down.

Page 15: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Developing the Simulation Model -- continued

– Augmented activity times. We want to successively add a small amount of each activity’s time to determine whether it is on the critical path. To do this, enter the formula =RISKSIMTABLE({1, 2, 3, 4, 5, 6, 7, 8, 9, 10}) in cell B16. Then enter the formula =I5+IF(Index=C5,0.001,0) in cell J5 and copy it down.

– Event times. We want to use the equation to calculate the node event times in the range B20:B27. There is no quick way to enter the required formulas. We need to use the project network as a guide for each node. Begin by entering 0 in cell B20. Then enter the appropriate formulas in the other cells. For example, the formulas in cells B22, B23, and B27 are =B21+I6, =MAX(B20+I7,B21+I6) and =RISKOUTPUT( )+MAX(B23+I13,B26+I14)

Page 16: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Developing the Simulation Model -- continued

– To understand these, note the node 3 has only one arc leading into it, and this arc originates at node 2. No MAX is required for this mode’s equation. In contrast, node 4 has two arcs leading into it, from nodes 1 and 2, so a MAX is required. Similarly, node 8 requires a MAX because it has two arcs leading into it. Also, it is the finish node, so we designate its event time cell as an @Risk output cell – it contains the time to complete the project.

– Augmented even times. Copy the formulas in the range B20:B27 to the range C20:C27 to calculate the even times when the selected activity’s time is augmented by 0.001.

Page 17: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Developing the Simulation Model -- continued

– Project time increase?. To check whether the selected activity’s increased activity time increases the project time, enter the formula =RISKOUTPUT( )+IF(C27>B27,1,0) If this calculates to 1, then the selected activity is critical for these particular activity times. Otherwise, it is not. Note that this cell is also designated as an @Risk output cell.

Page 18: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Using @RISK We set the number of iterations to 1000 and the

number of simulations to 10.

After running @Risk, we request the histogram of project times shown on the next slide.

Recall from the example in Chapter 5 that when the activity times are not considered random, the project time is 20 days. Now it varies from a low of 16.09 days to a high of 25.20 days, with an average of 20.38 days.

Although the 5th and 95th percentiles appear in the figure, it might be more interesting to Tom Lingley to see the probabilities of various project times being exceeded.

Page 19: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Page 20: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Using @RISK -- continued For example, we entered 20 in the Left X box next to

the histogram. The Left P value implies there is about a 59% chance that the project will not be completed within 20 days.

Similarly, the values in the Right X and Right P boxes imply that the chance of the project lasting longer/ than 23 days is slightly greater than 5%.

This is certainly not good news for Lingley, and he might have to resort to the crashing we discussed earlier.

Page 21: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Using @RISK -- continued

The summary measures for the B29 output cell appears in this table.

Page 22: Example 12.5 Operations Models. 12.112.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.1712.212.312.412.612.712.812.912.10

12.1 | 12.2 | 12.3 | 12.4 | 12.6 | 12.7 |12.8 | 12.9 | 12.10 | 12.11 | 12.12 | 12.13 | 12.14 | 12.15 | 12.16 | 12.17

Using @RISK -- continued Each “simulation” in this output represents one

selected activity being increased slightly.

The Mean column indicates the fraction of iterations where the project time increases as a result of the selected activity’s time increase.

Hence, it represents the probability that this activity is critical.

For example, the first activity (A) is always critical, the third activity (C) is never critical, and the fifth activity (E) is critical about 44% of the time.More specifically, we see that the critical path always includes activities A, B, D, H, J, and one of the three “parallel” activities E, F, and G.