
EGM6365 Homework#4
1. Make a Matlab script to solve the following unconstrained optimization problem using
a Newton method.
23
Minimize ( ) 1 2( 1) x
fx x x e=+ + − +
Use the initial point x = 6 and -6. The iteration should stop when the function gradient is
less than 6
10−. In the Matlab program, plot the curve of the function between x = [-6, 6]
using a solid line. At each iteration, plot the function value as dot so that we can see how
the algorithm finds the optimum point. Submit you Matlab script, a table of iteration
history ( () () () () ()
,,(),(),()
kk k k k
xfx fx Hx∆∇ ) for each iteration k, and graphic plot.
2. Try to solve the following unconstrained optimization problem using a Newton method
23
Minimize ( ) 1 2 x
fx x x e=+ − +
Discuss any difficulty and explain.
3. Solve Problem 2 using “fminunc” function in the Matlab. Submit all iteration
information.