423. Capacity-Constrained

423.1. Capacity-constrained multi-product newsvendor

Relax two dimensions from basic newsvendor: number of items > 1 and capacity is constrained. Each product has its own demand and cost structure, but they share a budget, warehouse space, or other resource.

Without the constraint, each product is its own newsvendor — 𝑄𝑖=𝜇𝑖+𝑧𝑖𝜎𝑖 at its own critical ratio CR𝑖=𝐶𝑢𝑖/(𝐶𝑢𝑖+𝐶𝑜𝑖). With a shared constraint, those individual optima may not all be achievable — the constraint forces trade-offs.

423.1.1. Setup

𝑛 products. For each 𝑖:

Constraint:

𝑖=1𝑛𝑣𝑖𝑄𝑖𝑉

If individual optima already satisfy the constraint, use them. The interesting case is when 𝑖𝑣𝑖𝑄𝑖ind>𝑉 — must shrink.

423.1.2. Lagrangian

Maximize total expected profit subject to the capacity constraint:

max𝑄𝑖𝑖𝐸[Π𝑖(𝑄𝑖)]s.t.𝑖𝑣𝑖𝑄𝑖𝑉

where 𝐸[Π𝑖(𝑄𝑖)] is the basic newsvendor expected profit for product 𝑖.

Lagrangian (with multiplier 𝜆0):

𝐿=𝑖𝐸[Π𝑖(𝑄𝑖)]𝜆(𝑖𝑣𝑖𝑄𝑖𝑉)

423.1.3. Modified critical ratio

Take 𝜕𝐿/𝜕𝑄𝑖=0 for each 𝑖:

𝜕𝜕𝑄𝑖𝐸[Π𝑖]=𝜆𝑣𝑖

For continuous demand, 𝜕𝐸[Π𝑖]/𝜕𝑄𝑖=(1𝐹𝑖(𝑄𝑖))𝐶𝑢𝑖𝐹𝑖(𝑄𝑖)𝐶𝑜𝑖 (from the marginal-analysis derivation in basic newsvendor). Setting equal to 𝜆𝑣𝑖:

(1𝐹𝑖(𝑄𝑖))𝐶𝑢𝑖𝐹𝑖(𝑄𝑖)𝐶𝑜𝑖=𝜆𝑣𝑖𝐶𝑢𝑖𝐹𝑖(𝑄𝑖)(𝐶𝑢𝑖+𝐶𝑜𝑖)=𝜆𝑣𝑖𝐹𝑖(𝑄𝑖)=𝐶𝑢𝑖𝜆𝑣𝑖𝐶𝑢𝑖+𝐶𝑜𝑖

Compare to basic: 𝐹𝑖(𝑄𝑖basic)=𝐶𝑢𝑖/(𝐶𝑢𝑖+𝐶𝑜𝑖). The constraint reduces each product’s effective critical ratio by 𝜆𝑣𝑖/(𝐶𝑢𝑖+𝐶𝑜𝑖) — products that consume more capacity per unit get bigger CR cuts, ordering less.

Effective per-product CR:

CR𝑖(𝜆)=𝐶𝑢𝑖𝜆𝑣𝑖𝐶𝑢𝑖+𝐶𝑜𝑖

When 𝜆𝑣𝑖𝐶𝑢𝑖, the effective CR goes negative — that product is not worth ordering at all given the constraint.

423.1.4. Find 𝜆

𝜆 is chosen so that 𝑖𝑣𝑖𝑄𝑖(𝜆)=𝑉. One equation, one unknown — bisection works (the LHS is monotone decreasing in 𝜆).

423.1.5. Algorithm

  1. Compute unconstrained 𝑄𝑖basic=𝜇𝑖+Φ1(CR𝑖basic)𝜎𝑖.
  2. Check 𝑖𝑣𝑖𝑄𝑖basic𝑉. If yes, done.
  3. Else, find 𝜆>0 such that 𝑖𝑣𝑖𝑄𝑖(𝜆)=𝑉 (bisection).
  4. Each 𝑄𝑖=𝜇𝑖+Φ1(CR𝑖(𝜆))𝜎𝑖.
Example

Given (2 newspapers competing for budget):

  • Newspaper 1: 𝐷1𝒩︀(100,202), 𝑃1=3, 𝐶1=1, 𝑆1=0𝐶𝑢1=2, 𝐶𝑜1=1
  • Newspaper 2: 𝐷2𝒩︀(50,152), 𝑃2=5, 𝐶2=2, 𝑆2=0.5𝐶𝑢2=3, 𝐶𝑜2=1.5
  • Capacity (budget): 𝑖𝐶𝑖𝑄𝑖𝑉 where 𝑉 = $150 (so 𝑣𝑖=𝐶𝑖)

Step 1 — unconstrained per-product newsvendors

CR1=230.667𝑧10.44𝑄1ind100+0.4420=108.8CR2=34.50.667𝑧20.44𝑄2ind50+0.4415=56.6

Budget required: 1108.8+256.6=108.8+113.2= $222 — exceeds $150 budget. Constraint binds.

Step 2 — solve for 𝜆

Effective critical ratios as a function of 𝜆:

CR1(𝜆)=2𝜆13,CR2(𝜆)=3𝜆24.5

Try 𝜆=0.4:

  • CR1(0.4)=1.630.533𝑧10.082𝑄1100+1.65=101.6
  • CR2(0.4)=2.24.50.489𝑧20.028𝑄2500.42=49.6
  • Total budget: 1101.6+249.6=200.8 — still over.

Try 𝜆=0.7:

  • CR1(0.7)=1.330.433𝑧10.168𝑄196.6
  • CR2(0.7)=1.64.50.356𝑧20.370𝑄244.5
  • Total budget: 96.6+89=185.6 — still over.

Try 𝜆=1.0:

  • CR1(1.0)=130.333𝑧10.431𝑄191.4
  • CR2(1.0)=14.50.222𝑧20.764𝑄238.5
  • Total budget: 91.4+77.0=168.4 — close.

Try 𝜆=1.15 (interpolating):

  • CR1(1.15)=0.8530.283𝑧10.572𝑄188.6
  • CR2(1.15)=0.74.50.156𝑧21.013𝑄234.8
  • Total budget: 88.6+69.6=158.2 — closer.

Try 𝜆=1.25:

  • CR1(1.25)=0.753=0.25𝑧10.674𝑄186.5
  • CR2(1.25)=0.54.50.111𝑧21.221𝑄231.7
  • Total budget: 86.5+63.4=149.9150
𝜆1.25

Step 3 — final order quantities

𝑄187,𝑄232

Both shrink below their individual optima (109, 57). Newspaper 2 shrinks proportionally more because its 𝑣𝑖=2 is twice that of newspaper 1 — the constraint penalizes resource-hungry items more.

Step 4 — compare to unconstrained

  • Unconstrained spend: $222, both products near their individual optimal CR ( 0.667).
  • Constrained spend: $150, both products below their optimal CR — accepting more risk to fit the budget.

The Lagrange multiplier 𝜆1.25 is the shadow price: each additional dollar of budget would increase total expected profit by approximately $1.25 (until 𝜆 falls back to zero, at which point the constraint stops binding).