Before revision:  We extend the classical expected utility optimization problem of Merton to the state-dependent situation and also give some stochastic extensions of the target probability optimization problem.
After revision:  We extend the classical expected utility optimization problem of Merton to the state-dependent situation . Some applications in security design are discussed in detail and we also solve some stochastic extensions of the target probability optimization problem.