Presentation is loading. Please wait.

Presentation is loading. Please wait.

McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.1 Table of Contents Chapter 16 (Computer Simulation with Crystal Ball) A Case Study: Freddie.

Similar presentations


Presentation on theme: "McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.1 Table of Contents Chapter 16 (Computer Simulation with Crystal Ball) A Case Study: Freddie."— Presentation transcript:

1 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.1 Table of Contents Chapter 16 (Computer Simulation with Crystal Ball) A Case Study: Freddie the Newsboy’s Problem (Section 16.1)16.2–16.24 Bidding for a Construction Project (Section 16.2)16.25–16.31 Project Management: Reliable Construction Co. (Section 16.3)16.32–16.43 Cash Flow Management: Everglade Golden Years Co. (Section 16.4)16.44–16.49 Financial Risk Analysis: Think-Big Development Co. (Section 16.5)16.50–16.55 Revenue Management in the Travel Industry (Section 16.6)16.56–16.61 Choosing the Right Distribution (Section 16.7)16.62–16.83 Decision Making with Decision Tables (Section 16.8)16.84–16.99 Optimizing with OptQuest (Section 16.9)16.100–16.118 Monte-Carlo Simulation with Crystal Ball (UW Lecture)16.119–16.137 These slides are based upon a lecture from the MBA core course in Management Science at the University of Washington (as taught by one of the authors).

2 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.2 Freddie the Newsboy Freddie runs a newsstand in a prominent downtown location of a major city. Freddie sells a variety of newspapers and magazines. The most expensive of the newspapers is the Financial Journal. Cost data for the Financial Journal: –Freddie pays $1.50 per copy delivered. –Freddie charges $2.50 per copy. –Freddie’s refund is $0.50 per unsold copy. Sales data for the Financial Journal: –Freddie sells anywhere between 40 and 70 copies a day. –The frequency of the numbers between 40 and 70 are roughly equal.

3 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.3 Spreadsheet Model for Applying Simulation

4 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.4 Application of Crystal Ball Four steps must be taken to use Crystal Ball on a spreadsheet model: 1.Define the random input cells. 2.Define the output cells to forecast. 3.Set the run preferences. 4.Run the simulation.

5 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.5 Step 1: Define the Random Input Cells A random input cell is an input cell that has a random value. An assumed probability distribution must be entered into the cell rather than a single number. Crystal Ball refers to each such random input cell as an assumption cell. Procedure to define an assumption cell: 1.Select the cell by clicking on it. 2.If the cell does not already contain a value, enter any number into the cell. 3.Click on the Define Assumption button (first button in Crystal Ball toolbar). 4.Select a probability distribution from the Distribution Gallery. 5.Click OK to bring up the dialogue box for the selected distribution. 6.Use the dialogue box to enter parameters for the distribution (preferably referring to cells on the spreadsheet that contain these parameters). 7.Click on OK.

6 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.6 The Crystal Ball Toolbar

7 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.7 Crystal Ball Distribution Gallery

8 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.8 Crystal Ball Uniform Distribution Dialogue Box

9 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.9 Static versus Dynamic Option When cell references are used to enter parameters for a distribution, the Distribution Dialogue Box gives a choice between the “Static” option and the “Dynamic” option. The static option means that each cell reference is only evaluated once, at the beginning of the simulation run, and then each parameter value (e.g., Min and Max) is used for all trials of the simulation. The dynamic option means that each cell reference is evaluated for each separate trial. This would be needed if the parameter value might change from trial to trial because it depends on another assumption cell.

10 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.10 Step 2: Define the Output Cells to Forecast Crystal Ball refers to the output of a computer simulation as a forecast, since it is forecasting the underlying probability distribution when it is in operation. Each output cell that is being used to forecast a measure of performance is referred to as a forecast cell. Procedure for defining a forecast cell: 1.Select the cell. 2.Click on the Define Forecast button (3rd button) in the Crystal Ball toolbar, which brings up the Define Forecast dialogue box. 3.This dialogue box can be used to define a name and (optionally) units for the forecast cell. 4.Click on OK.

11 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.11 Crystal Ball Define Forecast Dialogue Box

12 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.12 Step 3: Set the Run Preferences Setting run preferences refers to such things as choosing the number of trials to run and deciding on other options regarding how to perform the simulation. This step begins by clicking on the Run Preferences button on the Crystal Ball toolbar. The Run Preferences dialogue box has six tabs to set various types of options. The Trials tab allows you to specify the maximum number of trials to run for the computer simulation.

13 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.13 The Crystal Ball Run Preferences Dialogue Box

14 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.14 Step #4: Run the Simulation To begin running the simulation, click on the Start Simulation button. Once started, a forecast window displays the results of the computer simulation as it runs. The following can be obtained by choosing the corresponding option under the View menu in the forecast window display: –Frequency chart –Statistics table –Percentiles table –Cumulative chart –Reverse cumulative chart

15 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.15 The Frequency Chart for Freddie’s Profit

16 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.16 The Statistics Table for Freddie’s Profit

17 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.17 The Percentiles Table for Freddie’s Profit

18 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.18 The Cumulative Chart for Freddie’s Profit

19 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.19 The Reverse Cumulative Chart for Freddie’s Profit

20 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.20 Certainty that Profit ≥ $40

21 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.21 How Accurate Are the Simulation Results? An important number provided by the simulation is the mean profit of $46.67. This sample average provides an estimate of the true mean of the distribution. The true mean might be somewhat different than $46.67. The mean standard error (on the Statistics Chart) of $0.60 gives some indication of how accurate the estimate might be. The true mean will typically (approximately 68% of the time) be within the mean standard error of the estimated value. –It is about 68% likely that the true mean profit is between $46.07 and $47.27. The mean standard error can be reduced by increasing the number of trials. However, cutting the mean standard error in half typically requires approximately ƒour times as many trials.

22 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.22 Precision Control: Expanded Define Forecast Dialogue Box

23 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.23 Results with Precision Control 750 trials were required to get the 95% confidence interval around the mean within $1.

24 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.24 Results with Precision Control This table shows the precision obtained for the various percentiles of profit after 750 trials.

25 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.25 Bidding for a Project: Reliable Construction Co. Reliable Construction Co. is bidding to construct a new plant for a major manufacturer. Reliable estimates the cost of the project to be $4.55 million, There also is an additional cost of approximately $50,000 for preparing the bid. Three other construction companies also were invited to submit bids for the project. –Competitor 1 is known to use a 30 percent profit margin, but are unpredictable bidders because of an inability to accurately estimate the true cost of the project. Previous bids have ranged from 5% below the expected cost to 60% above. –Competitor 2 uses a 25% profit margin, but is more accurate at predicting the true cost. In the past, they have missed this profit margin by up to 15% in either direction. –Competitor 3 is unusually accurate in estimating project cost. It is equally likely to set its profit margin anywhere between 20% and 30%. Question: How much should Reliable bid for this project?

26 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.26 Spreadsheet Model for Applying Computer Simulation

27 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.27 Triangular Distribution for Competitor 2

28 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.28 Frequency Chart for Reliable’s Bidding Problem

29 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.29 Statistics Table for Reliable’s Bidding Problem

30 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.30 Percentiles Table for Reliable’s Bidding Problem

31 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.31 Cumulative Chart for Reliable’s Bidding Problem

32 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.32 Project Management: Reliable Construction Co. Reliable Construction Co. has won the bid to construct a new plant for a major manufacturer. The contract includes a large penalty if construction is not completed by the deadline 47 weeks from now. There are 14 tasks that need to be completed to finish the project. –(a) excavate, (b) foundation, (c) rough wall, (d) roof, (e) exterior plumbing, (f) interior plumbing, (g) exterior siding, (h) exterior painting, (i) electrical work, (j) wallboard, (k) flooring, (l) interior painting, (m) exterior fixtures, (n) interior fixtures. –For each task, three estimates of their completion time have been made—a most- likely, an optimistic, and a pessimistic estimate Question: What is the probability that the project will complete by the deadline?

33 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.33 Project Network for Reliable Construction Co.

34 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.34 The Triangular Distribution for an Activity Duration

35 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.35 Spreadsheet Model for Applying Computer Simulation

36 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.36 The Triangular Distribution Dialogue Box

37 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.37 The Frequency Chart for Reliable’s Project Duration

38 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.38 The Statistics Table for Reliable’s Project Duration

39 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.39 The Percentiles Table for Reliable’s Project Duration

40 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.40 Probability of Meeting the Project Deadline

41 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.41 Probability of Meeting the Project Deadline

42 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.42 Calculate Sensitivity Option

43 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.43 The Sensitivity Chart for Reliable’s Project

44 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.44 Cash Flow Management: Everglade Golden Years Co. Because of a temporary decline in business and some current or future construction costs, the company is facing some negative cash flows in the next few years. A long-term (10-year) loan can be taken now at a 7% annual interest rate. A series of short-term (1-year) loans can be taken as needed at 10% interest. The cash flows over the next 10 years are not certain. For each year, an estimate of the minimum, most-likely, and maximum cash flow has been made. Question: How large of a long-term loan should Everglade take out now?

45 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.45 Projected Net Cash Flows Year Projected Net Cash Flow (millions of dollars) 2003–8 2004–2 2005–4 20063 20076 20083 2009–4 20107 2011–2 201210

46 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.46 Linear Programming Spreadsheet Model

47 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.47 Spreadsheet Model for Applying Computer Simulation

48 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.48 Frequency Chart for Everglade’s Ending Balance

49 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.49 Cumulative Chart for Everglade’s Ending Balance

50 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.50 Financial Risk Analysis: Think-Big Development Co. The Think-Big Development Co. is a major investor in commercial real estate development projects. It has been considering taking a share in three large construction projects—a high-rise office building, a hotel, and a shopping center. In each case, three years will be spent in construction, they will retain ownership for another three years while establishing the property, and then sell the property in the seventh year. Proposal: Don’t take any share in the high-rise, take a 16.5% share of the hotel, and take a 13.11% share of the shopping center. Management wants risk analysis to be performed (with computer simulation) to obtain a risk profile (frequency distribution) of what the total NPV might turn out to be for this proposal.

51 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.51 Estimated Cash Flows for 100 Percent Share Hotel ProjectShopping Center Project YearCash Flow ($1,000,000s)YearCash Flow ($1,000,000s) 0–800–90 1Normal (–80, 5)1Normal (–50, 5) 2Normal (–80, 10)2Normal (–20, 5) 3Normal (–70, 15)3Normal (–60, 10) 4Normal (+30, 20)4Normal (+15, 15) 5Normal (+40, 20)5Normal (+25, 15) 6Normal (+50, 20)6Normal (+40, 15) 7Uniform (200, 844)7Uniform (160, 600)

52 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.52 Spreadsheet Model for Applying Computer Simulation

53 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.53 The Normal Distribution Dialogue Box

54 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.54 Risk Profile (Frequency Chart) for Think-Big

55 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.55 Percentiles Chart for Think-Big

56 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.56 Transcontinental Airlines Overbooking Problem Transcontinental has a daily flight (excluding weekends) from San Francisco to Chicago that is mainly used by business travelers. There are 150 seats available in a single cabin. The average fare per seat is $300. This is a nonrefundable fare, so no-shows forfeit the entire fare. The fixed cost of operating the flight is $30,000. The average number of reservation requests for this flight has been 195, with a standard deviation of 30. Only 80% of passengers with a reservation actually show up to take the flight, so it makes sense to take more than 150 reservations (overbooking). If more passengers arrive to take the flight than there are seats, some passengers must be “bumped”. The total cost (including rebooking, travel vouchers, and lost goodwill) is estimated to be $450. Question: How many reservations should Transcontinental accept for this flight?

57 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.57 Spreadsheet Model for Applying Computer Simulation

58 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.58 Binomial Distribution with Dynamic Option for Number that Show

59 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.59 Frequency Chart for Profit

60 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.60 Frequency Chart for Number of Filled Seats

61 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.61 Frequency Chart for Number Denied Boarding

62 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.62 Choosing the Right Distribution A continuous distribution is used if any values are possible, including both integer and fractional numbers, over the entire range of possible values. A discrete distribution is used if only certain specific values (e.g., only some integer values) are possible. However, if the only possible values are integer numbers over a relatively broad range, a continuous distribution may be used as an approximation by rounding any fractional value to the nearest integer.

63 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.63 A Popular Central-Tendency Distribution: Normal Some value most likely (the mean) Values close to mean more likely Symmetric (as likely above as below mean) Extreme values possible, but rare

64 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.64 A Popular Central-Tendency Distribution: Triangular Some value most likely Values close to most likely value more common Can be asymmetric Fixed upper and lower bound

65 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.65 A Popular Central-Tendency Distribution: Lognormal Some value most likely Positively skewed (below mean more likely) Values cannot fall below zero Extreme values (high end only) possible, but rare

66 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.66 The Uniform Distribution Fixed minimum and maximum value All values equally likely

67 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.67 A Three-Parameter Distribution: Weibull Random value above some number (location) Shape > 0 (usually ≤ 10) Shape < 3 becomes more positively-skewed (below mean more likely) until it resembles exponential distribution (equivalent at Shape = 1) Symmetrical at Shape = 3.25, becomes negatively skewed above that Scale defines width

68 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.68 A Three-Parameter Distribution: Beta Random value between 0 and some positive number (Scale) Shape specified using two positive values (alpha, beta) Alpha < beta: positively skewed (below mean more likely) Beta < alpha: negatively skewed

69 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.69 A Distribution for Random Events: Exponential Widely used to describe time between random events (e.g., time between arrivals) Events are independent Rate = average number of events per unit time (e.g., arrivals per hour)

70 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.70 A Distribution for Random Events: Poisson Describes the number of times an event occurs during a given period of time or space Occurrences are independent Any number of events is possible Rate = average number of events per unit of time, assumed constant over time

71 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.71 Distribution for Number of Times an Event Occurs: Binomial Describes number of times an event occurs in a fixed number of trials (e.g., number of heads in 10 flips of a coin) For each trial, only two outcomes are possible Trials independent Probability remains the same for each trial

72 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.72 Distribution for Number of Trials Until Event Occurs: Geometric Describes number of trials until an event occurs (e.g., number of times to spin roulette wheel until you win) Probability same for each trial Continue until succeed Number of trials unlimited

73 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.73 Distribution for Number of Trials Until n Events Occur: Negative Binomial Describes number of trials until an event occurs n times Same as geometric when Shape = n = 1 Probability same for each trial Continue until n th success Number of trials unlimited

74 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.74 The Custom Distribution (Set of Discrete Values) Enter set of values with varying probabilities For each discrete value, enter “Value” and “Prob.” (leave other boxes blank) Clicking Enter clears boxes for entering next discrete value

75 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.75 The Custom Distribution (Range of Discrete Values) Enter range of discrete values, each equally likely Enter lower and upper end of range in “Value” and “Value2” Enter the total probability for the whole set in “Prob.” Enter the distance between discrete values in “Step”

76 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.76 The Custom Distribution (Continuous Distribution) Enter the lower and upper end of range in “Value” and “Value2” Enter the total probability for the range in “Prob.” Leave “Step” blank for a continuous distribution Drag the corners of the distribution graph up or down to change relative probabilities Dragging corners may affect total probability. Click on “Rescale” to reset total probability.

77 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.77 The Custom Distribution (Combination) Any combination of discrete values, ranges of discrete values, or continuous distributions can be entered Input each element, click on Enter, input next element, etc. If cumulative probabilities do not add to 1, click on “Rescale”

78 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.78 Historical Demand Data for the Financial Times

79 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.79 Procedure for Fitting the Best Distribution to Data 1.Gather the data needed to identify the best distribution to enter into an assumption cell. 2.Enter the data into the spreadsheet containing your simulation model. 3.Select the cell that you want to define as an assumption cell that contains the distribution that best fits the data. 4.Choose Define Assumption from the Crystal Ball toolbar, which brings up the Distribution Gallery dialogue box. 5.Click the Fit button on the dialogue box, which brings up the Fit Distribution dialogue box. 6.Use the Range box in this dialogue box to enter the range of the historical data in your worksheet. 7.Click the Next button in the dialogue box, which brings up the Second Fit Distribution Dialogue box.

80 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.80 Procedure for Fitting the Best Distribution to Data 8.Use this dialogue box to specify which continuous distributions are being considered for fitting. (Discrete distributions are not considered by this procedure.) 9.Also use this dialogue box to select which ranking method should be used to evaluate how well a distribution fits the data. (The default is the chi-square test.) 10.Click OK, which brings up the comparison chart that identifies the distribution (including its parameter values) that best fits the data. 11.If desired, the Next Distribution button can be clicked repeatedly for identifying the other types of distributions that are next in line for fitting the data well. 12.After choosing the distribution that you want to use, click the Accept button while that distribution is showing. This will enter the appropriate parameters into the dialogue box for this distribution. Clicking OK then enters this distribution into the assumption cell.

81 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.81 The First Fit Distribution Dialogue Box

82 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.82 The Second Fit Distribution Dialogue Box

83 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.83 Comparison Chart Showing Best Fit

84 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.84 Decision Making with Decision Tables Many simulation models include at least one decision variable –Examples: Order quantity, Bid, Number of reservations to accept Crystal Ball can be used to evaluate a particular value of the decision variable by providing a wealth of output for the forecast cells. However, this approach does not identify an optimal solution for the decision variable(s). Trial and error can be used to try different values of the decision variable(s). –Run a simulation for each, and see which one provides the best estimate of the chosen measure of performance. The Decision Table tool in Crystal Ball does this approach in a systematic way.

85 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.85 Procedure for Defining a Decision Variable 1.Select the cell containing the decision variable. 2.If the cell does not already contain a value, enter any number into the cell. 3.Click on the Define Decision button in the Crystal Ball toolbar, which brings up the Define Decision Variable dialogue box. 4.Enter the lower and upper limit of the range of values to be simulated for the decision variable. 5.Click on either Continuous or Discrete to define the type of variable. 6.If Discrete is selected in Step 5, use the Step box to specify the difference between the successive possible values (not just those to be simulated). 7.Click on OK.

86 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.86 Define Decision Variable Dialogue Box

87 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.87 Decision Table: Specify Target Cell

88 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.88 Decision Table: Specify Decision Variable(s) to Vary

89 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.89 Decision Table: Specify Options

90 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.90 The Decision Table for Freddie’s Order Quantity

91 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.91 Overlay Chart Comparing Order Quantities of 55 and 60

92 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.92 Trend Chart for Freddie’s Order Quantity

93 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.93 Decision Variable for Reliable’s Bidding Problem

94 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.94 Decision Table: Specify Target Cell

95 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.95 Decision Table: Specify Decision Variable

96 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.96 Decision Table: Specify Options

97 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.97 Decision Table for Reliable’s Bid

98 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.98 Decision Table for Transcontinental’s Reservations to Accept

99 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.99 Trend Chart for Transcontinental’s Reservations to Accept

100 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.100 Optimizing with OptQuest Crystal Ball includes a module called OptQuest that automatically searches for an optimal solution for a simulation model with any number of decision variables. The search is conducted by executing a series of simulation runs of leading candidates to be the actual optimal solution. The results of each run are used to determine the most promising remaining candidate to try next. A powerful search engine (based on genetic algorithms) conducts an intelligent and efficient search.

101 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.101 Recommended Crystal Ball Run Preferences

102 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.102 Recommended Crystal Ball Run Preferences

103 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.103 Recommended Crystal Ball Run Preferences

104 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.104 Procedure for Applying OptQuest 1.Formulate your simulation model on a spreadsheet. 2.Use Crystal Ball to complete your formulation by defining your assumption cells, forecast cells, and decision variables, as well as setting your run preferences. 3.Choose OptQuest from the Crystal Ball Tools menu and select New under the File menu. 4.Use the Decision Variable Selection dialogue box to select your decision variables. 5.Use the Constraints dialogue box to specify your constraints (if any). 6.Use the Forecast Selection dialogue box to specify the running time. 7.Use the Options dialogue box to specify the running time. 8.Select Start from the Run menu to run the optimization. 9.Choose Copy to Excel from the Edit menu to copy your results to your spreadsheet model.

105 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.105 OptQuest for Freddie’s Problem: Selecting Variables and Specifying Constraints

106 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.106 OptQuest for Freddie’s Problem: Specifying Objective and Running Time

107 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.107 OptQuest Results for Freddie’s Problem

108 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.108 Project Selection: Tazer Corp. Tazer Corp., a pharmaceutical manufacturing company, is beginning the search for a breakthrough drug. The following five potential R&D projects have been identified: –Project Up: Develop a more effective antidepressant that does not cause serious mood swings. –Project Stable: Develop a drug that addresses manic depression. –Project Choice: Develop a less intrusive birth control method for women. –Project Hope: Develop a vaccine to prevent HIV infection. –Project Release: Develop a more effective drug to lower blood pressure. $1.2 billion is available (enough for only two or three projects). Question: Which projects should Tazer Corp. undertake?

109 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.109 Data for Tazer Corp. Project Selection Revenue ($millions) if Successful Project R&D Investment ($millions) Success RateMean Standard Deviation Up$40050%$1,400$400 Stable300351,200400 Choice600352,200600 Hope500203,000900 Release20045600200

110 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.110 Spreadsheet Model for Applying Computer Simulation

111 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.111 Binary Decision Variables

112 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.112 OptQuest for Tazer’s Project Selection: Selecting Variables and Specifying Constraints

113 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.113 OptQuest for Freddie’s Problem: Specifying Objective and Running Time

114 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.114 OptQuest Results for Tazer’s Project Selection

115 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.115 Frequency Chart for Tazer’s Total Profit

116 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.116 Maximizing Probability (Profit ≥ $100 million)

117 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.117 Maximizing Probability (Profit ≥ $100 million)

118 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.118 Frequency Chart for Tazer’s Project Selection

119 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.119 Monte-Carlo Simulation with Crystal Ball 1.Setup Spreadsheet Build a spreadsheet that will calculate the performance measure (e.g., profit) in terms of the inputs (random or not). For random inputs, just enter any number. 2.Define Assumptions (Random Variables) Define which cells are random and what distributions they should follow. 3.Define Forecast (Output or Performance Measure) Define which cell(s) you are interested in forecasting (typically the performance measure, e.g., profit). 4.Choose Number of Trials Select the number of trials. If you would later like to generate the Sensitivity Analysis chart, choose “Sensitivity Analysis” under Options in Run Preferences. 5.Run Simulation Run the simulation. If you would like to change parameters and re-run the simulation, you should “reset” the simulation (click on the “Reset Simulation button on the toolbar or in the Run menu) first. 6.View Results The forecast window showing the results of the simulation appears automatically after (or during) the simulation. Many different results are available (frequency chart, cumulative chart, statistics, percentiles, sensitivity analysis, and trend chart). The results can be copied into the worksheet.

120 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.120 The Crystal Ball Toolbar

121 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.121 Freddie the Newsboy Freddie runs a newsstand in a prominent downtown location of a major city. Freddie sells a variety of newspapers and magazines. The most expensive of the newspapers is the Financial Journal. Cost data for the Financial Journal: –Freddie pays $1.50 per copy delivered. –Freddie charges $2.50 per copy. –Freddie’s refund is $0.50 per unsold copy. Sales data for the Financial Journal: –Freddie sells anywhere between 40 and 70 copies a day. –The frequency of the numbers between 40 and 70 are roughly equal.

122 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.122 Step #1 (Setup Spreadsheet)

123 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.123 Step #2 (Define Assumptions) Select a cell that contains a random variable. Click on the “Define Assumptions” button in the toolbar (or in Cell menu): Select the type of distribution. Provide the parameters of the distribution.

124 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.124 Step #2 (Define Assumptions)

125 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.125 Step #2 (Define Assumptions)

126 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.126 Step #3 (Define Forecast) Select the cell that contains the output variable to forecast. Click on the “Define Forecast” button in the toolbar (or in the Cell menu): Fill in the Define Forecast dialogue box:

127 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.127 Step #4 (Choose Number of Trials) Click on the “Run Preferences” button in the toolbar (or in the Run menu): Select the number of trials to run:

128 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.128 Step #5 (Run Simulation) Click on the “Start Simulation” button in the toolbar (or Run in the Run menu):

129 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.129 Step #6 (View Results) The results of the simulation can be viewed in a variety of different ways (frequency chart, cumulative chart, statistics, and percentiles). Choose different options under the View menu in the forecast window.

130 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.130 Step #6 (View Results) The results can be copied into a worksheet or Word document (choose Copy under the Edit menu in the simulation output window).

131 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.131 Step #6 (View Results)

132 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.132 Step #6 (View Results)

133 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.133 Certainty that Profit ≥ $40

134 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.134 Fitting a Distribution Crystal Ball can be used to “fit” a distribution to data. The following data has been collected for the previous 100 phone calls to a mail-order house:

135 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.135 Using Crystal Ball to Fit Data to a Distribution 1.Select a spreadsheet cell for which you want to fit a distribution. 2.Choose Define Assumption. 3.Click the Fit button, then select the source of the fitted data. 4.Click the Next button, then select the distributions to try to fit. 5.Click OK.

136 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.136 Best Fit for the Interarrival Time

137 McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.137 Best Fit for the Service Time


Download ppt "McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., 2003 16.1 Table of Contents Chapter 16 (Computer Simulation with Crystal Ball) A Case Study: Freddie."

Similar presentations


Ads by Google