0% found this document useful (0 votes)
40 views6 pages

THQ Ch5

Numerical method

Uploaded by

shafiq 12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views6 pages

THQ Ch5

Numerical method

Uploaded by

shafiq 12
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Chapter 5 (Golden Section Search - Maximum)

Take Home Quiz

Using the initial guesses of xl = −2 and xu = 4, calculate the maximum value for this function.

𝑓(𝑥) = 2𝑥 − 1.75𝑥 2 + 1.1𝑥 3 − 0.25𝑥 4

(a) Determine

xl
xu

(b) Calculate d =

(c) Calculate

x1
x2

(d) Determine

f(xl) f(x2) f(x1) f(xu)

(e) Sketch for xl, x2, x1, and xu and their f(x) values

(f) From the sketch in (e), determine xopt =

(g) Calculate error, a =

(h) Determine xl and xu for the next iteration

xl
xu
(i) Continue calculation to complete the following table

xl xu d x1 x2 f(xl) f(xu) f(x1) f(x2) xopt a (%)


−2 4
Chapter 5 (Golden Section Search - Minimum)
Take Home Quiz

Using the initial guesses of xl = −2 and xu = 1, calculate the minimum value for this function.

𝑓(𝑥) = 3 + 6𝑥 + 5𝑥 2 + 3𝑥 3 + 4𝑥 4

(a) Determine

xl
xu

(b) Calculate d =

(c) Calculate

x1
x2

(d) Determine

f(xl) f(x2) f(x1) f(xu)

(e) Sketch for xl, x2, x1, and xu and their f(x) values

(f) From the sketch in (e), determine xopt =

(g) Calculate error, a =

(h) Determine xl and xu for the next iteration

xl
xu
(i) Continue calculation to complete the following table

xl xu d x1 x2 f(xl) f(xu) f(x1) f(x2) xopt a (%)


−2 1
Chapter 5 (Newton Optimization)
Take Home Quiz

Using the initial guess of x0 = −2, calculate the minimum value for this function.

𝑓(𝑥) = 3 + 6𝑥 + 5𝑥 2 + 3𝑥 3 + 4𝑥 4

(a) Determine x0 =

(b) Differentiate f(x) to get f′(x) =

(c) Differentiate f′(x) to get f″(x) =

(d) Continue calculation to complete the following table

x f′(x) f″(x) a (%)


−2 -

(e) Determine

xopt
f(xopt)
Chapter 5 (Gradient Optimization)
Take Home Quiz

Using the initial guesses of x = y = 0, find the minimum for this function.

𝑓(𝑥, 𝑦) = −8𝑥 + 𝑥 2 + 12𝑦 + 4𝑦 2 − 2𝑥𝑦

(a) Transform the equation into

𝜕𝑓
=
𝜕𝑥
𝜕𝑓
=
𝜕𝑦

(b) At x = y = 0

𝜕𝑓
=
𝜕𝑥
𝜕𝑓
= 12
𝜕𝑦

(c) Determine

𝑓(0 − 8ℎ, 0 + 12ℎ) =


𝑔′(ℎ) =

(d) At g′(h) = 0, h* =

(e) Calculate new values for x and y

x
y

You might also like