bullwhip
computes the increase of demand
variability for a simple two-stage supply chains
consisting of a single retailer and a single manufacturer using three
forcasting methods: Minimum Mean Square Error (MMSE), Simple Moving
Average (SMA) and Exponential Smoothing (ES) when the demand follows
a known stationary AR(1) stochastic process.
bullwhip(method, phi, L, p, alpha)
Character string specifing which method to use
A vector of autoregressive parameters
A positive lead-time
Order to be used in the SMA method
Smoothing factor to be used in the ES method (0 < alpha < 1)
The measure for the bullwhip effect
The bullwhip
function has been deprecated and will be made defunct; use
the bullwhipgame package.
# NOT RUN {
# }
# NOT RUN {
bullwhip("SMA",0.9,2,4)
bullwhip("ES",0.9,2,0,0.6)
bullwhip("MMSE",0.9,2)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab