outp: Order-Up-To level inventory simulation function

Description Usage Arguments Details Value Examples

View source: R/out.R

Description

This is the first inventory simulation function.

Usage

1
2
outp(data, fcs, fitted = NULL, holdout, ss = c("constant", "dynamic"),
  L = 1, CSL = 0.95)

Arguments

data

Demand observations, both insample and holdout (simulation) windows.

fcs

Lead time forecasts (aggregated), equal size as demand data. These are forecasts produced from each observation i for the period of i+(1:L) and written down to the element i of the vector.

fitted

Fitted valus from forecasting model. Needed to initialise the model. If NULL, then the first forecast value is used.

holdout

The size of the window where the inventory simulation will be performed.

ss

Safety stock; single value, vector, or an option between "constant" or "dynamic". If single value, then ss is considered fixed equal to that value. If vector, then ss is considered to be updated dynamically; in this case, the length of ss should be equal to the holdout. If "constant", then ss is calculated empirically once (based on the insample data) and kept fixed. If "dynamic", then ss is calculated empirically and updated for each period. It is recommended that both "constant" and "dynamic" are used only if at least 20 observations are available in the insample (length of data minus holdout).

L

Lead time.

CSL

Targeted Customer Service Level.

Details

Function uses data and rolling origin forecasts in order to do simulations

Value

The list, containing the following, is returned:

Examples

1
#No example here yet.

config-i1/inventory documentation built on May 13, 2019, 9:55 p.m.