330. Two-stage Recourse

The simplest stochastic program: decide 𝑥 now, observe random 𝜉, then adapt with second-stage decision 𝑦.

330.1. Formulation

min𝑥𝑐𝑇𝑥+𝐸𝜉[𝑄(𝑥,𝜉)]

where the recourse function:

𝑄(𝑥,𝜉)=min𝑦{𝑞(𝜉)𝑇𝑦:𝑇(𝜉)𝑥+𝑊𝑦=(𝜉),𝑦0}

𝑥 is here-and-now (e.g., build capacity); 𝑦 is wait-and-see (e.g., produce at each plant once demand is known).

330.2. Deterministic equivalent (scenarios)

For a finite scenario set 𝜉1,,𝜉𝑆 with probabilities 𝑝𝑠:

min𝑥,𝑦1,,𝑦𝑆𝑐𝑇𝑥+𝑠𝑝𝑠𝑞(𝜉𝑠)𝑇𝑦𝑠

s.t.: 𝑇(𝜉𝑠)𝑥+𝑊𝑦𝑠=(𝜉𝑠), 𝑦𝑠0, 𝑠.

A single large LP with |𝑥|+|𝑦|𝑆 variables. Can be solved with simplex / interior-point. Problematic when 𝑆 is large.

330.3. Decomposition methods

For large 𝑆:

330.4. Worked example

You can install solar capacity 𝑥 now (cost 𝑐 per unit). Tomorrow, demand 𝐷 is realized — uncertain, two scenarios:

Decision: how much 𝑥 to install? Two-stage SP:

min𝑥𝑐𝑥+0.6[0.20max(0,100𝑥)]+0.4[0.10max(0,𝑥40)]

(Recourse function is the inner min — here it’s just the cost given the realized demand.)

Optimal 𝑥 balances the cost of capacity now against expected shortage/surplus cost later. Different from optimizing for the expected demand 0.6100+0.440=76.

330.5. Why expected-demand optimization is wrong

Optimizing the expected (deterministic) problem misses the cost asymmetry between scenarios. Shortage at 0.20 per unit might be much more expensive than surplus at 0.10 per unit savings. SP captures this directly; deterministic doesn’t.

This gap is the Value of Stochastic Solution (VSS) — see EVPI vs VSS.

330.6. See also