Numerical optimization Numerical Optimisation R Optimisation Functions Gradient Descent and Stochastic Gradient Descent