Optimization, Control, and Applications of Stochastic