Numerical Methods and Optimization