View source: R/Periodic_review_pois.R
Periodic_review_pois | R Documentation |
Simulating a Periodic order up to level policy, .
Periodic_review_pois( demand, lambda, leadtime, service_level, Review_period, shortage_cost = FALSE, inventory_cost = FALSE, ordering_cost = FALSE )
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 |
Review_period |
the period where the ordering happens. |
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. |
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 order up to level is calculated based on the review period,lead time and Poisson distribution .
a list of two date frames, the simulation and the metrics.
"haytham omar email: <haytham@rescaleanalytics.com>"
Periodic_review_pois(demand=rpois(80,6),lambda=6,leadtime=5,service_level=0.95, Review_period =9, shortage_cost= FALSE,inventory_cost=FALSE,ordering_cost=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.