Learn R Programming

inventorize (version 1.1.1)

sim_min_Q_pois: sim_min_Q_pois

Description

Simulating a Min,Q policy or also calleD S,Q policy, .

Usage

sim_min_Q_pois(
  demand,
  lambda,
  leadtime,
  service_level,
  Quantity,
  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

Quantity

Fixed order quantity to be ordered at min

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.

Value

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

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 normal distribution.

Examples

Run this code
# NOT RUN {
sim_min_Q_pois(demand = rpois(50,8),lambda = 4,leadtime = 4,shortage_cost =30,
Quantity = 12,service_level = 0.70,
inventory_cost = 50,ordering_cost=FALSE)
# }

Run the code above in your browser using DataLab