Single resource capacity control
Airlines, car rental companies and hotels sell a fixed, perishable capacity: seats on one flight, cars on one day, rooms on one night. Customers who pay a discounted price usually book early, and customers who pay the full price book late. If you accept every early request, you may have nothing left for the late customers who pay more. If you hold back too much, units go unsold. This section derives the capacity control policy that resolves this trade-off for a single resource, following Talluri and van Ryzin (2004). The policy accepts a request only if its price is greater than the value of the capacity the request uses. That value is the opportunity cost (or expected displacement cost) of the unit: the expected future revenue you lose by selling it now instead of protecting it for later. A value function captures this cost. Let be the optimal expected revenue when units of capacity remain. The opportunity cost of one unit is the marginal value , so the whole problem reduces to computing the value function accurately.Two-class model
You allocate a resource of capacity to two classes of customers. Each class pays a fixed price per unit. Let and be the prices of the discount and full-price classes, and let and be their demands. The model assumes that- , and
- and are independent random variables.
Dynamic programming solution
The dynamic program has one stage per class. Define as the optimal expected revenue just before discount demand is observed, with units available. Selling everything at the full price bounds it from above: . Define as the optimal expected revenue just before full-price demand is observed, with units left. Nothing remains to decide at this stage, so The last step uses an identity for a nonnegative integer demand and an integer : The dynamic program relates to . After discount demand, units are left and the second stage earns in expectation, so To find the best , look at the change in from one more protected unit: To see why, compare the two expectations case by case. If , discount demand never reaches the booking limit under either protection level. Both terms equal , and the difference is zero. If , the discount class fills its booking limit in both cases, and where is the marginal value of the th protected unit. Weighting the second case by its probability gives the result. The bracket decreases in . At it equals , and as it tends to . So increases with while the bracket is positive and decreases after it turns negative, and its maximum sits where the bracket changes sign. The factor is never negative, so it cannot move that point: the optimal protection level does not depend on the discount demand.Optimal protection level and maximum revenue
The optimal protection level is the largest at which one more protected unit is still worth more than a discount sale: This is known as Littlewood’s rule. The optimal booking limit for the discount class is The maximum expected revenue starting with units is You can compute recursively from starting at The identity above gives the first expectation, and the second one is a finite sum, because : Starting from , you compute , and so on up to .Multiple classes
With classes, number them by price so that class 1 pays the most. Class books first and class 1 books last. Stage handles class , and is the optimal expected revenue with units left before class demand arrives, with . Let be the protection level for classes , with . For , class gets nothing and . For , class can buy up to units, and The first sum covers demand below the booking limit, where every request is accepted. The second term covers demand that reaches the limit. The protection level for classes is the largest at which a unit is still worth more than the price of the next class: The function below computes the protection levels for Poisson demand, one stage at a time. Each stage reuses the value function and protection level of the stage before it.
The marginal value of capacity as a function of the remaining capacity:


The lowest class has no protection level of its own, because no cheaper class comes after it.


References
K. Talluri and G. van Ryzin, The Theory and Practice of Revenue Management, Springer, 2004.Found an error on this page? Report an issue.

