Docsity

Practice Homework 4 - Structural Optimization | EGM 6365, Assignments of Engineering

Toggle sidebar
bg1
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
x
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.

Partial preview of the text

Download Practice Homework 4 - Structural Optimization | EGM 6365 and more Assignments Engineering in PDF only on Docsity!

EGM6365 Homework#

1. Make a Matlab script to solve the following unconstrained optimization problem using

a Newton method.

Minimize f ( ) x = 1 + 2( x + 1)^2 − x^3 + ex

Use the initial point x = 6 and -6. The iteration should stop when the function gradient is

less than 10 −^6. 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 ( x (^ k^ )^ , ∆ x (^ k^ )^ , f ( x (^ k^ )^ ), ∇ f ( x (^ k^ )^ ), H x ( (^ k ))) for each iteration k , and graphic plot.

2. Try to solve the following unconstrained optimization problem using a Newton method

Minimize f ( ) x = 1 + 2 x^2 − x^3 + ex

Discuss any difficulty and explain.

3. Solve Problem 2 using “fminunc” function in the Matlab. Submit all iteration

information.