A shop sells a product that it buys from a supplier. If it orders too often it pays the fixed cost of placing and receiving an order again and again; if it orders too much at once it ties up cash and shelf space in stock that sits waiting to be sold. If demand is uncertain there is a second trade-off: too little stock means lost sales and unhappy customers, too much means leftovers that must be marked down or thrown away. How much should it order, and when?
These are the questions of inventory theory. Its models are among the oldest in OR and among the most widely deployed: every retailer, manufacturer and hospital pharmacy runs some version of the policies in this lecture, often inside an ERP system that computes them automatically. We look at two foundational models — the economic order quantity for steady, known demand, and the newsvendor for a single period of uncertain demand — and then at the policies that combine the two ideas.
The decision
An inventory policy answers two questions: how much to order, and when to order it. The relevant costs are:
- an ordering cost per order, independent of its size (administration, transport, set-up of a production run);
- a purchase cost per unit;
- a holding cost per unit per unit of time, covering the cost of capital, storage, insurance and obsolescence — often expressed as a percentage of per year;
- a shortage cost for demand that cannot be met from stock, either as a lost sale or as a backorder filled later.
Which costs matter depends on the setting. With steady demand, the trade-off is between ordering and holding costs. With uncertain demand, it is between holding (or overage) and shortage costs.
The economic order quantity
Assume demand occurs at a constant, known rate of units per year, replenishment is instantaneous, and no shortages are allowed. Then it is clearly optimal to order only when stock reaches zero, and to order the same quantity each time. Inventory follows a sawtooth: it jumps to , falls linearly to zero over a cycle of length , and jumps back up.
The decision variable is the order quantity . Over a year,
- the number of orders is , so ordering costs ;
- the average inventory is , so holding costs ;
- purchasing costs , which does not depend on and can be ignored.
The annual cost to minimize is therefore
The first term decreases in and the second increases. is convex on , so setting the derivative to zero gives the minimum:
The cost-minimizing order quantity and the resulting annual cost are
At the annual ordering cost and the annual holding cost are equal, each .
This is the EOQ formula, usually attributed to Harris (1913). Its most useful property is robustness. Dividing by gives
which is very flat near . Ordering 25% more than optimal raises cost by only 2.5%. Equally, errors in the inputs are damped by the square root: if is overestimated by a factor of two, is too large by a factor of , and cost rises by about 6%. This is why EOQ works well in practice even though its assumptions rarely hold exactly.
A shop sells units a year. Each order costs to place, and holding one unit for a year costs . Then
so the shop places orders a year, one every two months. The annual cost is
The cost curve is flat around the optimum:
| Order quantity | 150 | 200 | 250 | 300 | 400 |
|---|---|---|---|---|---|
| Annual cost | 1250 | 1200 | 1230 | 1300 | 1500 |
| Relative to optimum | +4.2% | — | +2.5% | +8.3% | +25% |
If the supplier only delivers in cases of 250, the penalty is a year.
Lead times. If an order takes a known time to arrive, nothing changes except timing: place the order when the stock on hand equals the demand during the lead time, . This reorder point becomes important once demand is uncertain.
The newsvendor model
Now consider a single selling period with uncertain demand. A newsvendor buys papers in the morning at cost each, sells them at price , and can return unsold copies at the end of the day for a salvage value , with . Demand is a random variable with distribution function . The decision is the order quantity , made before demand is known. The same structure fits fashion goods, perishable food, seasonal products, and capacity decisions in general.
Two costs drive the decision:
- the underage cost , the profit lost on each unit of demand that goes unmet;
- the overage cost , the loss on each unit bought but not sold.
The expected cost of mismatch is
where , and maximizing expected profit is equivalent to minimizing .
Marginal analysis. Increase by one small unit. With probability demand falls short of , the extra unit is left over, and we lose . With probability demand exceeds , the extra unit is sold, and we save . Formally,
This is increasing in , so is convex, and the optimum is where the derivative vanishes.
For continuous demand, the expected-profit-maximizing order quantity satisfies
The right-hand side is the critical ratio, and is the corresponding quantile of the demand distribution. For discrete demand, is the smallest with .
The critical ratio is the optimal probability of not running out. When underage is costly relative to overage (high margin, high salvage value), it is close to and we stock well above expected demand; when overage dominates, we stock below it. Ordering the mean demand is optimal only when and the distribution is symmetric.
For normal demand with mean and standard deviation , , where and is the standard normal distribution function. The expected shortage at any is , where
is the standard normal loss function and is the standard normal density. Expected leftovers are then .
A bakery sells a speciality cake for , which costs to make; unsold cakes go to a food outlet for . Daily demand is approximately normal with and . Then
The quantile of the standard normal distribution is , so
With , the loss function is . Hence
- expected shortage: cakes;
- expected sales: cakes;
- expected leftovers: cakes.
Expected profit is minus the expected cost of mismatch:
Ordering the mean, , gives expected shortage and leftovers of each, and expected profit . The value is what perfect knowledge of demand would earn; the remaining is the cost of uncertainty, and the only way to reduce it further is to reduce — better forecasting, or postponing production until demand is better known.
The probability of not running out, here , is not the same as the fraction of demand met. The bakery meets of demand on average, even though it sells out on one day in three.
Policies for repeated orders under uncertainty
Most items are reordered repeatedly with uncertain demand and a positive lead time. Three policy classes dominate practice. In each, decisions are based on the inventory position: stock on hand plus stock on order minus backorders.
- Base-stock (order-up-to) policy. At each review, order enough to raise the inventory position to a fixed level . With periodic review, backordered demand and no fixed ordering cost, a base-stock policy is optimal, and is a newsvendor quantile of the demand over the lead time plus one review period.
- (s, S) policy. At each review, if the inventory position is at or below , order up to ; otherwise do nothing. With a fixed ordering cost, policies of this form are optimal under fairly general conditions. Roughly, plays the role of the EOQ and protects against lead-time demand.
- (Q, r) policy. With continuous review, whenever the inventory position falls to the reorder point , order a fixed quantity . A good approximation takes from the EOQ formula and sets from the lead-time demand distribution.
Safety stock
With uncertain demand, the reorder point is set above the expected lead-time demand. The excess is the safety stock. If demand over the lead time is normal with mean and standard deviation , and we want to avoid a stockout in each cycle with probability (the cycle service level), then
If demand per period is independent with standard deviation and the lead time is periods, then : safety stock grows with the square root of the lead time, not linearly.
Return to the shop of the EOQ example, with demand averaging units a month (1200 a year) but now with a monthly standard deviation of . The lead time is one month, so lead-time demand has and . For a cycle service level, , so
The policy is: when the inventory position falls to about units, order . The expected shortage per cycle is units, so the fraction of demand met from stock is . Holding the safety stock costs a year. Raising the cycle service level to () needs units of safety stock, at a year.
The example shows the steep cost of high service levels: the last few percentage points require disproportionately more stock, because grows rapidly as approaches .
Extensions
- Multi-echelon inventory. Stock is held at several levels — a central warehouse feeding regional depots feeding stores — and the question is where safety stock is most effective. Holding it centrally pools demand variability across locations.
- Multiple items. Items share a budget, warehouse space or a joint ordering cost; Lagrangian methods adjust each item's EOQ or service level.
- Perishability and obsolescence. Food, blood and medicines expire; fashion and electronics lose value quickly. These push towards newsvendor-type models.
- Dynamic programming. Time-varying demand, capacity limits and non-stationary costs are handled by stochastic dynamic programming, which is also how the optimality of base-stock and (s, S) policies is proved.
- Demand learning. In practice the demand distribution is itself estimated from data, often censored by stockouts — sales are observed, but lost demand is not.
Further reading: Silver, Pyke and Thomas, Inventory and Production Management in Supply Chains; Zipkin, Foundations of Inventory Management; Nahmias, Production and Operations Analysis.