Stochastic Modeling and Optimization