# 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