Optimization: principles and algorithms, by Michel Bierlaire
runRosenbrockNewtonLineSearch.m
Go to the documentation of this file.
1 %> \file
2 %> Runs Newton's method with line search (Algorithm 11.8) [\ref newtonLineSearch] on the Rosenbrock problem.
3 %>
4 %> \note Calls \ref newtonLineSearch
5 %>
6 %> @ingroup Running
7 %> @ingroup chap11
8 %> @author <a href="http://people.epfl.ch/michel.bierlaire">Michel Bierlaire</a>
9 %> @date Sat Mar 21 12:51:55 2015
10 
11 %>
12 
13 x0 = [-1.5 ; 1.5] ;
14 [solution, iteres, niter] = newtonLineSearch('exRosenbrock',x0,1.0e-15,10000) ;
15 format short e
16 iteres(1:niter,:)
17 solution
18 format
19 niter
20 
21 
function exRosenbrock(in x)
Example presented in Section 11.6 of .
Copyright 2015-2016 Michel Bierlaire