Learn R Programming

inventorize (version 1.1.1)

EPN_singleperiod: EPN_singleperiod

Description

calculating expected profit for a newsvendor model.

Usage

EPN_singleperiod(quantity, mean, standerddeviation, p, c, g, b, na.rm = TRUE)

Arguments

quantity,

numeric,quantity replinished every cycle.

mean

numeric,Expected demand of the SKU during season.

standerddeviation

numeric, standard deviation of the SKU during season.

p

numeric,selling price of the SKU

c

numeric,cost of the SKU

g

numeric,,salvage or discounted value if sold after season,if there is no salvage , zero is placed in the argument.

b

numeric, peanlity cost of not satisfying demand if any, if not, zero is placed in the argument.

na.rm

A logical indicating whether missing values should be removed

Value

a dataframe that contains calculations of the expected profit from a newsvendor model based on normal distribution.

Details

calculating expected profit for a newsvendor model. based on assumed normal distribution demand.

Examples

Run this code
# NOT RUN {
EPN_singleperiod(quantity=40149,mean= 32000,standerddeviation= 11000,p=24,c=10.9,g=7,b=0,na.rm=TRUE)
# }

Run the code above in your browser using DataLab