Matlab °æ (¾«»ªÇø)
·¢ÐÅÈË: Christy (Ê«ÒâµÄÐÅÑö), ÐÅÇø: Matlab
±ê Ìâ: An Example of Monte Carlo Simulation
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2001Äê11ÔÂ06ÈÕ18:46:37 ÐÇÆÚ¶þ), Õ¾ÄÚÐżþ
ÎÒ°ÑÎÒµÄÒ»¸öMonte-Carlo SimulationµÄ½éÉܺͽáÂÛ¸øÄãÌù³öÀ´£¬Ï£ÍûÓÐ
Ëù°ïÖú.
Introduction
The aim of this assignment is to establish the minimum cost policy (the comb
ination between a re-order point and a number of order quantities for the mi
nimum cost) in an inventory system for an item which historically has been s
ubject to both variable demand (in units per week) and variable lead time (i
n weeks from order to delivery). This will be performed by means of a Monte
Carlo Simulation using Turboc2.0 in which the syntax of loops and conditiona
l judgement is essential[1]. The inventory system will be simulated with a c
ertain number of repetitions and a certain length of time measured by weeks
(simulation weeks). The repetitions and the simulation weeks will be varied
independently to minimise any possible negative effects of using computer-ge
nerated random numbers and to find the optimal policy with the cost paramete
rs associated with the system, i.e., order placement cost, holding cost and
stockout cost. Furthermore, the confidence interval for the cost from each c
ombination will be constructed. Finally, the effects on the optimal policy b
y changing the cost parameters will be investigated.
A Monte Carlo Simulation is a probabilistic type of simulation that approxim
ates the solution to a problem by sampling from a random process. Some known
probability distributions of certain key variables (the demand and the lead
time in this system) will be defined firstly and then converted to cumulati
ve probability distributions in order to determine specific variable values
used in the simulation. Note that sufficient repetitions and numbers of simu
lation weeks should be used (up to 10,000 repetitions and 5200 weeks in this
system), since computers are deterministic, and as a result computer-genera
ted numbers are not really random[3]. In addition, the variance of the resul
ts will be reduced.
*****************************************************************************
Conclusion
Monte Carlo Simulation techniques can be used to establish the optimal opera
ting policy for an inventory system. In the inventory system, because of the
stochastic nature of the variables, deterministic mathematical methods are
invalid, and statistic methods should be used instead. Note that in this inv
entory system, the most important result is not detailed values but the poli
cies behind them.
For this system, the optimal policy is the combination between a re-order po
int and order quantities for the minimum cost, and is related to some cost p
arameters. Note that due the properties of the random number generators in p
rogramming languages, the reliability and validity of pseudo-random numbers
should be considered. Therefore, sufficiently large repetitions and long len
gth of simulation time are necessary, which is also dedicated to the reducti
on of the variances.
With the initial values of the three cost parameters, 100 repetitions and 52
simulation weeks, the simulation shows that setting the re-order point to b
e 0 units and the order quantities to be 5 units will be probably the optima
l policy for the item. Then after using larger number of repetition as well
as longer length of simulation time, the optimal policy is stabilised to be
the combination above. In addition, confidence intervals are constructed aim
ing to estimate the existing ranges of the true cost from each combination w
ith 95% probability.
In order to study the effects of the three cost parameters on the optimal po
licy of the system, they are changed independently in three series of simula
tions, and the changes of the optimal policy caused by the different paramet
ers are investigated. The results show that a large order placement cost mak
es the optimal policy lead to a large number of order quantities and a small
re-order point. A large holding cost causes the optimal policy to change to
have both a small re-order point and a small number of order quantities. Th
e optimal policy tends to be both a large re-order point and a large number
of order quantities when a large stockout cost is introduced. The change of
the optimal policy is more sensitive to the change of stockout cost than to
that of the holding cost and to that of the order placement cost. Finally, i
f significant large values of the cost parameters are introduced, the curren
t model of the system will not be suitable any more and as a result, models
with different range of re-order point and order quantities are required ins
tead.
--
ÇüÔ¼È÷í£¬Åû·¢ÐÐÒ÷ÔóÅÏ£¬ÑÕÉ«ã¾ã²£¬ÐÎÈÝ¿Ýé¡£Ó游¼û¶øÎÊÖ®Ô»£º¡°×Ó·Ç
ÈýãÌ´ó·òÒ®£¿ºÎÒÔÖÁ´Ë£¿¡±ÇüÔÔ»£º¡°¾ÙÊÀ»ë×ǶøÎÒ¶ÀÇ壬ÖÚÈ˽Ô×í¶øÎÒ¶À
ÐÑ£¬ÊÇÒÔ¼û·Å¡£¡±Ó游Ի£º¡°ÎáÎÅ·òÊ¥ÈËÕߣ¬²»ÄýÖÍÓÚÎ¶øÓëÊÀÍÆÒÆ¡£¾Ù
ÊÀ»ë×Ç£¬ºÎ²»ÖðÆäÁ÷¶øµ´Æ䲨£»ÖÚÈ˽Ô×í£¬ºÎ²»²¸ÆäÔã¶øà¨Æä󤣬ºÎ¹Ê»³èª
ÎÕ褣¬¶ø×ÔÁî¼û·ÅΪ£¿¡±ÇüÔÔ»£º¡°ÎáÎÅÐÂãåÕ߱ص¯¹Ú£¬ÐÂÔ¡Õß±ØÕñÒ¡£ÈË
ÓÖÄÜÏòÖ®²ì²ì£¬¶øÊÜÎïÖ®ãëãëÕߺõ£¿"......¡
¡ù À´Ô´:¡¤¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn¡¤[FROM: ÌìÍâ·ÉÏÉ]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º4.257ºÁÃë