Upload
xai1lanroibo
View
218
Download
0
Embed Size (px)
Citation preview
8/3/2019 Crystal Ball Hillier Chap 16 05-04-07
http://slidepdf.com/reader/full/crystal-ball-hillier-chap-16-05-04-07 1/7
© The McGraw-Hill Companies, Inc., 200316.1McGraw-Hill/Irwin
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.
© The McGraw-Hill Companies, Inc., 200316.2McGraw-Hill/Irwin
Spreadsheet Model for Applying Simulation
1
2
3
4567
89
10111213
1415161718
19
A B C D E F
Freddie the Newsboy
Data
Uni t Sale Price $2.50Uni t Purchase Cost $1.50Uni t Salvage Value $0.50
Decision VariableOrder Quantity 60
Simulation Minimum MaximumSimu la ted Demand 55 Uniform 40 70Demand ( rounded ) 55
Sales Revenue $137.50Purchasing Cost $90.00
Sal vage Va lue $2.50
Profit $50.00
© The McGraw-Hill Companies, Inc., 200316.3McGraw-Hill/Irwin
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.
© The McGraw-Hill Companies, Inc., 200316.4McGraw-Hill/Irwin
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.
© The McGraw-Hill Companies, Inc., 200316.5McGraw-Hill/Irwin
The Crystal Ball Toolbar
D e
f i n e A
s s u m p t i o
n
D e
f i n e
D e c i s i o
n
D e
f i n e
F o r e
c a s t
S e
l e c t A
s s u m p t i o
n s
S e
l e c t D
e c i s i o
n s
S e
l e c t F
o r e
c a s t s
C o p y D
a t a
P a s t e
D a
t a
C l e
a r
D a
t a
R u n P
r e f e
r e n c e s
S t a
r t S i m
u l a
t i o n
S t o
p S
i m u
l a t i o
n
R e s e t S i m
u l a
t i o n
S i n
g l e
S t e
p
F o e c a s t W i n
d o w s
O v e
r l a y C h
a r t
T r e n d C h
a r t
S e n s i t i v i t y C
h a r t
C r e
a t e
R e p o r t
E x t r a
c t D
a t a
C r y s t a l B
a l l H
e l p
© The McGraw-Hill Companies, Inc., 200316.6McGraw-Hill/Irwin
Crystal Ball Distribution Gallery
8/3/2019 Crystal Ball Hillier Chap 16 05-04-07
http://slidepdf.com/reader/full/crystal-ball-hillier-chap-16-05-04-07 2/7
© The McGraw-Hill Companies, Inc., 200316.7McGraw-Hill/Irwin
Crystal Ball Uniform Distribution Dialogue Box
© The McGraw-Hill Companies, Inc., 200316.8McGraw-Hill/Irwin
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.
© The McGraw-Hill Companies, Inc., 200316.9McGraw-Hill/Irwin
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.
© The McGraw-Hill Companies, Inc., 200316.10McGraw-Hill/Irwin
Crystal Ball Define Forecast Dialogue Box
© The McGraw-Hill Companies, Inc., 200316.11McGraw-Hill/Irwin
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.
© The McGraw-Hill Companies, Inc., 200316.12McGraw-Hill/Irwin
The Crystal Ball Run Preferences Dialogue Box
8/3/2019 Crystal Ball Hillier Chap 16 05-04-07
http://slidepdf.com/reader/full/crystal-ball-hillier-chap-16-05-04-07 3/7
© The McGraw-Hill Companies, Inc., 200316.13McGraw-Hill/Irwin
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
© The McGraw-Hill Companies, Inc., 200316.14McGraw-Hill/Irwin
The Frequency Chart for Freddie’s Profit
© The McGraw-Hill Companies, Inc., 200316.15McGraw-Hill/Irwin
The Statistics Table for Freddie’s Profit
© The McGraw-Hill Companies, Inc., 200316.16McGraw-Hill/Irwin
The Percentiles Table for Freddie’s Profit
© The McGraw-Hill Companies, Inc., 200316.17McGraw-Hill/Irwin
The Cumulative Chart for Freddie’s Profit
© The McGraw-Hill Companies, Inc., 200316.18McGraw-Hill/Irwin
The Reverse Cumulative Chart for Freddie’s Profit
8/3/2019 Crystal Ball Hillier Chap 16 05-04-07
http://slidepdf.com/reader/full/crystal-ball-hillier-chap-16-05-04-07 4/7
© The McGraw-Hill Companies, Inc., 200316.19McGraw-Hill/Irwin
Certainty that Profit ≥ $40
© The McGraw-Hill Companies, Inc., 200316.20McGraw-Hill/Irwin
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.
© The McGraw-Hill Companies, Inc., 200316.21McGraw-Hill/Irwin
Precision Control: Expanded Define Forecast Dialogue Box
© The McGraw-Hill Companies, Inc., 200316.22McGraw-Hill/Irwin
Results with Precision Control
750 trials were required to get the 95% confidence interval around the mean within $1.
© The McGraw-Hill Companies, Inc., 200316.23McGraw-Hill/Irwin
Results with Precision Control
This table shows the precision obtained for the various percentiles of profit after 750 trials.
© The McGraw-Hill Companies, Inc., 200316.24McGraw-Hill/Irwin
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.
8/3/2019 Crystal Ball Hillier Chap 16 05-04-07
http://slidepdf.com/reader/full/crystal-ball-hillier-chap-16-05-04-07 5/7
© The McGraw-Hill Companies, Inc., 200316.25McGraw-Hill/Irwin
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
© The McGraw-Hill Companies, Inc., 200316.26McGraw-Hill/Irwin
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
© The McGraw-Hill Companies, Inc., 200316.27McGraw-Hill/Irwin
The Uniform Distribution
• Fixed minimum and maximum value• All values equally likely
© The McGraw-Hill Companies, Inc., 200316.28McGraw-Hill/Irwin
Historical Demand Data for the Financial Times
1
23456789
101112131415161718
19
20
585960616263
A B C D E F
Freddie the Newsboy Historical
DemandData Day Data
Unit Sale Price $2.50 1 62Unit Purchase Cost $1.50 2 45Unit Salvage Value $0.50 3 59
4 65Decision Variable 5 50
Order Quantity 60 6 647 56
Simulation 8 51Simulated Demand 55 9 55Demand (rounded) 55 10 61
11 40Sales Revenue $137.50 12 47
Purchasing Cost $90.00 13 63Salvage Value $2.50 14 68
15 67
Profit $50.00 16 67
17 68
55 4156 4257 6458 4559 5960 70
© The McGraw-Hill Companies, Inc., 200316.29McGraw-Hill/Irwin
Procedure for Fitting the Best Distribution to Data
1. Gather the data needed to identify the best distribution to enter into an assumptioncell.
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 thedistribution that best fits the data.
4. Choose Define Assumption from the Crystal Ball toolbar, which brings up theDistribution Gallery dialogue box.
5. Click the Fit button on the dialogue box, which brings up the Fit Distributiondialogue box.
6. Use the Range box in this dialogue box to enter the range of the historical data inyour worksheet.
7. Click the Next button in the dialogue box, which brings up the Second FitDistribution Dialogue box.
© The McGraw-Hill Companies, Inc., 200316.30McGraw-Hill/Irwin
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 shouldbe 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.
8/3/2019 Crystal Ball Hillier Chap 16 05-04-07
http://slidepdf.com/reader/full/crystal-ball-hillier-chap-16-05-04-07 6/7
© The McGraw-Hill Companies, Inc., 200316.31McGraw-Hill/Irwin
The First Fit Distribution Dialogue Box
© The McGraw-Hill Companies, Inc., 200316.32McGraw-Hill/Irwin
The Second Fit Distribution Dialogue Box
© The McGraw-Hill Companies, Inc., 200316.33McGraw-Hill/Irwin
Comparison Chart Showing Best Fit
© The McGraw-Hill Companies, Inc., 200316.34McGraw-Hill/Irwin
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.
© The McGraw-Hill Companies, Inc., 200316.35McGraw-Hill/Irwin
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 j ust those to be simulated).
7. Click on OK.
© The McGraw-Hill Companies, Inc., 200316.36McGraw-Hill/Irwin
Define Decision Variable Dialogue Box
8/3/2019 Crystal Ball Hillier Chap 16 05-04-07
http://slidepdf.com/reader/full/crystal-ball-hillier-chap-16-05-04-07 7/7
© The McGraw-Hill Companies, Inc., 200316.37McGraw-Hill/Irwin
Decision Table: Specify Target Cell
© The McGraw-Hill Companies, Inc., 200316.38McGraw-Hill/Irwin
Decision Table: Specify Decision Variable(s) to Vary
© The McGraw-Hill Companies, Inc., 200316.39McGraw-Hill/Irwin
Decision Table: Specify Options
© The McGraw-Hill Companies, Inc., 200316.40McGraw-Hill/Irwin
The Decision Table for Freddie’s Order Quantity
© The McGraw-Hill Companies, Inc., 200316.41McGraw-Hill/Irwin
Overlay Chart Comparing Order Quantities of 55 and 60
© The McGraw-Hill Companies, Inc., 200316.42McGraw-Hill/Irwin
Trend Chart for Freddie’s Order Quantity