Learn R Programming

SCperf (version 1.1.1)

bullwhip-deprecated: Bullwhip effect

Description

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.

Usage

bullwhip(method, phi, L, p, alpha)

Arguments

method

Character string specifing which method to use

phi

A vector of autoregressive parameters

L

A positive lead-time

p

Order to be used in the SMA method

alpha

Smoothing factor to be used in the ES method (0 < alpha < 1)

Value

The measure for the bullwhip effect

Details

The bullwhip function has been deprecated and will be made defunct; use the bullwhipgame package.

See Also

pkgSCperf-deprecated

Examples

Run this code
# 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