|
Optimization: principles and algorithms, by Michel Bierlaire
|
Algorithm 7.2: Newton's method, one variable. More...
Go to the source code of this file.
Functions | |
| function | newtonOneVariable (in obj, in x0, in eps, in maxiter) |
Applies Newton's algorithm to solve where . More... | |
Algorithm 7.2: Newton's method, one variable.
Implementation of algorithm 7.2 of [1]
Definition in file newtonOneVariable.m.
| function newtonOneVariable | ( | in | obj, |
| in | x0, | ||
| in | eps, | ||
| in | maxiter | ||
| ) |
Applies Newton's algorithm to solve
where
.
| obj | the name of the Octave function defining F(x) and its derivative |
| x0 | the starting point |
| eps | algorithm stops if . |
| maxiter | maximum number of iterations (Default: 100) |