Description Usage Arguments Value
Implements the gradient descent
1 2 | gradient_descent(x_init, funval, fungrad, alpha, maxit = 1000,
threshold = 1e-09)
|
x_init |
initial guess |
funval |
objective function calculator |
fungrad |
objective function's gradient |
alpha |
step size. if "backtracking", will automatically select the step using this algorithm |
maxit |
max number of iterations |
threshold |
convergence threshold |
solution list – solution: x_min, path: x_points, number of iterations: n_it
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.