Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
A B C D E F
1 Freddie the Newsboy
2
3 Data
4 Unit Sale Price $2.50
5 Unit Purchase Cost $1.50
6 Unit Salvage Value $0.50
7
8 Decision Variable
9 Order Quantity 60
10
11 Simulation Minimum Maximum
12 Demand 55 Discrete Uniform 40 70
13
14 Sales Revenue $137.50
15 Purchasing Cost $90.00
16 Salvage Value $2.50
17
18 Profit $50.00
• 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.
• 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
tab or toolbar.
• The Run Preferences dialogue box has five 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.
• 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
• This sample average provides an estimate of the true mean of the distribution.
The true mean might be somewhat different than $45.94.
• The mean standard error (on the Statistics Chart) of $0.62 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 $45.32 and $46.56.
• 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.
1000 trials were required to get the 95% confidence interval around the mean under $1.
• Reliable Construction Co. has won the bid to construct a new plant for a major
manufacturer.
Question: What is the probability that the project will complete by the
deadline?
A. Excavate
A 2
B. Foundation
C. Rough wall
B 4 D. Roof
E. Exterior plumbing
10 F. Interior plumbing
C
G. Exterior siding
H. Exterior painting
D 6 E 4 I 7 I. Electrical work
J. Wallboard
K. Flooring
L. Interior painting
G 7 F 5 M. Exterior fixtures
N. Interior fixtures
J 8
H 9
K 4 L 5
M 2
N 6
FINISH 0
McGraw-Hill/Irwin 13.25 © The McGraw-Hill Companies, Inc., 2008
The Triangular Distribution for an Activity Duration
Triangular distribution
0 o m p
Elapsed time
A B C D E F G H I
1 Simulation of Reliable Construction Co. Project
2
3 Activity
4 Immediate Time Estimates Start Time Finish
5 Activity Predecessor o m p Time (triangular ) Time
6 A Š 1 2 3 0 2 2
7 B A 2 3.5 8 2 4.5 6.5
8 C B 6 9 18 6.5 11 17.5
9 D C 4 5.5 10 17.5 6.5 24
10 E C 1 4.5 5 17.5 3.5 21
11 F E 4 4 10 21 6 27
12 G D 5 6.5 11 24 7.5 31.5
13 H E, G 5 8 17 31.5 10 41.5
14 I C 3 7.5 9 17.5 6.5 24
15 J F, I 3 9 9 27 7 34
16 K J 4 4 4 34 4 38
17 L J 1 5.5 7 34 4.5 38.5
18 M H 1 2 3 41.5 2 43.5
19 N K, L 5 5.5 9 38.5 6.5 45
20
21 Project Completion 45
• 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?
A B C D E F G H I J K L
1 Everglade Cash Flow Management Problem
2
3 LT Rate 7%
4 ST Rate 10%
5
6 Start Balance 1 (all cash figures in millions of dollars)
7 Minimum Cash 0.5
8
9 Cash LT ST LT ST LT ST Ending Minimum
10 Year Flow Loan Loan Interest Interest Payback Payback Balance Balance
11 2003 -8 6.649 0.851 0.500 >= 0.5
12 2004 -2 3.401 -0.465 -0.085 -0.851 0.500 >= 0.5
13 2005 -4 8.207 -0.465 -0.340 -3.401 0.500 >= 0.5
14 2006 3 6.493 -0.465 -0.821 -8.207 0.500 >= 0.5
15 2007 6 1.607 -0.465 -0.649 -6.493 0.500 >= 0.5
16 2008 3 0.000 -0.465 -0.161 -1.607 1.266 >= 0.5
17 2009 -4 3.699 -0.465 0.000 0.000 0.500 >= 0.5
18 2010 7 0.000 -0.465 -0.370 -3.699 2.965 >= 0.5
19 2011 -2 0.000 -0.465 0.000 0.000 0.500 >= 0.5
20 2012 10 0.000 -0.465 0.000 0.000 10.035 >= 0.5
21 2013 -0.465 0.000 -6.649 0.000 2.920 >= 0.5
A B C D E F G H I J K L M N O P
1 Everglade Cash Flow Management Problem When Applying Simulation
2
3 LT Rate 7%
4 ST Rate 10%
5
6 Start Balance 1 (all cash figures in millions of dollars)
7 Minimum Cash 0.5
8
9 Cash Flow (Triangular Distribution) Simulated Balance
10 Most Cash LT LT ST LT ST Before ST Ending Minimum
11 Year Minimum Likely Maximum Flow Loan Interest Interest Payback Payback ST Loan Loan Balance Balance
12 2007 -9 -8 -7 -8.00 6.65 -0.35 0.85 0.50 >= 0.50
13 2008 -4 -2 1 -1.67 -0.47 -0.09 -0.85 -2.57 3.07 0.50 >= 0.50
14 2009 -7 -4 0 -3.67 -0.47 -0.31 -3.07 -7.01 7.51 0.50 >= 0.50
15 2010 0 3 7 3.33 -0.47 -0.75 -7.51 -4.89 5.39 0.50 >= 0.50
16 2011 3 6 9 6.00 -0.47 -0.54 -5.39 0.11 0.39 0.50 >= 0.50
17 2012 1 3 5 3.00 -0.47 -0.04 -0.39 2.60 0.00 2.60 >= 0.50
18 2013 -6 -4 -2 -4.00 -0.47 0 0 -1.86 2.36 0.50 >= 0.50
19 2014 4 7 12 7.67 -0.47 -0.24 -2.36 5.10 0.00 5.10 >= 0.50
20 2015 -5 -2 4 -1.00 -0.47 0 0 3.64 0.00 3.64 >= 0.50
21 2016 5 10 18 11.00 -0.47 0 0 14.17 0.00 14.17 >= 0.50
22 2017 -0.47 0 -6.65 0 7.05 7.05 >= 0.50
• 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.
• 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.
• 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)
• 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
McGraw-Hill/Irwin 13.57 © The McGraw-Hill Companies, Inc., 2008
Yes-No Distribution
• 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
McGraw-Hill/Irwin 13.59 © The McGraw-Hill Companies, Inc., 2008
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
McGraw-Hill/Irwin 13.60 © The McGraw-Hill Companies, Inc., 2008
Distribution for Number of Trials Until n Events Occur: Negative Binomial
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 tab or 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 OK.
McGraw-Hill/Irwin 13.65 © The McGraw-Hill Companies, Inc., 2008
The Fit Distribution Dialogue Box
• 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.
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 tab or 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.
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.