Numerical Methods, Optimization and Stochastic Modelling