Basics
Stochastic refers to a random variable in our objective function, that's why we can only optimize regarding the expectation.
Scenario Optimization with Piecewise Linear Utility
In the following example, a two-stage model, where we start from initial capital
Denote the utility function as
Then the optimization problem can be written as the following. Notice that the expectation is taken out writing as a summation. And we introduced a redundant variable