Numerical Method and Optimization