Stochastic Models and Optimization Techniques