oos_simulation: Simulating the stock level and OOS probability

View source: R/Predictor.R

oos_simulationR Documentation

Simulating the stock level and OOS probability

Description

This function enables to calculate the expected stock level at the end of periods according to the current stock, the future forecasts, the productions. It is based on a Monte Carlo simulation that explores multiple demand scenarios.

Usage

oos_simulation(forecast, sd, productions, stock, nsim = 1000)

Arguments

forecast

A vector containing the forecasts of the future values

sd

The standard deviation of the forecasts

productions

A vector containing the future productions

stock

The current level of stock

nsim

The number of simulations to operate

Author(s)

Grandadam Patrik

Examples

oos_simulation(
forecast = c(400, 380, 420, 560, 500, 480, 570, 600, 560, 590),
sd = 100,
productions = c(0, 0, 0, 2900, 0, 0, 0, 2000, 0, 0), 
stock = 1350,
nsim = 1000
)

Upsylon/predictor documentation built on June 16, 2022, 4:48 p.m.