
cell J14, five times with 104, and three times with 160. The corresponding optimal sol-
utions are stored and can be retrieved by clicking on the arrows in the Tools group on
the ribbon. When the number showing between the arrows is 1, the optimal solution
corresponding to the first simulation sample is displayed. When the number showing
is 2, the second sample is displayed, and so on. By clicking through the 10 outcomes,
we can verify that three sets of decisions appear, according to the demand outcome.
These sets of decisions, taken from row 4 of the worksheet, are summarized in the
table below.
Demand STD DLX S2 D2 SS SX
80 98 52 0 15 80 18
104 98 52 6 12 104 0
160 98 52 16 0 114 0
These results match those in Figure A4.2. However, the table layout makes it clearer
that the first-stage production quantities are 98 Standard models and 52 Deluxe
models, but the second-stage quantities depend on the demand outcome.
Finally, the expected-value objective function is not explicit in the worksheet for
Solver. However, to find the optimal value of the objective function, we can go to the
drop-down menu between the two arrows in the Tools group and select Sample Mean.
In place of the simulation trial number, the letter
m
appears. In addition the objective
function cell and the decision variable cells also display averages over the sample
outcomes. In the case of the objective function, the mean value corresponds to the
optimal value of the transformed model, in this case, $6994.
Stochastic programming can be a powerful form of analysis. It allows us to
address issues of uncertainty instead of making deterministic simp lifications. And
in the case of stochastic programming models with recourse, the solution helps us
tailor our responses to uncertain outcomes. However, there is a modeling cost for
this capability. Whereas a deterministic description allows us to meet targets exactly,
it is not possible to be as specific in a probabilistic setting. Instead, we may have to
invent variables to measure the surplus and shortage outcomes that occur when uncer-
tain factors are present. These new variables become part of a more complicated view
of the problem than we captured in the original, deterministic model. In addition, we
have to come up with a reasonable probability model for the uncertain elements of the
problem. In our example, we illustrated the use of a simple discrete distribution with
only three outcomes. In many cases, three outcomes might not be sufficient to provide
a meaningful description of the uncertainty. However, as we add outcomes to the
probability model, we expand the size of the model by requiring additional sets of
variables and constraints. Thus, accommodating even one source of uncertainty can
lead to an order of magnitude expansion in the size of the model. Modeling multiple
sources compounds this complexity. For these reasons, stochastic programming
models are still not widely used, but now that Solver can provide solutions, that situ-
ation may change.
A4.3. Using Solver 405