Você está na página 1de 20

887654

Decision Support and Intelligent Systems


Monte Carlo Simulation

Monte Carlo

Monte Carlo is a technique for selecting numbers randomly from a probability distribution. A mathematical process used within a simulation. The name Monte Carlo is appropriate because the basic principle behind the process is the same as in the operation of a gambling casino in Monaco.

Case Study: Computer World Company

The manager of Computer World Company is attempting to determine how many laptop PCs the store should order each week. A primary consideration in this decision is the average number of laptop computers that the store will sell each week and the average weekly revenue generated from the sale of laptop PCs.

Case Study: Computer World Company

A laptop sells for $4,300. The number of laptops demanded each week is a random variable (x), that ranges from 0 to 4. From past sale records, the manager has determined the frequency of demand for laptop PCs for the past 100 weeks. From this frequency distribution, a probability distribution of demand can be developed.

Probability distribution of demand for laptop PCs


PCs Demanded per Week 0 1 2 3 4 Frequency of Demand 20 40 20 10 10 100 Probability of Demand, P(x) .20 .40 .20 .10 .10 1.00

A roulette wheel for demand

Number roulette wheel

Generating demand from random number

Randomly generated demand for 15 weeks


Week 1 r 39 Demand, x 1 Revenue ($) 4,300

2
3 4 5

73
72 75 37

2
2 2 1

8,600
8,600 8,600 4,300

6
7 8 9 10 11 12 13 14 15

02
87 98 10 47 93 21 95 97 69 Sum = 31

0
3 4 0 1 4 1 4 4 2 $133,300

0
12,900 17,200 0 4,300 17,200 4,300 17,200 17,200 8,600

Compute the estimated average weekly demand and revenue


The manager can compute the estimated average weekly demand and revenue. Estimated average demand = 3115 = 2.07 laptop PCs per week Estimated average revenue = $133,300 15 = $8,886.67

The manager can then use this information to help determine the number of PCs to order each week.

Calculate Analytically vs. Simulation

Although this example is convenient for illustrating how simulation works, the average demand could have more appropriately been calculated analytically using formula for expected value.

=1 ( )

where = demand value i ( ) = probability of demand n = the number of different demand values Therefore,
E(x) = (.20)(0) + (.40)(1) + (.20)(2) + (.10)(3) + (.10)(4) = 1.5 PCs per week

Calculate Analytically vs. Simulation

Simulation results will not equal analytical results unless enough trials of the simulation have been conducted to reach steady state. It is difficult to validate that the results of a simulation truly replicate reality. Simulation most often is employed whenever analytical analysis is not possible (this is one of the reasons that simulation is generally useful).

Computer simulation with Excel


Random numbers generated by a mathematical process instead if physical process are pseudo-random number. A table of random numbers must be uniform, efficiently generated, and absent of patterns. Random numbers between 0 and 1 can be generated in Excel by entering the formula =RAND( ).

Computer World Store using Excel

Simulate demand for 100 weeks

Decision Making with Simulation

From the simulation, the manager knows that the average weekly demand for laptop PCs will be approximately 1.49. However, the manager cannot order 1.49 laptop PCs each week (because fractional laptops are not possible). Thus, the manager wants to include some additional information in the model that will affect the decision.

Decision Making with Simulation

If too few laptops are on hand to meet demand during the week, then not only will there be a loss of revenue, but there will also be shortage cost of $500 per unit incurred because the customer will be unhappy. However, each laptop still in stock at the end of each week that has not been sold will incur an inventory or storage cost of $50. The manger wants to order either one or two laptops, depending on which order size will result in the greatest average weekly revenue.

Scenario 1: The manager order one laptop

Scenario 2: The manager order two laptops

Make a decision

If the manager order one laptop (scenario 1), the total weekly revenue is $3,875. If the manager order two laptops (scenario 2), the total weekly revenue is $4,927.50. Thus, the correct decision, based on weekly revenue, would be to order two laptops per week. In fact, one of the main attributes of simulation is its usefulness as a model for experimenting, called what-if? analysis.

Você também pode gostar