Risk neutral and risk averse stochastic optimization