sim_minmax_pois: sim_minmax_pois

View source: R/Sim_minmax_pois.R

sim_minmax_poisR Documentation

sim_minmax_pois

Description

Simulating a Min,max policy or aslo called s,S policy, .

Usage

sim_minmax_pois(
  demand,
  lambda,
  leadtime,
  service_level,
  Max,
  shortage_cost = FALSE,
  inventory_cost = FALSE,
  ordering_cost = FALSE
)

Arguments

demand

A vector of demand in N time periods.

lambda

rate of demand in N time periods.

leadtime

lead time from order to arrival

service_level

cycle service level requested

Max

Max quantity for order up to level

shortage_cost

shortage cost per unit of sales lost

inventory_cost

inventory cost per unit.

ordering_cost

ordering cost for every time an order is made.

Details

The Function takes a demand vector, mean of demand ,sd,lead time and requested service level to simulate and inventory system, orders are lost if inventory level is less than requested demand, also ordering is made at day t+1, metrics like item fill rate and cycle service level are calculated. the min is calculated based on a poisson distribution.

Value

a list of two date frames, the simulation and the metrics.

Author(s)

"haytham omar email: <haytham@rescaleanalytics.com>"

Examples

sim_minmax_pois(demand = rpois(50,8),lambda = 4,leadtime = 4,shortage_cost = 20,
Max = 32,service_level = 0.70,inventory_cost = 50,ordering_cost=50)

inventorize documentation built on June 1, 2022, 1:07 a.m.