Learn R Programming

SCperf (version 1.0)

EOQ: Economic Order Quantity model

Description

Implements the classical Economic Order Quantity (EOQ) model and the EOQ model with planned shortages.

Usage

EOQ(d, k, h, b = 0)

Arguments

d
demand per unit time,
k
ordering or setup cost per unit time,
h
holding cost per unit time,
b
shortage penalty cost per unit time (default:0).

Value

returns a list containing:
Q
batch quantity,
T
time between orders (cycle length or time),
S
maximum backorder in units,
TVC
total variable cost.

Details

The classical EOQ model assumes that the demand rate of units per time unit is constant and each new order is delivered in full when inventory reaches zero. Also a cost for each unit held in storage and a fixed cost for each order placed are considered. No shortages are allowed.

The optimal (the economic order) quantity that minimize the total cost associated with the purchase, delivery and storage is defined by $Q=\sqrt(2Dk/h)$. When we relax the last assumption, that is, $b is not equal to 0$ we have the EOQ model with backorders.

References

Hillier, F. and Lieberman, G. (2001). Introduction to operational research. New York: McGraw-Hill, 7th.

See Also

EPQ, Newsboy, WW

Examples

Run this code
# Classical EOQ model#
# Given demand d=8000 items per year; set up cost k=12000; and holding cost h=0.3
# per unit we find that the optimal solution is to order 25298 units every 3.2
# months with a total variable cost of $7589.5

EOQ(8000,12000,0.3)

# EOQ model with planned shortages# 
# Consider now that backorders are allowed with a backorder cost b=1.1 per
# unit and year. Then the optimal solution is to order 28540 units every 3.6 months.
# The total variable cost is $6727.3 and the maximum shortage is 6116 units. 

EOQ(8000,12000,0.3,1.1)

Run the code above in your browser using DataLab