Skip to main content

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 v(x)v(x) be the optimal expected revenue when xx units of capacity remain. The opportunity cost of one unit is the marginal value v(x)−v(x−1)v(x) - v(x-1), so the whole problem reduces to computing the value function accurately.

Two-class model

You allocate a resource of capacity CC to two classes of customers. Each class pays a fixed price per unit. Let pdp_d and pfp_f be the prices of the discount and full-price classes, and let DdD_d and DfD_f be their demands. The model assumes that
  • pd<pfp_d < p_f, and
  • DdD_d and DfD_f are independent random variables.
All discount demand arrives before any full-price demand. Real bookings interleave, but this simplification has been shown to cause only small losses relative to the optimal policy. You choose a protection level yy in advance: the number of units reserved for the full-price class. The booking limit for the discount class is then Cd=C−y.C_d = C - y. The discount class cannot occupy more units than it demands, so it sells Sd=min⁡(Cd,Dd).S_d = \min(C_d, D_d). The capacity left for the full-price class is Cf=C−min⁡(Cd,Dd)=max⁡(y,C−Dd),C_f = C - \min(C_d, D_d) = \max(y, C - D_d), and the full-price class sells Sf=min⁡(Cf,Df).S_f = \min(C_f, D_f). The expected revenue is E[pdSd+pfSf]\mathbb{E}[p_d S_d + p_f S_f], where the expectation is over both demands. Maximizing over the protection level gives vd(C)=max⁡0≤y≤CE[pdSd+pfSf]=max⁡0≤y≤CE[pdmin⁡(C−y,Dd)+pfmin⁡(max⁡(y,C−Dd),Df)].\begin{aligned} v_d(C) &= \max_{0 \le y \le C} \mathbb{E}\left[p_d S_d + p_f S_f\right] \\ &= \max_{0 \le y \le C} \mathbb{E}\left[p_d \min(C-y, D_d) + p_f \min\left(\max(y, C-D_d), D_f\right)\right]. \end{aligned} The price ratio r=pd/pfr = p_d / p_f suggests how yy should behave. When rr is small (pf≫pdp_f \gg p_d), you protect most of the capacity for the full-price class. When rr is close to 1, you protect very little, because a discount sale earns almost as much as a full-price sale. Between these extremes, yy depends on the tail of the full-price demand, P(Df≥y)P(D_f \ge y): a protected unit earns revenue only if full-price demand actually reaches it. Dynamic programming finds the optimal yy.

Dynamic programming solution

The dynamic program has one stage per class. Define vd(C)v_d(C) as the optimal expected revenue just before discount demand is observed, with CC units available. Selling everything at the full price bounds it from above: vd(C)≤pfCv_d(C) \le p_f C. Define vf(x)v_f(x) as the optimal expected revenue just before full-price demand is observed, with xx units left. Nothing remains to decide at this stage, so vf(x)=E[pfmin⁡(x,Df)]=pf∑j=1xP(Df≥j).v_f(x) = \mathbb{E}\left[p_f \min(x, D_f)\right] = p_f \sum_{j=1}^{x} P(D_f \ge j). The last step uses an identity for a nonnegative integer demand DD and an integer xx: E[min⁡(x,D)]=∑j=0∞min⁡(x,j) P(D=j)=1⋅P(D=1)+⋯+x⋅P(D=x)+x⋅P(D=x+1)+…=P(D≥1)+P(D≥2)+⋯+P(D≥x)=∑j=1xP(D≥j).\begin{aligned} \mathbb{E}\left[\min(x, D)\right] &= \sum_{j=0}^{\infty} \min(x, j)\, P(D = j) \\ &= 1 \cdot P(D=1) + \dots + x \cdot P(D=x) + x \cdot P(D=x+1) + \dots \\ &= P(D \ge 1) + P(D \ge 2) + \dots + P(D \ge x) = \sum_{j=1}^{x} P(D \ge j). \end{aligned} The dynamic program relates vd(C)v_d(C) to vfv_f. After discount demand, CfC_f units are left and the second stage earns vf(Cf)v_f(C_f) in expectation, so vd(C)=max⁡0≤y≤CE[pdmin⁡(C−y,Dd)+vf(max⁡(y,C−Dd))]=max⁡0≤y≤CW(y,C).\begin{aligned} v_d(C) &= \max_{0 \le y \le C} \mathbb{E}\left[p_d \min(C-y, D_d) + v_f\left(\max(y, C-D_d)\right)\right] \\ &= \max_{0 \le y \le C} W(y, C). \end{aligned} To find the best yy, look at the change in WW from one more protected unit: ΔW(y,C)=W(y,C)−W(y−1,C)=[pfP(Df≥y)−pd]P(Dd>C−y).\Delta W(y, C) = W(y, C) - W(y-1, C) = \left[p_f P(D_f \ge y) - p_d\right] P(D_d > C - y). To see why, compare the two expectations case by case. If Dd≤C−yD_d \le C - y, discount demand never reaches the booking limit under either protection level. Both terms equal pdDd+vf(C−Dd)p_d D_d + v_f(C - D_d), and the difference is zero. If Dd>C−yD_d > C - y, the discount class fills its booking limit in both cases, and ΔW=[pd(C−y)+vf(y)]−[pd(C−y+1)+vf(y−1)]=Δvf(y)−pd,\begin{aligned} \Delta W &= \left[p_d (C-y) + v_f(y)\right] - \left[p_d (C-y+1) + v_f(y-1)\right] \\ &= \Delta v_f(y) - p_d, \end{aligned} where Δvf(y)=vf(y)−vf(y−1)=pfP(Df≥y)\Delta v_f(y) = v_f(y) - v_f(y-1) = p_f P(D_f \ge y) is the marginal value of the yyth protected unit. Weighting the second case by its probability P(Dd>C−y)P(D_d > C - y) gives the result. The bracket pfP(Df≥y)−pdp_f P(D_f \ge y) - p_d decreases in yy. At y=0y = 0 it equals pf−pd>0p_f - p_d > 0, and as y→∞y \to \infty it tends to −pd<0-p_d < 0. So W(y,C)W(y, C) increases with yy while the bracket is positive and decreases after it turns negative, and its maximum sits where the bracket changes sign. The factor P(Dd>C−y)P(D_d > C - y) 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 yy at which one more protected unit is still worth more than a discount sale: y∗=max⁡{y∈N:pfP(Df≥y)≥pd}=max⁡{y∈N:P(Df≥y)≥pdpf}.y^* = \max\left\{ y \in \mathbb{N} : p_f P(D_f \ge y) \ge p_d \right\} = \max\left\{ y \in \mathbb{N} : P(D_f \ge y) \ge \frac{p_d}{p_f} \right\}. This is known as Littlewood’s rule. The optimal booking limit for the discount class is b∗=(C−y∗)+.b^* = (C - y^*)^+. The maximum expected revenue starting with CC units is vd(C)={W(y∗,C)if y∗≤C,W(C,C)if y∗>C.v_d(C) = \begin{cases} W(y^*, C) & \text{if } y^* \le C, \\ W(C, C) & \text{if } y^* > C. \end{cases} You can compute W(y∗,C)W(y^*, C) recursively from W(y,C)=W(y−1,C)+[pfP(Df≥y)−pd]P(Dd>C−y),W(y, C) = W(y-1, C) + \left[p_f P(D_f \ge y) - p_d\right] P(D_d > C - y), starting at W(0,C)=pd E[min⁡(C,Dd)]+E[vf(max⁡(0,C−Dd))].W(0, C) = p_d\, \mathbb{E}\left[\min(C, D_d)\right] + \mathbb{E}\left[v_f\left(\max(0, C - D_d)\right)\right]. The identity above gives the first expectation, E[min⁡(C,Dd)]=∑j=1CP(Dd≥j),\mathbb{E}\left[\min(C, D_d)\right] = \sum_{j=1}^{C} P(D_d \ge j), and the second one is a finite sum, because vf(0)=0v_f(0) = 0: E[vf(max⁡(0,C−Dd))]=∑j=0Cvf(C−j) P(Dd=j).\mathbb{E}\left[v_f\left(\max(0, C - D_d)\right)\right] = \sum_{j=0}^{C} v_f(C - j)\, P(D_d = j). Starting from W(0,C)W(0, C), you compute W(1,C)W(1, C), W(2,C)W(2, C) and so on up to W(y∗,C)W(y^*, C).

Multiple classes

With nn classes, number them by price so that class 1 pays the most. Class nn books first and class 1 books last. Stage jj handles class jj, and vj(x)v_j(x) is the optimal expected revenue with xx units left before class jj demand arrives, with v0(x)=0v_0(x) = 0. Let y=yj−1∗y = y_{j-1}^* be the protection level for classes j−1,…,1j-1, \dots, 1, with y0∗=0y_0^* = 0. For x≤yx \le y, class jj gets nothing and vj(x)=vj−1(x)v_j(x) = v_{j-1}(x). For x>yx > y, class jj can buy up to x−yx - y units, and vj(x)=∑k=0x−y−1[pjk+vj−1(x−k)]P(Dj=k)+[pj(x−y)+vj−1(y)]P(Dj≥x−y).\begin{aligned} v_j(x) = {} & \sum_{k=0}^{x-y-1} \left[p_j k + v_{j-1}(x-k)\right] P(D_j = k) \\ & + \left[p_j (x-y) + v_{j-1}(y)\right] P(D_j \ge x-y). \end{aligned} 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 j,…,1j, \dots, 1 is the largest xx at which a unit is still worth more than the price of the next class: yj∗=max⁡{x:vj(x)−vj(x−1)>pj+1}.y_j^* = \max\left\{ x : v_j(x) - v_j(x-1) > p_{j+1} \right\}. 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 first example has capacity C=100C = 100 and two classes: The marginal value of capacity as a function of the remaining capacity: Marginal value of one unit of capacity against remaining capacity for the two-class example Marginal value as a function of the remaining capacity, two classes The optimal protection limits for the same example: Optimal protection limits for the two-class example Optimal protection limits, two classes The same dynamic program handles more classes. The second example has capacity C=50C = 50 and four classes: The lowest class has no protection level of its own, because no cheaper class comes after it. Marginal value of capacity against remaining capacity for each stage of the four-class example Marginal value as a function of the remaining capacity for each stage, four classes The marginal value of capacity decreases as the remaining capacity grows: the more units you have left, the less any one of them is worth. It also increases with the stage index. At a higher stage more classes are still to come, so a unit kept back has more chances to be sold at a good price. The optimal protection limits for the four-class example: Optimal protection limits for the four-class example Optimal protection limits, four classes

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.