First-Stage Decisions and Recourse

Decompose a two-stage stochastic program into the committed first-stage decision (paid for certain) and the outcome-dependent recourse (second-stage) decision. Evaluate the recourse function Q(x,ξ)Q(\mathbf{x},\boldsymbol{\xi}) in a single scenario, average it to obtain the expected recourse cost, and combine with the first-stage cost to score a candidate first-stage decision.

Step 1 of 157%

Tutorial

First-Stage Decisions and the Recourse Function

In a two-stage stochastic program, decisions split by when they are made relative to the random outcome.

The first-stage decision x\mathbf{x} is fixed before the random vector ξ\boldsymbol{\xi} is observed -- it is the "here-and-now" commitment. Its cost cTx\mathbf{c}^T \mathbf{x} is paid for certain.

After ξ\boldsymbol{\xi} is observed, the decision maker reacts by choosing a recourse decision (or second-stage decision) y\mathbf{y}, which is allowed to depend on the realized value. The cost of this reaction is captured by the recourse function

Q(x,ξ)  =  miny0{q(ξ)Ty  :  T(ξ)x+Wy=h(ξ)}.Q(\mathbf{x},\boldsymbol{\xi}) \;=\; \min_{\mathbf{y}\,\geq\,0}\,\Big\{\,\mathbf{q}(\boldsymbol{\xi})^T \mathbf{y}\;:\;T(\boldsymbol{\xi})\,\mathbf{x} + W\mathbf{y} = \mathbf{h}(\boldsymbol{\xi})\,\Big\}.

Notice that QQ depends on the first-stage choice x\mathbf{x}, because the second-stage constraints involve x\mathbf{x}.

The full two-stage stochastic program is

minx0  cTxfirst-stage cost  +  Eξ ⁣[Q(x,ξ)]expected recourse cost,Ax=b.\min_{\mathbf{x}\,\geq\,0}\;\underbrace{\mathbf{c}^T \mathbf{x}}_{\text{first-stage cost}}\;+\;\underbrace{\mathbb{E}_{\boldsymbol{\xi}}\!\left[Q(\mathbf{x},\boldsymbol{\xi})\right]}_{\text{expected recourse cost}},\qquad A\mathbf{x}=\mathbf{b}.

Illustration. A bakery commits to baking xx loaves at \2eachinthemorning.Demandeach in the morning. DemandDisrandom.Ifis random. Ifx>D,eachunsoldloafisdiscardedfor, each unsold loaf is discarded for $1;if; if x<D,eachunitofshortagetriggersa, each unit of shortage triggers a $5emergencyreplenishment.Thenemergency replenishment. Thenxisthefirststagedecision,is the first-stage decision,\mathbf{c}^T\mathbf{x}=2x$ is the first-stage cost, and the recourse function is

Q(x,D)  =  1max(xD,0)  +  5max(Dx,0).Q(x,D)\;=\;1\cdot\max(x-D,\,0)\;+\;5\cdot\max(D-x,\,0).
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle