Description Usage Arguments Details Value Examples
This is the first inventory simulation function.
1 2 |
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. |
Function uses data and rolling origin forecasts in order to do simulations
The list, containing the following, is returned:
varOrders - Orders variance
varInventory - Inventory variance
TC - Total (inventory and backlog) cost
CSL - Realised CSL
1 | #No example here yet.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.